From 9519e677aa364957a00d6ac07be28efaac6de69f Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 7 Nov 2006 05:40:34 +0000 Subject: [PATCH] config.gcc: Add x86_64-darwin host support. 2006-11-06 Eric Christopher * 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 | 31 +++++++++++++++++++------------ gcc/config.gcc | 6 ++++++ gcc/config.host | 2 +- gcc/config/i386/darwin64.h | 35 +++++++++++++++++++++++++++++++++++ gcc/config/i386/t-darwin64 | 3 +++ 5 files changed, 64 insertions(+), 13 deletions(-) create mode 100644 gcc/config/i386/darwin64.h create mode 100644 gcc/config/i386/t-darwin64 diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 165e0373c0c4..bfc4826d77b1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2006-11-06 Eric Christopher + + * 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 * 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 * config/sh/lib1funcs-4-300.asm: Guard entire file with @@ -141,7 +148,7 @@ (arm_override_options): Set arm_default_cpu. 2006-11-03 David Ung - + * 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 @@ -150,8 +157,8 @@ * 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 * config/sh/crt1.asm: Fix #ifdef indent. @@ -252,15 +259,15 @@ 2006-11-02 Carlos O'Donell * 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 @@ -473,7 +480,7 @@ * toplev.c (compile_file): Call final_write_globals even if there have been errors. - + 2006-10-31 Eric Christopher Falk Hueffner @@ -672,7 +679,7 @@ 2006-10-29 Daniel Berlin - * 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 @@ -741,7 +748,7 @@ (compute_avail): Handle RETURN_EXPR. (init_pre): Modify for bitmapped sets. * tree-flow.h (has_stmt_ann): New function. - + 2006-10-29 Roger Sayle * builtins.c (fold_builtin_floor): Check for the availability of @@ -994,7 +1001,7 @@ * config/i386/i386.c (output_387_ffreep): Create output from a template string for !HAVE_AS_IX86_FFREEP. - + 2006-10-27 Eric Christopher * config/darwin.c: Fix formatting and grammar. diff --git a/gcc/config.gcc b/gcc/config.gcc index fcdb89c8e71c..d1fd076e01cb 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -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" diff --git a/gcc/config.host b/gcc/config.host index 4547864d9c11..4e3a017975d3 100644 --- a/gcc/config.host +++ b/gcc/config.host @@ -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 index 000000000000..01686fa0ed55 --- /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 }, diff --git a/gcc/config/i386/t-darwin64 b/gcc/config/i386/t-darwin64 new file mode 100644 index 000000000000..e7875864b18c --- /dev/null +++ b/gcc/config/i386/t-darwin64 @@ -0,0 +1,3 @@ +SHLIB_VERPFX = $(srcdir)/config/i386/darwin-libgcc +LIB2_SIDITI_CONV_FUNCS=yes +LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c -- 2.47.2