https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69471
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- This is a symptom of a more general problem, which is that the general GCC options machinery does not know which options have a single value (-march=) and which options can have multiple values (-I). If it did, then the command-line could be filtered before processing to keep only the last setting. Some of it is done in prune_options but either it happens too late (after the driver has already messed up the command-line) or it only applies to negated options.