aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2019-02-28 10:43:41 +0000
committerTamar Christina <tnfchris@gcc.gnu.org>2019-02-28 10:43:41 +0000
commit29c6debccf0d155cb0a0fd14eb6afe077a206f27 (patch)
tree162f8aaf5ae7a6a3a63322618e8e4bd851bc3940 /gcc/tree.c
parentee8b2b8ea44097072e2df28f1b248d45ddd4c0fd (diff)
downloadgcc-29c6debccf0d155cb0a0fd14eb6afe077a206f27.zip
gcc-29c6debccf0d155cb0a0fd14eb6afe077a206f27.tar.gz
gcc-29c6debccf0d155cb0a0fd14eb6afe077a206f27.tar.bz2
AArch64: Have empty HWCAPs string ignored during native feature detection
This patch makes the feature detection code for AArch64 GCC not add features automatically when the feature had no hwcaps string to match against. This means that -mcpu=native no longer adds feature flags such as +profile. The behavior wasn't noticed before because at the time +profile was added a bug was preventing any feature bits from being added by native detections. The loop has also been changed as Jakub specified in order to avoid a memory leak that was present in the existing code and to be slightly more efficient. gcc/ChangeLog: PR target/88530 * config/aarch64/aarch64-option-extensions.def: Document it. * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature if empty hwcaps. gcc/testsuite/ChangeLog: PR target/88530 * gcc.target/aarch64/options_set_10.c: New test. From-SVN: r269276
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions