diff mbox series

testsuite/108355 - make gcc.dg/tree-ssa/ssa-fre-104.c properly XFAIL

Message ID 20240308072745.DC0951391D@imap2.dmz-prg2.suse.org
State New
Headers show
Series testsuite/108355 - make gcc.dg/tree-ssa/ssa-fre-104.c properly XFAIL | expand

Commit Message

Richard Biener March 8, 2024, 7:27 a.m. UTC
The testcase only XFAILs on targets where int has an alignment
of sizeof(int).  Align the respective array this way to make it
XFAIL consistenlty.

Tested on x86_64-unknown-linux-gnu and cris-elf.  Pushed.

	PR testsuite/108355
	* gcc.dg/tree-ssa/ssa-fre-104.c: Align e.
---
 gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-104.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-104.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-104.c
index 425c32dd93c..52756bb7e40 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-104.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-104.c
@@ -8,7 +8,7 @@  int d;
 void bar25_(void);
 void foo(void);
 int main() {
-  int e[][1] = {0, 0, 0, 0, 0, 1};
+  int __attribute__((aligned(sizeof(int)))) e[][1] = {0, 0, 0, 0, 0, 1};
   for (;;) {
     bar25_();
     /* We should optimistically treat a == 0 because of the bounds of