]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Skip gcc.dg/ipa/pr77653.c for CRIS
authorHans-Peter Nilsson <hp@axis.com>
Fri, 3 Mar 2023 16:49:01 +0000 (17:49 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Sat, 4 Mar 2023 00:55:39 +0000 (01:55 +0100)
commit53940eee08957b8b72ee70f57770398009e19c21
treec2661ec501b7e7b8aca4141ea69094c6f08b9272
parent37a084871ad3cff42a09bb03af459f7de903b3fc
testsuite: Skip gcc.dg/ipa/pr77653.c for CRIS

CRIS defines DATA_ALIGNMENT such that alignment can be
applied differently to different data of the same type, when
"references to it must bind to the current definition"
(varasm.cc:align_variable).  Here, it means that more
alignment is then applied to g, but not f, so the test-case
fails because another message is emitted than the expected:
a same-alignment test dominates the not-discardable test,
and we get "Not unifying; original and alias have
incompatible alignments" rather than "Not unifying; alias
cannot be created; target is discardable".  Because this
DATA_ALIGNMENT behavior for CRIS depends on target options,
and this test is already artificial by the use of -fcommon,
better skip it.

* gcc.dg/ipa/pr77653.c: Skip for cris-*-*.
gcc/testsuite/gcc.dg/ipa/pr77653.c