Darwin: Define OBJECT_FORMAT_MACHO.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 22 Dec 2021 14:00:25 +0000 (14:00 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 24 Dec 2021 10:39:25 +0000 (10:39 +0000)
There are places that we need to make different codegen depending
on the object format rather than on the arch.  We already have
definitions for ELF, COFF etc. this adds one for MACHO.

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

* config/darwin.h (OBJECT_FORMAT_MACHO): New.

gcc/config/darwin.h

index 75b688e..c175ead 100644 (file)
@@ -43,6 +43,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #define DARWIN_X86 0
 #define DARWIN_PPC 0
 
+#define OBJECT_FORMAT_MACHO 1
+
 /* Suppress g++ attempt to link in the math library automatically. */
 #define MATH_LIBRARY ""