aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2021-12-22 14:00:25 +0000
committerIain Sandoe <iain@sandoe.co.uk>2021-12-24 10:39:25 +0000
commit9a4a29eaf23a87debb7f1761b36fead545282dfa (patch)
treed7a3a04ec1afa8a1b992c8ad3ed55a45b9e9564d /gcc
parent7d01da81b804375522f5da0ce881ba17438149cc (diff)
downloadgcc-9a4a29eaf23a87debb7f1761b36fead545282dfa.zip
gcc-9a4a29eaf23a87debb7f1761b36fead545282dfa.tar.gz
gcc-9a4a29eaf23a87debb7f1761b36fead545282dfa.tar.bz2
Darwin: Define OBJECT_FORMAT_MACHO.
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/darwin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 75b688e..c175ead 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -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 ""