https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70192
Bug ID: 70192 Summary: -fno-pic doesn't work with --enable-default-pie Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- When GCC is configured with --enable-default-pie, -fno-pic doesn't turn off PIC: [hjl@gnu-6 gcc]$ ./xgcc -B./ -S x.c -fno-pic x.c:2:3: error: #error foo # error foo ^~~~~ [hjl@gnu-6 gcc]$