]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgcc, X86: Adjust guard for Mach-O code.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 22 Sep 2021 06:42:21 +0000 (07:42 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 14 Apr 2022 05:24:04 +0000 (06:24 +0100)
commit70006868631198fe234d9e9724ccc607f818a7b1
tree0a1228c8236ca1057d2b27ea3ddaec3e1b486657
parent3bf66ed6a51b1938b6974c473d2c39ebf7a1ac00
libgcc, X86: Adjust guard for Mach-O code.

Existing code in the sfp-machine header has been using __MACH__
as a guard for Mach-O, where currently symbols aliases are not
supported.

__MACH__ is not a sufficient guard for this, since the define
is also emitted for HURD, at least.

Fixed by amending the guard to use __APPLE__ instead.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libgcc/ChangeLog:

* config/i386/sfp-machine.h: Guard Mach-O-specific code
using __APPLE__.

(cherry picked from commit 578b76873383784841f5478573f4ac5d251aa0ba)
libgcc/config/i386/sfp-machine.h