re PR bootstrap/18142 ("Unknown pseudo-op: .machine" compiling darwin-crt2.c)
authorPer Bothner <per@bothner.com>
Sun, 28 Nov 2004 06:06:26 +0000 (22:06 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Sun, 28 Nov 2004 06:06:26 +0000 (22:06 -0800)
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  <kcook@gcc.gnu.org>
* configure.ac (powerpc-*-darwin*): Require assembler to support
.machine directive.
* configure: Regenerate.

From-SVN: r91406

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index cc56027bc397f1b3544739d6d4bde0aa7dbffbd9..6d4ab677e63dd3a00750ae640875f5e79aecab84 100644 (file)
@@ -1,3 +1,14 @@
+2004-11-27  Per Bothner  <per@bothner.com>
+
+       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  <kcook@gcc.gnu.org>
+       * configure.ac (powerpc-*-darwin*): Require assembler to support
+       .machine directive.
+       * configure: Regenerate.
+
 2004-11-28  David Edelsohn  <edelsohn@gnu.org>
 
        PR target/16800
index 48ec4dd1e80a82ddaecc53cfe4cd1d3e44732a51..ad3bd8db7a67e97650a99af19e55f6b9b59dd46c 100755 (executable)
     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
index c7e49c0fc45fd23e66cf28773abff71fda1428e9..7edb522d9dadd559e4bb250d9a1db3eab7854dc5 100644 (file)
@@ -2706,7 +2706,16 @@ foo:     nop
     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
+         test x$build = x$target && exit 1
+       fi
+       conftest_s='    .text
        mfcr r3,128';;
       *) conftest_s='  .machine power4
        .text