https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100067

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Earnshaw <rearn...@gcc.gnu.org>:

https://gcc.gnu.org/g:d1e4368ddb76a92c44f824c8e4ca1a3de8149342

commit r11-8168-gd1e4368ddb76a92c44f824c8e4ca1a3de8149342
Author: Richard Earnshaw <rearn...@arm.com>
Date:   Wed Apr 14 10:56:36 2021 +0100

    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.

Reply via email to