From patchwork Thu Oct 20 00:03:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Avoid -mno-accumulate-outgoing-args in tests on Windows target Date: Wed, 19 Oct 2011 14:03:30 -0000 From: "Joseph S. Myers" X-Patchwork-Id: 120710 Message-Id: To: gcc-patches@gcc.gnu.org Cc: cgf@gcc.gnu.org, ktietz@redhat.com, dave.korn.cygwin@gmail.com, ro@CeBiTec.Uni-Bielefeld.DE, mikestump@comcast.net The -mno-accumulate-outgoing-args option does not work with the stack probing used on Windows targets, giving a warning and so causing tests using that option to fail. This patch makes three tests not use that option on affected targets, like sse-10.c (see for the introduction of the warning and the sse-10.c change). Tested with cross to i686-mingw32. OK to commit? 2011-10-19 Joseph Myers * gcc.target/i386/pr40906-1.c, gcc.target/i386/pr40906-2.c, gcc.target/i386/pr46226.c: Do not use -mno-accumulate-outgoing-args. Index: gcc/testsuite/gcc.target/i386/pr40906-2.c =================================================================== --- gcc/testsuite/gcc.target/i386/pr40906-2.c (revision 180200) +++ gcc/testsuite/gcc.target/i386/pr40906-2.c (working copy) @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target ia32 } */ /* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -mno-accumulate-outgoing-args -m128bit-long-double" } */ +/* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -m128bit-long-double" { target *-*-mingw* *-*-cygwin* } } */ void abort (void); Index: gcc/testsuite/gcc.target/i386/pr46226.c =================================================================== --- gcc/testsuite/gcc.target/i386/pr46226.c (revision 180200) +++ gcc/testsuite/gcc.target/i386/pr46226.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-Os -fomit-frame-pointer -mno-accumulate-outgoing-args -fno-asynchronous-unwind-tables" } */ +/* { dg-options "-Os -fomit-frame-pointer -fno-asynchronous-unwind-tables" { target *-*-mingw* *-*-cygwin* } } */ extern void abort(void); Index: gcc/testsuite/gcc.target/i386/pr40906-1.c =================================================================== --- gcc/testsuite/gcc.target/i386/pr40906-1.c (revision 180200) +++ gcc/testsuite/gcc.target/i386/pr40906-1.c (working copy) @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target ia32 } */ /* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -mno-accumulate-outgoing-args" } */ +/* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args" { target *-*-mingw* *-*-cygwin* } } */ void abort (void);