From f0ca30bf140486165af102ba9823f99b8eb0e558 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Sat, 29 Sep 2018 00:02:17 +0200 Subject: [PATCH] rs6000: Delete HAVE_AS_DCI Every supported assembler supports these instructions. Committing. * config.in: Delete HAVE_AS_DCI. * config/powerpcspe/powerpcspe.h: Treat HAVE_AS_DCI as always true. * config/rs6000/rs6000.h: Ditto. * configure.ac: Delete HAVE_AS_DCI. * configure: Regenerate. From-SVN: r264703 --- gcc/ChangeLog | 8 ++++++ gcc/config.in | 6 ---- gcc/config/powerpcspe/powerpcspe.h | 4 --- gcc/config/rs6000/rs6000.h | 4 --- gcc/configure | 45 ------------------------------ gcc/configure.ac | 15 ---------- 6 files changed, 8 insertions(+), 74 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf52864503c..dd520215cac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2018-09-28 Segher Boessenkool + + * config.in: Delete HAVE_AS_DCI. + * config/powerpcspe/powerpcspe.h: Treat HAVE_AS_DCI as always true. + * config/rs6000/rs6000.h: Ditto. + * configure.ac: Delete HAVE_AS_DCI. + * configure: Regenerate. + 2018-09-28 Segher Boessenkool * config.in (HAVE_AS_LWSYNC): Delete. diff --git a/gcc/config.in b/gcc/config.in index 1242326ad98..4db8aa1ea15 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -309,12 +309,6 @@ #endif -/* Define if your assembler supports the DCI/ICI instructions. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_DCI -#endif - - /* Define if your assembler supports the --debug-prefix-map option. */ #ifndef USED_FOR_TARGET #undef HAVE_AS_DEBUG_PREFIX_MAP diff --git a/gcc/config/powerpcspe/powerpcspe.h b/gcc/config/powerpcspe/powerpcspe.h index 2bb32c7f7ac..df0676a72a4 100644 --- a/gcc/config/powerpcspe/powerpcspe.h +++ b/gcc/config/powerpcspe/powerpcspe.h @@ -77,11 +77,7 @@ #define ASM_CPU_POWER8_SPEC "-mpower8" #define ASM_CPU_POWER9_SPEC "-mpower9" -#ifdef HAVE_AS_DCI #define ASM_CPU_476_SPEC "-m476" -#else -#define ASM_CPU_476_SPEC "-mpower4" -#endif /* Common ASM definitions used by ASM_SPEC among the various targets for handling -mcpu=xxx switches. There is a parallel list in driver-powerpcspe.c to diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index d2fe795fd8a..855de7ca60a 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -78,11 +78,7 @@ #define ASM_CPU_POWER8_SPEC "-mpower8" #define ASM_CPU_POWER9_SPEC "-mpower9" -#ifdef HAVE_AS_DCI #define ASM_CPU_476_SPEC "-m476" -#else -#define ASM_CPU_476_SPEC "-mpower4" -#endif /* Common ASM definitions used by ASM_SPEC among the various targets for handling -mcpu=xxx switches. There is a parallel list in driver-rs6000.c to diff --git a/gcc/configure b/gcc/configure index 5d2fd184a23..9fb0eb57a8a 100755 --- a/gcc/configure +++ b/gcc/configure @@ -26719,51 +26719,6 @@ if test $gcc_cv_as_powerpc_vsx = yes; then $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h -fi - - - case $target in - *-*-aix*) conftest_s=' .machine "476" - .csect .text[PR] - dci 0';; - *) conftest_s=' .machine "476" - .text - dci 0';; - esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5 -$as_echo_n "checking assembler for data cache invalidate support... " >&6; } -if test "${gcc_cv_as_powerpc_dci+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - gcc_cv_as_powerpc_dci=no - if test $in_tree_gas = yes; then - if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0` - then gcc_cv_as_powerpc_dci=yes -fi - elif test x$gcc_cv_as != x; then - $as_echo "$conftest_s" > conftest.s - if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } - then - gcc_cv_as_powerpc_dci=yes - else - echo "configure: failed program was" >&5 - cat conftest.s >&5 - fi - rm -f conftest.o conftest.s - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5 -$as_echo "$gcc_cv_as_powerpc_dci" >&6; } -if test $gcc_cv_as_powerpc_dci = yes; then - -$as_echo "#define HAVE_AS_DCI 1" >>confdefs.h - fi diff --git a/gcc/configure.ac b/gcc/configure.ac index 3c1e0ad27c3..ca51cdf751b 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -4557,21 +4557,6 @@ LCF0: [AC_DEFINE(HAVE_AS_VSX, 1, [Define if your assembler supports VSX instructions.])]) - case $target in - *-*-aix*) conftest_s=' .machine "476" - .csect .text[[PR]] - dci 0';; - *) conftest_s=' .machine "476" - .text - dci 0';; - esac - - gcc_GAS_CHECK_FEATURE([data cache invalidate support], - gcc_cv_as_powerpc_dci, [9,99,0], -a32, - [$conftest_s],, - [AC_DEFINE(HAVE_AS_DCI, 1, - [Define if your assembler supports the DCI/ICI instructions.])]) - gcc_GAS_CHECK_FEATURE([.gnu_attribute support], gcc_cv_as_powerpc_gnu_attribute, [2,18,0],, [.gnu_attribute 4,1],, -- 2.30.2