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.
+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>
* doc/invoke.texi (-Wbuiltin-declaration-mismatch): Fix a typo.
if (selected_arch->arch != selected_cpu->arch)
{
warning (0, "switch %<-mcpu=%s%> conflicts with %<-march=%s%> switch",
- all_architectures[selected_cpu->arch].name,
- selected_arch->name);
+ aarch64_cpu_string,
+ aarch64_arch_string);
}
aarch64_isa_flags = arch_isa;
explicit_arch = selected_arch->arch;