https://gcc.gnu.org/g:59c6d6a5b53d7b0e483a686f6b9db093bb77c064
commit r15-2365-g59c6d6a5b53d7b0e483a686f6b9db093bb77c064 Author: John David Anglin <dang...@gcc.gnu.org> Date: Sun Jul 28 13:34:54 2024 -0400 testsuite: Fix unaligned accesses in ipa-sra-8.c and ipa-sra-9.c 2024-07-28 John David Anglin <dang...@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. Diff: --- gcc/testsuite/gcc.dg/ipa/ipa-sra-8.c | 2 +- gcc/testsuite/gcc.dg/ipa/ipa-sra-9.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-sra-8.c b/gcc/testsuite/gcc.dg/ipa/ipa-sra-8.c index 9e6e40ac54df..dd5c5d0c32b4 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-sra-8.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-sra-8.c @@ -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; }; diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-sra-9.c b/gcc/testsuite/gcc.dg/ipa/ipa-sra-9.c index c5468cfbb76a..41d7ddd9fecb 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-sra-9.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-sra-9.c @@ -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; };