[cfe-commits] [PATCH] Fix for __PIC__ no longer defined when -fPIE is used
Eli Friedman
eli.friedman at gmail.com
Wed Oct 31 17:30:05 PDT 2012
On Wed, Oct 31, 2012 at 10:59 AM, Edwin Vane <edwin.vane at intel.com> wrote:
> Hi chandlerc,
>
> LLVM Bugzilla: http://llvm.org/bugs/show_bug.cgi?id=13221
>
> This patch makes the behavior of clang consistent with the behavior of gcc 4.6 in cases where both -fPIC and -fPIE is used.
> - Separately check if -fPIE was specified in the command line and define both __PIC__ and __PIE__ when -fPIE is used. We need to check this separately because -fPIE will infer -fPIC even if its not explicitly used.
> - Fixed existing tests.
> - Added new tests for cases where both -fPIC and -fPIE is used.
LGTM.
-Eli
More information about the cfe-commits
mailing list