aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2021-04-19 16:56:31 +0100
committerRichard Earnshaw <rearnsha@arm.com>2021-04-19 16:56:31 +0100
commit3bffc4b37e85c7f6092dfb0fbe4067d268e97b46 (patch)
tree40b99fa1ed284dc5af57691cb166600cf69ff20f /gcc/config
parent714bdc31b69688ae2eaeb9807a48e0f101fecf4e (diff)
downloadgcc-3bffc4b37e85c7f6092dfb0fbe4067d268e97b46.zip
gcc-3bffc4b37e85c7f6092dfb0fbe4067d268e97b46.tar.gz
gcc-3bffc4b37e85c7f6092dfb0fbe4067d268e97b46.tar.bz2
arm: partial revert of r11-8168 [PR100067]
This is a partial revert of r11-8168. The overall purpose of the commit is retained (to fix a bogus warning when -mfpu=<not-auto> is used in combination with eg -mcpu=neoverse-v1), but it removes the hunk that changed the subsequent feature bits for features of a simd/fp unit that cannot be described by -mfpu. While I still think that is the correct direction of travel, it's somewhat disruptive and not appropriate for late stage4. I'll revisit for gcc-12. gcc: PR target/100067 * config/arm/arm.c (arm_configure_build_target): Do not strip extended FPU/SIMD feature bits from the target ISA when -mfpu is specified (partial revert of r11-8168).
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arm/arm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 475fb0d..340f7c9 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -3396,9 +3396,11 @@ arm_configure_build_target (struct arm_build_target *target,
auto_sbitmap fpu_bits (isa_num_bits);
arm_initialize_isa (fpu_bits, arm_selected_fpu->isa_bits);
- /* Clear out ALL bits relating to the FPU/simd extensions, to avoid
- potentially invalid combinations later on that we can't match. */
- bitmap_and_compl (target->isa, target->isa, isa_all_fpbits);
+ /* This should clear out ALL bits relating to the FPU/simd
+ extensions, to avoid potentially invalid combinations later on
+ that we can't match. At present we only clear out those bits
+ that can be set by -mfpu. This should be fixed in GCC-12. */
+ bitmap_and_compl (target->isa, target->isa, isa_all_fpubits_internal);
bitmap_ior (target->isa, target->isa, fpu_bits);
}