summaryrefslogtreecommitdiff
path: root/gcc/config/i386/darwin64.h
diff options
context:
space:
mode:
authorechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-07 05:40:34 +0000
committerechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-07 05:40:34 +0000
commit4a839b30bbf7d9063d1801799a95db29f4b52673 (patch)
tree5d3e514d4ebfb4bea757d9a52b40436f2ed2be64 /gcc/config/i386/darwin64.h
parentecfdd7ef63c135b273945e6adf7e3a70139771da (diff)
downloadgcc-4a839b30bbf7d9063d1801799a95db29f4b52673.tar.gz
2006-11-06 Eric Christopher <echristo@apple.com>
* config.gcc: Add x86_64-darwin host support. * config.host: Ditto. * config/i386/darwin64.h: New file. * config/i386/t-darwin64: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118541 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/darwin64.h')
-rw-r--r--gcc/config/i386/darwin64.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/gcc/config/i386/darwin64.h b/gcc/config/i386/darwin64.h
new file mode 100644
index 00000000000..01686fa0ed5
--- /dev/null
+++ b/gcc/config/i386/darwin64.h
@@ -0,0 +1,35 @@
+/* Target definitions for x86_64 running Darwin.
+ Copyright (C) 2006 Free Software Foundation, Inc.
+ Contributed by Apple Computer Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING. If not, write to
+the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+Boston, MA 02110-1301, USA. */
+
+#undef TARGET_VERSION
+#define TARGET_VERSION fprintf (stderr, " (x86_64 Darwin)");
+
+#undef DARWIN_ARCH_SPEC
+#define DARWIN_ARCH_SPEC "%{m32:i386;:x86_64}"
+
+#undef DARWIN_SUBARCH_SPEC
+#define DARWIN_SUBARCH_SPEC DARWIN_ARCH_SPEC
+
+#undef SUBTARGET_EXTRA_SPECS
+#define SUBTARGET_EXTRA_SPECS \
+ { "darwin_arch", DARWIN_ARCH_SPEC }, \
+ { "darwin_crt2", "" }, \
+ { "darwin_subarch", DARWIN_SUBARCH_SPEC },