[patch] x86_64 darwin work

Eric Christopher echristo@apple.com
Fri Sep 8 03:46:00 GMT 2006


So, building on the SYMBOL_FLAG_MACH_DEP patch previously and part of 
Geoff's TImode patch here's the final patch for x86_64 support for 
darwin. It only affects darwin specific code. I've pulled out the part 
of Geoff's patch that I needed. I've separated the patches out for 
libcpp, gcc and the gcc testsuite.

The one big thing that isn't working yet is the x86_64 abi testsuite and 
that's because the asm file needs rewriting for darwin. Otherwise a few 
regressions from x86_64-linux.

OK? Tested on x86_64-darwin, i386-darwin and x86_64-linux.

-eric

2006-09-07  Eric Christopher  <echristo@apple.com>

	* configure.ac: Add 64-bit HWI support.

2006-09-07  Eric Christopher  <echristo@apple.com>

	* config.gcc (i?86-*-darwin): Add 64-bit HWI support.
	* config.host: Ditto.
	* config/t-slibgcc-darwin: Support x86_64 multilib.
	* config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
	Return 1 for x86_64-darwin.
	* config/i386/t-darwin: Add m64 multilib.
	(LIB2_SIDITI_CONV_FUNCS): Use.
	(LIB2FUNCS_EXTRA): Ditto.
	* config/i386/darwin.h: Support x86_64.
	* config/i386/i386.c (override_options): Turn on flag_pic
	for x86_64-darwin. Disable flag_omit_pointer.
	(get_pc_thunk_name): Assert !TARGET_64BIT.
	(legitimate_address_p): Disable machopic addressing for
	x86_64.
	(legitimize_pic_address): Ditto.
	(ix86_expand_move): Ditto.
	(ix86_expand_call): Ditto.
	(machopic_output_stub): Ditto.
	* config/darwin.c (machopic_select_section): Support literal16.
	(machopic_select_rtx_section): Ditto.
	* config/darwin-sections.def: Ditto.
	* config/darwin-64.c: New.

2006-09-07  Eric Christopher  <echristo@apple.com>

	* gcc.target/i386/20060512-3.c: Run test on ilp32 only.
	* gcc.target/i386/memcpy-1.c: Ditto.
	* gcc.target/i386/asm-1.c: Ditto.
	* gcc.target/i386/20060512-4.c: Ditto.
	* gcc.target/i386/compress-float-387.c: Ditto.
	* gcc.target/i386/20060512-1.c: Ditto.
	* gcc.target/i386/compress-float-sse.c: Ditto.
	* gcc.target/i386/20060512-2.c: Ditto.
	* gcc.target/i386/compress-float-sse-pic.c: Ditto.
	* gcc.target/i386/stack-prot-kernel.c: Ditto.
	* gcc.target/i386/compress-float-387-pic.c: Ditto.
	* gcc.dg/pr26449.c: Ditto.
	* gcc.dg/attr-ms_struct-2.c: Ditto.
	* gcc.dg/attr-ms_struct-1.c: Ditto.
	* gcc.misc-tests/linkage.exp: Fix 64-bit darwin support.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: x86_64-libcpp.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060908/2626ab13/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: x86_64-testsuite.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060908/2626ab13/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: x86_64-gcc.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060908/2626ab13/attachment-0002.ksh>


More information about the Gcc-patches mailing list