This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/83743] -mcpu=native causes gcc to exit in error if cpu is not recognized
- From: "bergner at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Feb 2018 18:27:24 +0000
- Subject: [Bug target/83743] -mcpu=native causes gcc to exit in error if cpu is not recognized
- Auto-submitted: auto-generated
- References: <bug-83743-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83743
--- Comment #6 from Peter Bergner <bergner at gcc dot gnu.org> ---
Author: bergner
Date: Thu Feb 1 18:26:51 2018
New Revision: 257305
URL: https://gcc.gnu.org/viewcvs?rev=257305&root=gcc&view=rev
Log:
PR target/56010
PR target/83743
* config/rs6000/driver-rs6000.c: #include "diagnostic.h".
#include "opts.h".
(rs6000_supported_cpu_names): New static variable.
(linux_cpu_translation_table): Likewise.
(elf_platform) <cpu>: Define new static variable and use it.
Translate kernel AT_PLATFORM name to canonical name if needed.
Error if platform name is unknown.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/driver-rs6000.c