Siraj, Tareq A
2012-Oct-03 15:57 UTC
[LLVMdev] Clang predefined macros with -fPIC and -fPIE
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 -- Tareq
Eric Christopher
2012-Oct-03 17:30 UTC
[LLVMdev] Clang predefined macros with -fPIC and -fPIE
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. Thanks. -eric
Seemingly Similar Threads
- [PATCH] Fix gpxe compilation when gcc is patched to compile by default with -fPIE -Wl, -pie
- [PATCH] Fix compilation when gcc is patched to default to -fPIE -Wl, -pie
- Vicidial now extension setup
- How does -fPIE get passed from clang to llc when run on a .ll file?
- How does -fPIE get passed from clang to llc when run on a .ll file?