https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116396

            Bug ID: 116396
           Summary: __pic__ and __PIC__ are controlled by -fpie
           Product: gcc
           Version: 11.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stsp at users dot sourceforge.net
  Target Milestone: ---

Maybe this is a documentation issue.
Documentation says:

-fpic:
When this flag is set, the macros __pic__ and __PIC__ are defined to 1.

It doesn't say anything about these macros in -fpie section.
But:
-fpie sets them to 1
- neither -fpic nor -fpie presence in cmdline, gives 2
-fno-pie undefines them
  • [Bug c/116396] New: __pic__... stsp at users dot sourceforge.net via Gcc-bugs

Reply via email to