public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9864] libgcc, X86: Adjust guard for Mach-O code.
@ 2022-04-14  5:24 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2022-04-14  5:24 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:70006868631198fe234d9e9724ccc607f818a7b1

commit r11-9864-g70006868631198fe234d9e9724ccc607f818a7b1
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Wed Sep 22 07:42:21 2021 +0100

    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)

Diff:
---
 libgcc/config/i386/sfp-machine.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcc/config/i386/sfp-machine.h b/libgcc/config/i386/sfp-machine.h
index 478e61c5a27..fca7dddf616 100644
--- a/libgcc/config/i386/sfp-machine.h
+++ b/libgcc/config/i386/sfp-machine.h
@@ -73,7 +73,7 @@ void __sfp_handle_exceptions (int);
 #define __BYTE_ORDER __LITTLE_ENDIAN
 
 /* Define ALIASNAME as a strong alias for NAME.  */
-#if defined __MACH__
+#if defined __APPLE__
 /* Mach-O doesn't support aliasing, so we build a secondary function for
    the alias - we need to do a bit of a dance to find out what the type of
    the arguments is and then apply that to the secondary function.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-14  5:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-14  5:24 [gcc r11-9864] libgcc, X86: Adjust guard for Mach-O code Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).