testsuite: Fix unaligned accesses in ipa-sra-8.c and ipa-sra-9.c

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.
This commit is contained in:
John David Anglin 2024-07-28 13:34:54 -04:00
parent dad2eb3ac2
commit 59c6d6a5b5
2 changed files with 4 additions and 2 deletions

View 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;
};

View 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;
};