This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
64-bit multilib for Darwin
- From: Stan Shebs <shebs at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Feb 2005 15:53:25 -0800
- Subject: 64-bit multilib for Darwin
This patch takes the fateful step of enabling 64-bit multilib for
Darwin 8. It's known to be broken for 64-bit libjava (asm bits here
and there, and possibly a linker bug), but I expect to resolve
these soon, and not very many people even have all the bits needed
to discover this breakage, so am not bothering to disable libjava
build just yet.
Stan
2005-02-16 Stan Shebs <shebs@apple.com>
* config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or
later.
* config/rs6000/t-darwin8: New, for 64-bit multilib.
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.515
diff -p -r1.515 config.gcc
*** config.gcc 6 Feb 2005 08:34:33 -0000 1.515
--- config.gcc 16 Feb 2005 21:37:13 -0000
*************** powerpc-*-beos*)
*** 1549,1554 ****
--- 1549,1559 ----
powerpc-*-darwin*)
tm_file="${tm_file} rs6000/darwin.h"
tmake_file="${tmake_file} rs6000/t-darwin"
+ case ${target} in
+ *-darwin1[0-9]*) tmake_file="${tmake_file} rs6000/t-darwin8" ;;
+ *-darwin[0-7]*) ;;
+ *-darwin[8-9]*) tmake_file="${tmake_file} rs6000/t-darwin8" ;;
+ esac
extra_headers=altivec.h
;;
powerpc*-*-freebsd*)
Index: config/rs6000/t-darwin8
===================================================================
RCS file: config/rs6000/t-darwin8
diff -N config/rs6000/t-darwin8
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/rs6000/t-darwin8 16 Feb 2005 21:37:13 -0000
***************
*** 0 ****
--- 1,3 ----
+ # 64-bit libraries can only be built in Darwin 8.x or later.
+ MULTILIB_OPTIONS = m64
+ MULTILIB_DIRNAMES = ppc64