]> git.ipfire.org Git - thirdparty/gcc.git/commit
Darwin: Handle the fPIE option specially.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 25 Oct 2023 14:28:52 +0000 (15:28 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 25 Oct 2023 19:46:59 +0000 (20:46 +0100)
commitda9e72f80f3358bd9586e11aaf03341c1f867318
treec4719800fda5edd13e0c39be069a3fc2fb650c7c
parent8f62ce10bc984855ca98483746ead2730eb36e2e
Darwin: Handle the fPIE option specially.

For Darwin, PIE requires PIC codegen, but otherwise is only a link-time
change. For almost all Darwin, we do not report __PIE__; the exception is
32bit X86 and from Darwin12 to 17 only (32 bit is no longer supported
after Darwin17).

gcc/ChangeLog:

* config/darwin.cc (darwin_override_options): Handle fPIE.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/config/darwin.cc