diff options
author | Kelley Cook <kcook@gcc.gnu.org> | 2004-10-19 00:21:03 +0000 |
---|---|---|
committer | R. Kelley Cook <kcook@gcc.gnu.org> | 2004-10-19 00:21:03 +0000 |
commit | 4c67db1411f2a68436ea76248a15e25930505acf (patch) | |
tree | 9c3d4e6592609aab0a533a42e50623eaa0eac20d /gcc | |
parent | df484c6bbc575b64ee5d5b02f20b54afd6cf1988 (diff) | |
download | gcc-4c67db1411f2a68436ea76248a15e25930505acf.zip gcc-4c67db1411f2a68436ea76248a15e25930505acf.tar.gz gcc-4c67db1411f2a68436ea76248a15e25930505acf.tar.bz2 |
configure.ac (powerpc-*-darwin*): Require assembler to support .machine directive.
2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
* configure.ac (powerpc-*-darwin*): Require assembler to support
.machine directive.
* configure: Regenerate.
From-SVN: r89264
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rwxr-xr-x | gcc/configure | 35 | ||||
-rw-r--r-- | gcc/configure.ac | 12 |
3 files changed, 49 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3cc164..20fcd5f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/configure b/gcc/configure index 9a2639f2..6805f56 100755 --- a/gcc/configure +++ b/gcc/configure @@ -14369,9 +14369,40 @@ 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 + exit 1 + fi + conftest_s=' .text mfcr r3,128';; - *) conftest_s=' .machine power4 + *) conftest_s=' .machine power4 .text mfcr 3,128';; esac diff --git a/gcc/configure.ac b/gcc/configure.ac index e75b1bc..ee559a2 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -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 |