]> gcc.gnu.org Git - gcc.git/commitdiff
configure.ac (powerpc-*-darwin*): Require assembler to support .machine directive.
authorKelley Cook <kcook@gcc.gnu.org>
Tue, 19 Oct 2004 00:21:03 +0000 (00:21 +0000)
committerR. Kelley Cook <kcook@gcc.gnu.org>
Tue, 19 Oct 2004 00:21:03 +0000 (00:21 +0000)
2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>

* configure.ac (powerpc-*-darwin*): Require assembler to support
.machine directive.
* configure: Regenerate.

From-SVN: r89264

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index e3cc16405afd34bf86d11bc8c4f920ac62b22745..20fcd5f215a5147ba224c32abcb14fbc6346043a 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
+
+       * configure.ac (powerpc-*-darwin*): Require assembler to support
+       .machine directive.
+       * configure: Regenerate.
+
 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
 
        * reload1.c (ior_hard_reg_set): Remove.
index 9a2639f2f6bb38455bd2127f0996ae8e0ead1596..6805f56cde1f1e85880e5b6cb12fad52ed5981de 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
+         exit 1
+       fi
+       conftest_s='    .text
        mfcr r3,128';;
-      *)       conftest_s='    .machine power4
+      *) conftest_s='  .machine power4
        .text
        mfcr 3,128';;
     esac
index e75b1bc4b83a2ad14db4c3e7fec38d927b0dc2f9..ee559a29fe7149a9f2a792daca6a9a07f5716334 100644 (file)
@@ -2695,9 +2695,17 @@ 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
+         exit 1
+       fi
+       conftest_s='    .text
        mfcr r3,128';;
-      *)       conftest_s='    .machine power4
+      *) conftest_s='  .machine power4
        .text
        mfcr 3,128';;
     esac
This page took 0.102246 seconds and 5 git commands to generate.