https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82175
--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- Author: rearnsha Date: Tue Sep 26 09:33:49 2017 New Revision: 253189 URL: https://gcc.gnu.org/viewcvs?rev=253189&root=gcc&view=rev Log: [ARM] PR82175 - fix -mcpu=native not working correctly. The new option processing machinery relies on %< rules in the specs to suppress options that are rewritten. Suppression appears to be a two phase process where the option is partially suppressed when %< is processed and then fully suppressed at the end of the string. Strings are separated by commas and there can be multiple strings used to form DRIVER_SELF_SPECS. The fix in this case is to separate the driver self specs for ARM into separate rules as described; this forces the -m{cpu,tune,arch}=native options to be properly removed before proceeding to the next rule set. PR target/82175 * config/arm/arm.h (DRIVER_SELF_SPECS): Separate sub-rules with commas. Modified: trunk/gcc/ChangeLog trunk/gcc/config/arm/arm.h