public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6471] testsuite: Skip gcc.dg/ipa/pr77653.c for CRIS
@ 2023-03-04  0:55 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2023-03-04  0:55 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:53940eee08957b8b72ee70f57770398009e19c21

commit r13-6471-g53940eee08957b8b72ee70f57770398009e19c21
Author: Hans-Peter Nilsson <hp@axis.com>
Date:   Fri Mar 3 17:49:01 2023 +0100

    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:
---
 gcc/testsuite/gcc.dg/ipa/pr77653.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/ipa/pr77653.c b/gcc/testsuite/gcc.dg/ipa/pr77653.c
index 2fddb7eab54..16df3fff6a4 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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-04  0:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-04  0:55 [gcc r13-6471] testsuite: Skip gcc.dg/ipa/pr77653.c for CRIS Hans-Peter Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).