Message ID | Pine.LNX.4.64.1110262117520.25943@digraph.polyomino.org.uk |
---|---|
State | New |
Headers | show |
On Oct 26, 2011, at 2:18 PM, Joseph S. Myers wrote: > 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? Ok. This one makes my head hurt, just a little.
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" } } */