[PATCH] Make the driver respond to mdynamic-no-pic as per gcc.

Iain Sandoe iain at codesourcery.com
Thu Apr 9 04:27:49 PDT 2015


Hi!

Currently the driver responds to -mdynamic-no-pic, but not to -mno-dynamic-no-pic which tripped up a recent change to GCC bootstrap, since xcode 6.2 clang errors on "-mno-dynamic-no-pic".

The patch attached, fixes this by adding the missing option.
While I was in the vicinity, I fixed the FIXME for the missing warning about dynamic-no-pic overriding PIC and PIE.

The result is compatible with gcc-4.2.1 (and modern GCC trunk).

Testcase amendments are included for the new option and warning.

OK to apply?
Iain

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: driver-mdynamic-no-pic-vs-234460.txt
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150409/3af12fa9/attachment.txt>
-------------- next part --------------




More information about the cfe-commits mailing list