aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac12
1 files changed, 10 insertions, 2 deletions
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