diff options
author | Andrew Carlotti <andrew.carlotti@arm.com> | 2024-05-10 11:56:57 +0100 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:52 +0200 |
commit | aa17619bfd61035c3cccb3ca40c72f2363a64600 (patch) | |
tree | 751bc6bf7c112d0d35a040260e2ef414e96775f2 /libcpp | |
parent | 7086cefb05fdaf3dc7fb12f009a18b5189c8cc17 (diff) | |
download | gcc-aa17619bfd61035c3cccb3ca40c72f2363a64600.zip gcc-aa17619bfd61035c3cccb3ca40c72f2363a64600.tar.gz gcc-aa17619bfd61035c3cccb3ca40c72f2363a64600.tar.bz2 |
aarch64: Decouple feature flag option storage type
The awk scripts that process the .opt files are relatively fragile and
only handle a limited set of data types correctly. The unrecognised
aarch64_feature_flags type is handled as a uint64_t, which happens to be
correct for now. However, that assumption will change when we extend
the mask to 128 bits.
This patch changes the option members to use uint64_t types, and adds a
"_0" suffix to the names (both for future extensibility, and to allow
the original name to be used for the full aarch64_feature_flags mask
within generator files).
gcc/ChangeLog:
* common/config/aarch64/aarch64-common.cc
(aarch64_set_asm_isa_flags): Reorder, and add suffix to names.
* config/aarch64/aarch64.h
(aarch64_get_asm_isa_flags): Add "_0" suffix.
(aarch64_get_isa_flags): Ditto.
(aarch64_asm_isa_flags): Redefine using renamed uint64_t value.
(aarch64_isa_flags): Ditto.
* config/aarch64/aarch64.opt:
(aarch64_asm_isa_flags): Rename to...
(aarch64_asm_isa_flags_0): ...this, and change to uint64_t.
(aarch64_isa_flags): Rename to...
(aarch64_isa_flags_0): ...this, and change to uint64_t.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions