config.gcc: Add x86_64-darwin host support.

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
This commit is contained in:
Eric Christopher 2006-11-07 05:40:34 +00:00
parent 61e390b1ad
commit 9519e677aa
5 changed files with 64 additions and 13 deletions

View 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

View 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"

View 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"
;;

View File

@ -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 },

View File

@ -0,0 +1,3 @@
SHLIB_VERPFX = $(srcdir)/config/i386/darwin-libgcc
LIB2_SIDITI_CONV_FUNCS=yes
LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c