[arm] PR 80389 - if architecture and cpu mismatch, don't print an architecture name...
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 11 Apr 2017 14:57:41 +0000 (14:57 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Tue, 11 Apr 2017 14:57:41 +0000 (14:57 +0000)
commit9b523c934a3bf65645254b811de3333fe18ef40c
tree44a7142776ddcde47a9abaa0389174b3ddbe96e5
parentf29876bba06c24d6fe543941ad6f683c61910555
[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.

From-SVN: r246843
gcc/ChangeLog
gcc/config/arm/arm.c