gcc.target/i386/pad-4.c expects particular results from PIC code
generation - PIC in the sense of a GOT and a PLT, which is different
from the sense in which Windows code is always PIC.  This patch
arranges for it to be skipped on Windows targets, similarly to other
tests such as gcc.target/i386/pic-1.c.  Tested with cross to
i686-mingw32.  OK to commit?

2011-10-26  Joseph Myers  <jos...@codesourcery.com>

        * gcc.target/i386/pad-4.c: Skip for Windows targets.

Index: gcc.target/i386/pad-4.c
===================================================================
--- gcc.target/i386/pad-4.c     (revision 180200)
+++ gcc.target/i386/pad-4.c     (working copy)
@@ -2,6 +2,7 @@
 /* { dg-require-effective-target ia32 } */
 /* { dg-require-effective-target fpic } */
 /* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=atom" } } 
*/
+/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } { "*" } { "" } } */
 /* { dg-options "-O2 -fomit-frame-pointer -march=atom -fPIC" } */
 /* { dg-final { scan-assembler-times "nop" 8 } } */
 /* { dg-final { scan-assembler-not "rep" } } */

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to