[LLVMdev] Clang predefined macros with -fPIC and -fPIE

Eric Christopher echristo at gmail.com
Wed Oct 3 10:30:00 PDT 2012

On Wed, Oct 3, 2012 at 8:57 AM, Siraj, Tareq A <tareq.a.siraj at intel.com> wrote:
> Hello everyone,
> Clang seems to only define __PIE__ when both –fPIC and –fPIE is used in the command line whereas gcc defines both __PIC__ and __PIE__. Is this intended or a bug in clang? Thanks.
> Command line:
> clang -fPIC -fPIE -dM -E - < /dev/null | grep __PI

Yes, please file if you can.



More information about the llvm-dev mailing list