]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/108355 - make gcc.dg/tree-ssa/ssa-fre-104.c properly XFAIL
authorRichard Biener <rguenther@suse.de>
Fri, 8 Mar 2024 07:26:15 +0000 (08:26 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 8 Mar 2024 07:28:02 +0000 (08:28 +0100)
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.

PR testsuite/108355
* gcc.dg/tree-ssa/ssa-fre-104.c: Align e.

gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-104.c

index 425c32dd93c7bbc2394f6498e5da3e3f1a0feac8..52756bb7e40dbaf2dc9c19b62ce0901e5415bd45 100644 (file)
@@ -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