[Bug target/80389] [7 Regression][ARM] -march=armv8-a and -mcpu=cortex-a57 results in invalid .cpu assembly directive

rearnsha at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 11 14:58:00 GMT 2017


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

--- Comment #5 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Author: rearnsha
Date: Tue Apr 11 14:57:41 2017
New Revision: 246843

URL: https://gcc.gnu.org/viewcvs?rev=246843&root=gcc&view=rev
Log:
[arm] PR 80389 - if architecture and cpu mismatch, don't print an architecture
name as a CPU name

In this PR we incorrectly print the architecture name in a .cpu
directive in the assembly file when the -mcpu and -march options
conflict (don't target the same base architecture).  In this case the
.arch overrides the .cpu directive and we should emit a .arch option.

PR target/80389
* config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch conflict,
set target->arch_name instead of target->cpu_name.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm.c


More information about the Gcc-bugs mailing list