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: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 12 Jun 2011 18:40:58 +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
--- Comment #15 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-06-12 18:40:01 UTC ---
I have bootstrapped gcc on x86_64-apple-darwin10.7.0 with the patch in comment
#14 and the tests for gcc and tls.exp pass without unexpected failure. I just
noticed the following oddity:
[macbook] f90/bug% gfc -m64 -fpie -mdynamic-no-pic pr49331.f90
gfc: note: '-mdynamic-no-pic' overides '-pie', '-fpie' or '-fPIE'
[macbook] f90/bug% gfc -m32 -fpie -mdynamic-no-pic pr49331.f90
f951: warning: '-mdynamic-no-pic' overrides '-fpic', '-fPIC', '-fpie', '-fPIE'
or '-pie' [enabled by default]
gfc: note: '-mdynamic-no-pic' overides '-pie', '-fpie' or '-fPIE'
[macbook] f90/bug% gcc47 -m64 -fpie -mdynamic-no-pic backtrace.c
gcc47: note: '-mdynamic-no-pic' overides '-pie', '-fpie' or '-fPIE'
[macbook] f90/bug% gcc47 -m32 -fpie -mdynamic-no-pic backtrace.c
cc1: warning: '-mdynamic-no-pic' overrides '-fpic', '-fPIC', '-fpie', '-fPIE'
or '-pie' [enabled by default]
gcc47: note: '-mdynamic-no-pic' overides '-pie', '-fpie' or '-fPIE'
Is it expected that the warning appears with -m32, but not with -m64? I also
got
[macbook] f90/bug% gcc47 -m32 -fno-PIC -pie backtrace.c
ld: cannot link -pie: -mdynamic-no-pic codegen found in _myfunc3 from
/var/tmp//cccDWsse.o
collect2: error: ld returned 1 exit status