From 8af4d362c20fa06c560a3c0f3b281ffa5297e044 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Sat, 27 Nov 2004 22:06:26 -0800 Subject: re PR bootstrap/18142 ("Unknown pseudo-op: .machine" compiling darwin-crt2.c) PR bootstrap/18142 Re-applied following, with two modifications: add a URL for the fixed cctools; only exit if $build = $target. 2004-10-18 Kelley Cook * configure.ac (powerpc-*-darwin*): Require assembler to support .machine directive. * configure: Regenerate. From-SVN: r91406 --- gcc/configure | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'gcc/configure') diff --git a/gcc/configure b/gcc/configure index 48ec4dd..ad3bd8d 100755 --- a/gcc/configure +++ b/gcc/configure @@ -14444,7 +14444,39 @@ fi case $target in *-*-aix*) conftest_s=' .csect .text[PR] mfcr 3,128';; - *-*-darwin*) conftest_s=' .text + *-*-darwin*) + echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5 +echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6 +if test "${gcc_cv_as_machine_directive+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + gcc_cv_as_machine_directive=no + if test x$gcc_cv_as != x; then + echo ' .machine ppc7400' > conftest.s + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } + then + gcc_cv_as_machine_directive=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5 +echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6 + + 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 + test x$build = x$target && exit 1 + fi + conftest_s=' .text mfcr r3,128';; *) conftest_s=' .machine power4 .text -- cgit v1.1