]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix unaligned accesses in ipa-sra-8.c and ipa-sra-9.c
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 28 Jul 2024 17:34:54 +0000 (13:34 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 28 Jul 2024 17:37:52 +0000 (13:37 -0400)
2024-07-28  John David Anglin  <danglin@gcc.gnu.org>

gcc/testsuite/ChangeLog:

PR testsuite/92550
* gcc.dg/ipa/ipa-sra-8.c: Change get_a argument type to SSS.
* gcc.dg/ipa/ipa-sra-9.c: Likewise.

gcc/testsuite/gcc.dg/ipa/ipa-sra-8.c
gcc/testsuite/gcc.dg/ipa/ipa-sra-9.c

index 9e6e40ac54df006714e922c2c589bf5fc3291ccc..dd5c5d0c32b4d539fdd1bc7548b88c8031eb0402 100644 (file)
@@ -11,7 +11,7 @@ typedef SS __attribute__((aligned(1))) SSS;
 
 
 static unsigned int __attribute__ ((noinline))
-get_a (SS s)
+get_a (SSS s)
 {
   return s.a;
 };
index c5468cfbb76aa1b18569555e044525d71c01327d..41d7ddd9fecb4cfc805d963ffdb392c843120d87 100644 (file)
@@ -7,6 +7,8 @@ typedef struct S {
   unsigned a, b, c;
 } SS;
 
+typedef SS __attribute__((aligned(1))) SSS;
+
 typedef struct U {
   SS s[2];
 } UU;
@@ -14,7 +16,7 @@ typedef struct U {
 typedef UU __attribute__((aligned(1))) UUU;
 
 static unsigned int __attribute__ ((noinline))
-get_a (SS s)
+get_a (SSS s)
 {
   return s.a;
 };