Commit 349297b6 by Joel Hutton

Fix misleading aarch64 mcpu/march warning string

The message for conflicting mcpu and march previously printed the
architecture of the CPU instead of the CPU name, as well as omitting the
extensions to the march string. This patch corrects both errors. This
patch fixes PR target/87612.

2020-02-27  Joel Hutton  <Joel.Hutton@arm.com>

        PR target/87612
        * config/aarch64/aarch64.c (aarch64_override_options): Fix
        misleading warning string.
parent a1535015
2020-02-27 Joel Hutton <Joel.Hutton@arm.com>
PR target/87612
* config/aarch64/aarch64.c (aarch64_override_options): Fix
misleading warning string.
2020-02-27 Martin Sebor <msebor@redhat.com> 2020-02-27 Martin Sebor <msebor@redhat.com>
* doc/invoke.texi (-Wbuiltin-declaration-mismatch): Fix a typo. * doc/invoke.texi (-Wbuiltin-declaration-mismatch): Fix a typo.
......
...@@ -14131,8 +14131,8 @@ aarch64_override_options (void) ...@@ -14131,8 +14131,8 @@ aarch64_override_options (void)
if (selected_arch->arch != selected_cpu->arch) if (selected_arch->arch != selected_cpu->arch)
{ {
warning (0, "switch %<-mcpu=%s%> conflicts with %<-march=%s%> switch", warning (0, "switch %<-mcpu=%s%> conflicts with %<-march=%s%> switch",
all_architectures[selected_cpu->arch].name, aarch64_cpu_string,
selected_arch->name); aarch64_arch_string);
} }
aarch64_isa_flags = arch_isa; aarch64_isa_flags = arch_isa;
explicit_arch = selected_arch->arch; explicit_arch = selected_arch->arch;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment