]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Improve mcpu/march conflict check
authorAndrew Carlotti <andrew.carlotti@arm.com>
Wed, 8 Jan 2025 18:29:27 +0000 (18:29 +0000)
committerAndrew Carlotti <andrew.carlotti@arm.com>
Fri, 24 Jan 2025 19:01:02 +0000 (19:01 +0000)
commit936463004836cb565f4fc4773dccedbfccf0028f
tree75d6407275d64aac64ee0bbf5ee8b4c47eb99ffc
parentc4dae80357ccf2e035d8e9ec0a3bb319344c5b41
aarch64: Improve mcpu/march conflict check

Features from a cpu or base architecture that were explicitly disabled
by a +nofeat option were being incorrectly added back in before checking
for conflicts between -mcpu and -march options.  This patch instead
compares the returned feature masks directly.

gcc/ChangeLog:

* config/aarch64/aarch64.cc (aarch64_override_options): Compare
returned feature masks directly.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/target_attr_crypto_ice_1.c: Prune warning.
* gcc.target/aarch64/target_attr_crypto_ice_2.c: Ditto.
gcc/config/aarch64/aarch64.cc
gcc/testsuite/gcc.target/aarch64/target_attr_crypto_ice_1.c
gcc/testsuite/gcc.target/aarch64/target_attr_crypto_ice_2.c