diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2018-09-27 21:54:09 +0200 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2018-09-27 21:54:09 +0200 |
commit | 24676f1215413e6934132bfc6a25f1c02c9eecca (patch) | |
tree | 3c7f7cf2f010f41b66c490e7fcf93591f5b07e4a /gcc/config.in | |
parent | 88307040642311b32de4fb051a64ae2796e0f1dc (diff) |
rs6000: Delete many HAVE_AS_* (PR87149)
This deletes most HAVE_AS_* that determine if the assembler supports
some ISA level (and also HAVE_AS_MFPGPR and HAVE_AS_DFP).
These are not useful: we will only generate an instruction that requires
some newer ISA if the user specifically asked for it (with -mcpu=, say).
If the assembler cannot handle that, it is fine if it gives an error.
They also hurt: it increases the number of possible situations that all
need handling and all need testing. We do not handle all cases, and
obviously do not test all either.
This patch removes:
HAVE_AS_POPCNTB (power5, 2.02)
HAVE_AS_FPRND (power5+, 2.04)
HAVE_AS_CMPB (power6, 2.05)
HAVE_AS_POPCNTD (power7, 2.06)
HAVE_AS_POWER8 (power8, 2.07)
HAVE_AS_POWER9 (power9, 3.0)
HAVE_AS_DFP (power6, 2.05, server)
HAVE_AS_MFPGPR (power6x but not later, not arch)
PR target/87149
* config.in (HAVE_AS_CMPB, HAVE_AS_DFP, HAVE_AS_FPRND, HAVE_AS_MFPGPR,
HAVE_AS_POPCNTB, HAVE_AS_POPCNTD, HAVE_AS_POWER8, HAVE_AS_POWER9):
Delete, always treat as true.
* config/powerpcspe/powerpcspe.c (rs6000_option_override_internal):
Ditto. Simplify remaining code.
* config/powerpcspe/powerpcspe.h: Ditto.
* config/rs6000/rs6000.c (rs6000_option_override_internal): Ditto.
Simplify remaining code.
(rs6000_expand_builtin): Ditto.
* config/rs6000/rs6000.h: Ditto.
* configure.ac: Ditto.
* configure: Regenerate.
From-SVN: r264675
Diffstat (limited to 'gcc/config.in')
-rw-r--r-- | gcc/config.in | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/gcc/config.in b/gcc/config.in index 775536e68e9..48dfd23e9d6 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -302,12 +302,6 @@ #endif -/* Define if your assembler supports cmpb. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_CMPB -#endif - - /* Define to the level of your assembler's compressed debug section support. */ #ifndef USED_FOR_TARGET @@ -327,12 +321,6 @@ #endif -/* Define if your assembler supports DFP instructions. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_DFP -#endif - - /* Define if your assembler supports .module. */ #ifndef USED_FOR_TARGET #undef HAVE_AS_DOT_MODULE @@ -382,12 +370,6 @@ #endif -/* Define if your assembler supports fprnd. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_FPRND -#endif - - /* Define if your assembler supports the --gdwarf2 option. */ #ifndef USED_FOR_TARGET #undef HAVE_AS_GDWARF2_DEBUG_FLAG @@ -570,12 +552,6 @@ #endif -/* Define if your assembler supports mffgpr and mftgpr. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_MFPGPR -#endif - - /* Define if your Mac OS X assembler supports the -mmacos-version-min option. */ #ifndef USED_FOR_TARGET @@ -607,30 +583,6 @@ #endif -/* Define if your assembler supports popcntb field. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_POPCNTB -#endif - - -/* Define if your assembler supports POPCNTD instructions. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_POPCNTD -#endif - - -/* Define if your assembler supports POWER8 instructions. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_POWER8 -#endif - - -/* Define if your assembler supports POWER9 instructions. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_POWER9 -#endif - - /* Define if your assembler supports .ref */ #ifndef USED_FOR_TARGET #undef HAVE_AS_REF |