http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50085
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iains at gcc dot gnu.org, | |mrs at gcc dot gnu.org --- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-08-15 21:48:18 UTC --- > > It required PIC and ILP32 before. Why wasn't supported? > > Good question;-) but I don't know the answer!-( And the answer is -// { dg-do compile { target i?86-*-linux* x86_64-*-linux* } } -// { dg-require-effective-target ilp32 } +// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } Before the patch, the test was run on linux only. After it it is run on all the { i?86-*-* x86_64-*-* } platforms. An alternative is // { dg-final { scan-assembler "GLOBAL_OFFSET_TABLE" { xfail *-*-darwin* } } } I don't know what is supposed to replace "GLOBAL_OFFSET_TABLE" on darwin.