http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49371
Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011.06.11 12:48:38 Ever Confirmed|0 |1 --- Comment #3 from Iain Sandoe <iains at gcc dot gnu.org> 2011-06-11 12:48:38 UTC --- (In reply to comment #0) > in gcc/testsuite/lib/target-supports.exp, but I think the darwin driver should > be fixed. agreed, (-pie is silently ignored by Apple's gcc and gcc-4.2). we just need an 'ignore' line in the appropriate .opt I guess.. FWIW: -fpie is working correctly: $ ./gcc/xgcc -Bgcc ../tests/hello.c -o hc -fpie $ otool -hv hc hc: Mach header magic cputype cpusubtype caps filetype ncmds sizeofcmds flags MH_MAGIC PPC ppc7400 0x00 EXECUTE 12 1168 NOUNDEFS DYLDLINK TWOLEVEL PIE