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

Reply via email to