This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/70192] New: -fno-pic doesn't work with --enable-default-pie


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]$

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]