From: Hans-Peter Nilsson Date: Fri, 3 Mar 2023 16:49:01 +0000 (+0100) Subject: testsuite: Skip gcc.dg/ipa/pr77653.c for CRIS X-Git-Tag: basepoints/gcc-14~736 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53940eee08957b8b72ee70f57770398009e19c21;p=thirdparty%2Fgcc.git 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-*-*. --- diff --git a/gcc/testsuite/gcc.dg/ipa/pr77653.c b/gcc/testsuite/gcc.dg/ipa/pr77653.c index 2fddb7eab548..16df3fff6a41 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;