This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/49371] xgcc: error: unrecognized option '-pie' on *-apple-darwin*
- From: "iains at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 11 Jun 2011 12:48:55 +0000
- Subject: [Bug driver/49371] xgcc: error: unrecognized option '-pie' on *-apple-darwin*
- Auto-submitted: auto-generated
- References: <bug-49371-4@http.gcc.gnu.org/bugzilla/>
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