diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2022-09-29 11:32:53 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2022-09-29 11:32:53 +0100 |
commit | 198bb6ed327c74eb2b0450bf978e4e6a64a6406c (patch) | |
tree | 5fd28906c068e3b7005d60c37fd140198f941e9c /gcc/common | |
parent | 0af214b447529453b356e8e480d7d35b3e642f0e (diff) | |
download | gcc-198bb6ed327c74eb2b0450bf978e4e6a64a6406c.zip gcc-198bb6ed327c74eb2b0450bf978e4e6a64a6406c.tar.gz gcc-198bb6ed327c74eb2b0450bf978e4e6a64a6406c.tar.bz2 |
aarch64: Avoid redundancy in aarch64-cores.def
The flags fields of the aarch64-cores.def always start with
AARCH64_FL_FOR_<ARCH>. After previous changes, <ARCH> is always
identical to the previous field, so we can drop the explicit
AARCH64_FL_FOR_<ARCH> and derive it programmatically.
This isn't a big saving in itself, but it helps with later patches.
gcc/
* config/aarch64/aarch64-cores.def: Remove AARCH64_FL_FOR_<ARCH>
from the flags field.
* common/config/aarch64/aarch64-common.cc (all_cores): Add it
here instead.
* config/aarch64/aarch64.cc (all_cores): Likewise.
* config/aarch64/driver-aarch64.cc (all_cores): Likewise.
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/config/aarch64/aarch64-common.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/common/config/aarch64/aarch64-common.cc b/gcc/common/config/aarch64/aarch64-common.cc index 063f84b..0c6d25e 100644 --- a/gcc/common/config/aarch64/aarch64-common.cc +++ b/gcc/common/config/aarch64/aarch64-common.cc @@ -175,7 +175,7 @@ struct arch_to_arch_name static const struct processor_name_to_arch all_cores[] = { #define AARCH64_CORE(NAME, X, IDENT, ARCH_IDENT, FLAGS, COSTS, IMP, PART, VARIANT) \ - {NAME, AARCH64_ARCH_##ARCH_IDENT, FLAGS}, + {NAME, AARCH64_ARCH_##ARCH_IDENT, AARCH64_FL_FOR_##ARCH_IDENT | FLAGS}, #include "config/aarch64/aarch64-cores.def" {"generic", AARCH64_ARCH_V8A, AARCH64_FL_FOR_V8A}, {"", aarch64_no_arch, 0} |