[GCC] Fix misleading aarch64 mcpu/march warning string
Joel
Joel.Hutton@arm.com
Thu Feb 27 14:31:00 GMT 2020
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.
before:
$ aarch64-unknown-linux-gnu-gcc -S -O3 -march=armv8-a+sve
-mcpu=cortex-a76 foo.c
cc1: warning: switch '-mcpu=armv8.2-a' conflicts with '-march=armv8-a'
switch
after:
$ aarch64-unknown-linux-gnu-gcc -S -O3 -march=armv8-a+sve
-mcpu=cortex-a76 foo.c
cc1: warning: switch '-mcpu=cortex-a76' conflicts with
'-march=armv8-a+sve' switch
gcc/ChangeLog:
2020-02-27 Joel Hutton <Joel.Hutton@arm.com>
PR target/87612
* config/aarch64/aarch64.c (aarch64_override_options): Fix
misleading warning string.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-aarch64-warning-for-conflicting-mcpu-march(1).patch
Type: text/x-patch
Size: 1184 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20200227/3122a90b/attachment.bin>
More information about the Gcc-patches
mailing list