From: David Edelsohn Date: Thu, 21 Jan 2016 18:50:17 +0000 (+0000) Subject: configure.ac (gcc_cv_as_powerpc_mfcrf, [...]): Detangle. X-Git-Tag: basepoints/gcc-7~1413 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b7a526411bc2d60a2dd102bdb56ef4e87a4c196;p=thirdparty%2Fgcc.git configure.ac (gcc_cv_as_powerpc_mfcrf, [...]): Detangle. * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive): Detangle. From-SVN: r232697 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b12ff9fe988..07e2057edb66 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-01-21 David Edelsohn + + * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive): + Detangle. + 2016-01-21 Pat Haugen * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9. diff --git a/gcc/configure b/gcc/configure index 73c1850ee26e..ff646e8fcac2 100755 --- a/gcc/configure +++ b/gcc/configure @@ -25904,10 +25904,8 @@ fi ;; powerpc*-*-*) + case $target in - *-*-aix*) conftest_s=' .machine "pwr5" - .csect .text[PR] - mfcr 3,128';; *-*-darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5 $as_echo_n "checking assembler for .machine directive support... " >&6; } @@ -25940,7 +25938,14 @@ $as_echo "$gcc_cv_as_machine_directive" >&6; } 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 + ;; + esac + + case $target in + *-*-aix*) conftest_s=' .machine "pwr5" + .csect .text[PR] + mfcr 3,128';; + *-*-darwin*) conftest_s=' .text mfcr r3,128';; *) conftest_s=' .machine power4 .text diff --git a/gcc/configure.ac b/gcc/configure.ac index 4727b2ad6a94..4dc7c109a266 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -4172,10 +4172,8 @@ value:' ;; powerpc*-*-*) + case $target in - *-*-aix*) conftest_s=' .machine "pwr5" - .csect .text[[PR]] - mfcr 3,128';; *-*-darwin*) gcc_GAS_CHECK_FEATURE([.machine directive support], gcc_cv_as_machine_directive,,, @@ -4185,7 +4183,14 @@ value:' 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 + ;; + esac + + case $target in + *-*-aix*) conftest_s=' .machine "pwr5" + .csect .text[[PR]] + mfcr 3,128';; + *-*-darwin*) conftest_s=' .text mfcr r3,128';; *) conftest_s=' .machine power4 .text