This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fPIC -fPIE
On Tue, Nov 13, 2012 at 6:56 AM, Ian Lance Taylor <iant@google.com> wrote:
> Currently -fPIC -fPIE seems to be the same as -fPIE. Unfortunately,
> -fPIE -fPIC also seems to be the same as -fPIE. It seems to me that,
> as is usual with conflicting options, we should use the one that
> appears last on the command line.
>
> Do we have an existing mechanism in options processing for one option
> to turn off another, where the options are not exact inverses? I
> looked for one but I didn't see one. There is support for that for
> options with the Mask property, but I don't see it for non-target
> options.
>
Can you handle it similar to gcoff/gstabs/gdwarf-?
--
H.J.