https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91130
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> --- My bet is that this has something to do with the -MMD option, which is one of the 4? NoDriverArg options, where supposedly the user when using that option doesn't supply the argument but the specs add it. Perhaps during the LTO option handling at some point NoDriverArg isn't handled right and we have at that point still no argument after it, but it thinks it is in the context where it must have an argument and so uses the following -MF as the argument and thus the -MF argument is then an option.