https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83743
--- Comment #8 from Peter Bergner <bergner at gcc dot gnu.org> --- Author: bergner Date: Mon Feb 5 19:17:37 2018 New Revision: 257392 URL: https://gcc.gnu.org/viewcvs?rev=257392&root=gcc&view=rev Log: Back port from mainline 2018-02-01 Peter Bergner <berg...@vnet.ibm.com> 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: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/config/rs6000/driver-rs6000.c