[Bug target/65351] [5 Regression] libiberty's pic version contains non-pic code on m32 darwin; causes bootstrap fail building libcc1.

iains at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 8 07:10:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65351

--- Comment #22 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #21)
> Another option is not to add -mdynamic-no-pic for clang and other compilers
> that don't support -mno-dynamic-no-pic.

clang supports (and generates appropriate code for) -mdynamic-no-pic.
as wee see (at present) it doesn't support -mno-dynamic-no-pic [(In reply to
Jakub Jelinek from comment #21)
> Another option is not to add -mdynamic-no-pic for clang and other compilers
> that don't support -mno-dynamic-no-pic.

Yeah, that seems like the safest bet :-(.
(will try to get a patch together to fix future clang versions, but that won't
alter the ones out in the wild).



More information about the Gcc-bugs mailing list