https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109183
--- Comment #14 from Andreas Schwab <sch...@linux-m68k.org> --- It doesn't make sense to use both -MM and -MD. Either you want to generate only dependencies, then use -M or -MM (and -MF to redirect to a file). Or you want to generate dependencies as side effect of compilation, then use -MD or -MMD.