diff mbox series

add explicit ABI and align options to pr88233.c

Message ID orwnufb7dg.fsf@lxoliva.fsfla.org
State New
Headers show
Series add explicit ABI and align options to pr88233.c | expand

Commit Message

Alexandre Oliva March 10, 2021, 11 a.m. UTC
We've observed failures of this test on powerpc configurations that
default to different calling conventions and alignment requirements.
Both settings are needed for the expectations to be met.

This was regstrapped on x86_64-linux-gnu and ppc64-linux-gnu, and tested
with a cross to a ppc64-vxworks7r2 with both -mstrict-align and
-freg-struct-return enabled by default.  Ok to install?


for  gcc/testsuite/ChangeLog

	* gcc.target/powerpc/pr88233.c: Make some alignment strictness
	and calling conventions assumptions explicit.
---
 gcc/testsuite/gcc.target/powerpc/pr88233.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/pr88233.c b/gcc/testsuite/gcc.target/powerpc/pr88233.c
index 27c73717a3f79..c667a28ebfedf 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr88233.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr88233.c
@@ -1,5 +1,5 @@ 
 /* { dg-require-effective-target lp64 } */
-/* { dg-options "-O2 -mdejagnu-cpu=power8" } */
+/* { dg-options "-O2 -mdejagnu-cpu=power8 -mno-strict-align -fno-reg-struct-return" } */
 
 typedef struct { double a[2]; } A;
 A