]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Avoid redundancy in aarch64-cores.def
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 29 Sep 2022 10:32:53 +0000 (11:32 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 29 Sep 2022 10:32:53 +0000 (11:32 +0100)
commit198bb6ed327c74eb2b0450bf978e4e6a64a6406c
tree5fd28906c068e3b7005d60c37fd140198f941e9c
parent0af214b447529453b356e8e480d7d35b3e642f0e
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.
gcc/common/config/aarch64/aarch64-common.cc
gcc/config/aarch64/aarch64-cores.def
gcc/config/aarch64/aarch64.cc
gcc/config/aarch64/driver-aarch64.cc