This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/49371] xgcc: error: unrecognized option '-pie' on *-apple-darwin*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49371

--- Comment #20 from Iain Sandoe <iains at gcc dot gnu.org> 2011-06-12 20:10:10 UTC ---
(In reply to comment #19)
> > what happens for 
> > gcc47 -m32 -fno-PIC -fpie backtrace.c
> > ?
> 
> [macbook] f90/bug% gcc47 -m32 -fno-PIC -fpie backtrace.c
> [macbook] f90/bug% otool -hv a.out
> a.out:
> Mach header
>       magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
>    MH_MAGIC    I386        ALL  0x00     EXECUTE    12       1236   NOUNDEFS
> DYLDLINK TWOLEVEL PIE

that's correct - the pie will override the no-PIC because it comes later on the
c/l.

---

However, sorry, that was a 'red herring' - the outcome is as expected for the
original set of options - as per comment #18.

we have some slight differences from the system tools - which treat the options
more restrictively than GCC; but I don't think those differences will matter to
anyone unless they issue conflicting flags - which will error on GCC but
sometimes be silently ignored by the system tools.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]