https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109183
--- Comment #10 from Andreas Schwab <sch...@linux-m68k.org> --- If you want to generate only dependencies, use -M or -MM. -MD and -MMD are primarily used to generate dependencies as side effect of compilation.