Commit 9a2d05e0 by Iain Sandoe

enable multilibs on powerpc64-apple-darwin

	* config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
	* config/rs6000/t-darwin64: New.
	* config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
	build crt2.

From-SVN: r159817
parent 8fde8b40
2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
* config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
* config/rs6000/t-darwin64: New.
* config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
build crt2.
2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com> 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
PR 44203 PR 44203
......
...@@ -1906,9 +1906,10 @@ powerpc-*-darwin*) ...@@ -1906,9 +1906,10 @@ powerpc-*-darwin*)
extra_headers=altivec.h extra_headers=altivec.h
;; ;;
powerpc64-*-darwin*) powerpc64-*-darwin*)
tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h"
extra_options="${extra_options} ${cpu_type}/darwin.opt" extra_options="${extra_options} ${cpu_type}/darwin.opt"
# We're omitting t-darwin8 to avoid building any multilibs extra_parts="crt2.o"
tmake_file="t-darwin ${cpu_type}/t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h"
lto_binary_reader=lto-macho lto_binary_reader=lto-macho
extra_headers=altivec.h extra_headers=altivec.h
;; ;;
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
| MASK_MULTIPLE | MASK_NEW_MNEMONICS | MASK_PPC_GFXOPT) | MASK_MULTIPLE | MASK_NEW_MNEMONICS | MASK_PPC_GFXOPT)
#undef DARWIN_ARCH_SPEC #undef DARWIN_ARCH_SPEC
#define DARWIN_ARCH_SPEC "ppc64" #define DARWIN_ARCH_SPEC "%{m32:ppc;:ppc64}"
#undef DARWIN_SUBARCH_SPEC #undef DARWIN_SUBARCH_SPEC
#define DARWIN_SUBARCH_SPEC DARWIN_ARCH_SPEC #define DARWIN_SUBARCH_SPEC DARWIN_ARCH_SPEC
......
LIB2_SIDITI_CONV_FUNCS=yes
LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/darwin-tramp.asm \
$(srcdir)/config/darwin-64.c \
$(srcdir)/config/rs6000/darwin-ldouble.c \
$(srcdir)/config/rs6000/darwin-world.asm
MULTILIB_OPTIONS = m32
MULTILIB_DIRNAMES = ppc
#LIBGCC = stmp-multilib
#INSTALL_LIBGCC = install-multilib
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment