This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: re-apply Kelley's test for old Darwin cctools
- From: Per Bothner <per at bothner dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 21 Nov 2004 11:35:31 -0800
- Subject: PATCH: re-apply Kelley's test for old Darwin cctools
This fixes PR 18142, as I see it.
See http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01222.html
Original patch: http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01572.html
Reverted Oct 20. Discussion, including:
http://gcc.gnu.org/ml/gcc/2004-10/msg00805.html
http://gcc.gnu.org/ml/gcc/2004-10/msg00962.html
It's been suggested that Kelley's patch would be better
as a native-only patch. However, no-body has submitted such
a patch. This patch is IMO clearly better than the status quo.
Ok to check in?
Note I made one change: I added the url for where one can get
the updated cctools.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
2004-11-21 Per Bothner <per@bothner.com>
Re-applied following, adding a URL for the fixed cctools.
2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
* configure.ac (powerpc-*-darwin*): Require assembler to support
.machine directive.
* configure: Regenerate.
Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.ac,v
retrieving revision 2.83
diff -u -r2.83 configure.ac
--- configure.ac 5 Nov 2004 04:49:18 -0000 2.83
+++ configure.ac 21 Nov 2004 19:34:06 -0000
@@ -2700,7 +2700,16 @@
case $target in
*-*-aix*) conftest_s=' .csect .text[[PR]]
mfcr 3,128';;
- *-*-darwin*) conftest_s=' .text
+ *-*-darwin*)
+ gcc_GAS_CHECK_FEATURE([.machine directive support],
+ gcc_cv_as_machine_directive,,,
+ [ .machine ppc7400])
+ if test x$gcc_cv_as_machine_directive != xyes; then
+ echo "*** This target requires an assembler supporting \".machine\"" >&2
+ echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
+ exit 1
+ fi
+ conftest_s=' .text
mfcr r3,128';;
*) conftest_s=' .machine power4
.text