]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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)
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

index 2fddb7eab548690a7a9d2edb3172c2b17ff9ea63..16df3fff6a414b57135a8c5c29697d90dbaad918 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-require-alias "" } */
 /* { dg-options "-O2 -fcommon -fdump-ipa-icf-details"  } */
+/* { dg-skip-if "Can align g more than f" { cris-*-* } } */
 
 int a, b, c, d, e, h, i, j, k, l;
 const int f;