add explicit ABI and align options to pr88233.c

Message ID
State New
Headers show
  • add explicit ABI and align options to pr88233.c
Related show

Commit Message

Alexandre Oliva March 10, 2021, 11 a.m.
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

	* Make some alignment strictness
	and calling conventions assumptions explicit.
 gcc/testsuite/ |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Alexandre Oliva, happy hacker
   Free Software Activist         GNU Toolchain Engineer
        Vim, Vi, Voltei pro Emacs -- GNUlius Caesar


diff --git a/gcc/testsuite/ b/gcc/testsuite/
index 27c73717a3f79..c667a28ebfedf 100644
--- a/gcc/testsuite/
+++ b/gcc/testsuite/
@@ -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;