[Bug target/6123] __pic__/__PIC__ not defined when -fpic/-fPIC is specified
amodra at bigpond dot net dot au
gcc-bugzilla@gcc.gnu.org
Wed Nov 10 05:13:00 GMT 2004
------- Additional Comments From amodra at bigpond dot net dot au 2004-11-10 05:13 -------
No, actually not the next day, but a few days later. Incidentally, the (a) and
(b) are from an earlier reply of mine on this subject:
On most other targets, -fpic, ie. flag_pic, means two things:
a) generate PIC code, and
b) generate code suitable for ELF shared libraries.
I'll not argue the wisdom of -fpic meaning two things, but that's just
how things evolved. On PowerPC64, code generation is always PIC, but we
don't want the overhead of meeting shared library run-time symbol
resolution requirements when generating application code. Thus, we
don't want to set flag_pic all the time.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6123
More information about the Gcc-bugs
mailing list