diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2023-03-03 17:49:01 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2023-03-04 01:55:39 +0100 |
commit | 53940eee08957b8b72ee70f57770398009e19c21 (patch) | |
tree | c2661ec501b7e7b8aca4141ea69094c6f08b9272 | |
parent | 37a084871ad3cff42a09bb03af459f7de903b3fc (diff) | |
download | gcc-53940eee08957b8b72ee70f57770398009e19c21.zip gcc-53940eee08957b8b72ee70f57770398009e19c21.tar.gz gcc-53940eee08957b8b72ee70f57770398009e19c21.tar.bz2 |
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-*-*.
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/pr77653.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/pr77653.c b/gcc/testsuite/gcc.dg/ipa/pr77653.c index 2fddb7e..16df3ff 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr77653.c +++ b/gcc/testsuite/gcc.dg/ipa/pr77653.c @@ -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; |