This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/77529] New: -fno-pie disables -fPIC
- From: "doko at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Sep 2016 14:10:20 +0000
- Subject: [Bug driver/77529] New: -fno-pie disables -fPIC
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77529
Bug ID: 77529
Summary: -fno-pie disables -fPIC
Product: gcc
Version: 6.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
Target Milestone: ---
seen with a GCC 6 configured with --enable-default-pie:
$ gcc -E -dM - < /dev/null 2>&1|grep -i 'pi[ce]'
#define __pie__ 2
#define __PIE__ 2
#define __pic__ 2
#define __PIC__ 2
$ gcc -E -dM -fPIC - < /dev/null 2>&1|grep -i 'pi[ce]'
#define __pic__ 2
#define __PIC__ 2
$ gcc -E -dM -fPIC -fno-pie - < /dev/null 2>&1|grep -i 'pi[ce]'
$ gcc -E -dM -fno-pie -fPIC - < /dev/null 2>&1|grep -i 'pi[ce]'
#define __pic__ 2
#define __PIC__ 2
I would expect the last behavior to be the default one.