]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
config.gcc: Add x86_64-darwin host support.
authorEric Christopher <echristo@gcc.gnu.org>
Tue, 7 Nov 2006 05:40:34 +0000 (05:40 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Tue, 7 Nov 2006 05:40:34 +0000 (05:40 +0000)
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.

From-SVN: r118541

gcc/ChangeLog
gcc/config.gcc
gcc/config.host
gcc/config/i386/darwin64.h [new file with mode: 0644]
gcc/config/i386/t-darwin64 [new file with mode: 0644]

index 165e0373c0c4a62ecb8d36af57a2345b27cabedf..bfc4826d77b10022fb26e0fd3425d667931519b1 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2006-11-06  Janis Johnson  <janis187@us.ibm.com>
 
        * gcc/doc/sourcebuild.texi (Test Directives): Add output-exists
@@ -50,7 +57,7 @@
        * config/arm/t-arm-coff: Likewise.
        * config/arm/t-xscale-coff: Likewise.
        * config/arm/t-wince-pe: Likewise.
-       
+
 2006-11-05  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        * config/sh/lib1funcs-4-300.asm: Guard entire file with
        (arm_override_options): Set arm_default_cpu.
 
 2006-11-03  David Ung  <davidu@mips.com>
-       
+
        * config/mips/mips.h (processor_type): Removed PROCESSOR_24K, add
        PROCESSOR_24KC and PROCESSOR_24KF.
        * config/mips/mips.c (mips_cpu_info_table): Add processor names
        * config/mips/mips.md ("cpu"): Remove 24k, add 24kc and 24kf.
        * config/mips/24k.md: Remove references to 24k and replace with
        uses of 24kc/24kf in the appropriate reservations.
-       * doc/invoke.texi (MIPS Options): Updated. 
-       
+       * doc/invoke.texi (MIPS Options): Updated.
+
 2006-11-03  J"orn Rennecke  <joern.rennecke@st.com>
 
        * config/sh/crt1.asm: Fix #ifdef indent.
 2006-11-02  Carlos O'Donell  <carlos@codesourcery.com>
 
        * config/arm/linux-elf.h (NEED_INDICATE_EXEC_STACK): Define as 1.
-       * arm.c (arm_file_end): If NEED_INDICATE_EXEC_STACK call 
-       file_end_indicate_exec_stack. 
-       * arm.h [!NEED_INDICATE_EXEC_STACK] (NEED_INIDCATE_EXEC_STACK): 
+       * arm.c (arm_file_end): If NEED_INDICATE_EXEC_STACK call
+       file_end_indicate_exec_stack.
+       * arm.h [!NEED_INDICATE_EXEC_STACK] (NEED_INIDCATE_EXEC_STACK):
        Define as 0.
        * lib1funcs.asm [__ELF__ && __linux__]: Emit .note.GNU-stack section
        for a non-executable stack.
        * crti.asm: Likewise.
        * crtn.asm: Likewise.
-       * libunwind.S: Likewise. 
+       * libunwind.S: Likewise.
 
 2006-11-02  Ben Elliston  <bje@au.ibm.com>
 
 
        * toplev.c (compile_file): Call final_write_globals
        even if there have been errors.
-       
+
 2006-10-31  Eric Christopher  <echristo@apple.com>
            Falk Hueffner  <falk@debian.org>
 
 
 2006-10-29  Daniel Berlin  <dberlin@dberlin.org>
 
-       * tree.h (tree_value_handle): Remove struct value_set declaration.      
+       * tree.h (tree_value_handle): Remove struct value_set declaration.
        Change value_set to bitmap_set.
        * tree-pretty-print.c (dump_generic_node): Use has_stmt_ann.
        * tree-vn.c (get_value_handle): Made inline and moved to
        (compute_avail): Handle RETURN_EXPR.
        (init_pre): Modify for bitmapped sets.
        * tree-flow.h (has_stmt_ann): New function.
-       
+
 2006-10-29  Roger Sayle  <roger@eyesopen.com>
 
        * builtins.c (fold_builtin_floor): Check for the availability of
 
        * config/i386/i386.c (output_387_ffreep): Create output from a
        template string for !HAVE_AS_IX86_FFREEP.
-       
+
 2006-10-27  Eric Christopher  <echristo@apple.com>
 
        * config/darwin.c: Fix formatting and grammar.
index fcdb89c8e71c834b2079815eda4208a264012e45..d1fd076e01cb2e41d2d1c1a8c9786c3a2fc4109b 100644 (file)
@@ -1015,6 +1015,12 @@ i[34567]86-*-darwin*)
        with_arch=${with_arch:-nocona}
        with_cpu=${with_cpu:-generic}
        ;;
+x86_64-*-darwin*)
+       with_arch=${with_arch:-nocona}
+       with_cpu=${with_cpu:-generic}
+       tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
+       tm_file="${tm_file} ${cpu_type}/darwin64.h"
+       ;;
 i[34567]86-*-elf*)
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
        tmake_file="i386/t-i386elf t-svr4"
index 4547864d9c113cd541c0ddd7ee6cd5ef52d827a5..4e3a017975d3f02b650341da980db3f81982ff50 100644 (file)
@@ -177,7 +177,7 @@ case ${host} in
   i[34567]86-*-interix3*)
     host_xmake_file="${host_xmake_file} x-interix"
     ;;
-  i[34567]86-*-darwin*)
+  i[34567]86-*-darwin* | x86_64-*-darwin*)
     out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o"
     host_xmake_file="${host_xmake_file} i386/x-darwin"
     ;;
diff --git a/gcc/config/i386/darwin64.h b/gcc/config/i386/darwin64.h
new file mode 100644 (file)
index 0000000..01686fa
--- /dev/null
@@ -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 },
diff --git a/gcc/config/i386/t-darwin64 b/gcc/config/i386/t-darwin64
new file mode 100644 (file)
index 0000000..e787586
--- /dev/null
@@ -0,0 +1,3 @@
+SHLIB_VERPFX = $(srcdir)/config/i386/darwin-libgcc
+LIB2_SIDITI_CONV_FUNCS=yes
+LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c