diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2021-04-14 10:56:36 +0100 |
---|---|---|
committer | Richard Earnshaw <rearnsha@arm.com> | 2021-04-14 10:56:36 +0100 |
commit | d1e4368ddb76a92c44f824c8e4ca1a3de8149342 (patch) | |
tree | b8ed63263832ac79e5453554d6c68722746e0a31 /gcc/tree-cfg.c | |
parent | 287be7f7a587cb08eb88ecee39ff5556a22976d2 (diff) | |
download | gcc-d1e4368ddb76a92c44f824c8e4ca1a3de8149342.zip gcc-d1e4368ddb76a92c44f824c8e4ca1a3de8149342.tar.gz gcc-d1e4368ddb76a92c44f824c8e4ca1a3de8149342.tar.bz2 |
arm: fix warning when -mcpu=neoverse-n1 is used with -mfpu=neon [PR100067]
If the compiler is configured with --with-fpu=<!auto> (or invoked
with, say, -mfpu=neon), then specifying -mcpu=neoverse-n1 can lead to
an unexpected warning: cc1: warning: switch ‘-mcpu=neoverse-n1’
conflicts with ‘-march=armv8.2-a’ switch
The fix for this is to correctly remove all the feature bits relating
to simd/fp units when -mfpu is used, not just those bits that form
part of the -mfpu specification (which is a subset).
gcc:
PR target/100067
* config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
from the isa_delta when -mfpu has been used.
(arm_options_perform_arch_sanity_checks): It's the architecture that
lacks an FPU not the processor.
Diffstat (limited to 'gcc/tree-cfg.c')
0 files changed, 0 insertions, 0 deletions