https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91130
--- Comment #24 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- It would appear that the handling of -MMD is the same on both Arm and X86 - in both cases it swallows the subsequent -MF option when digested by lto-wrapper. I'm not sure yet why the two compilers then diverge in later behaviour, but the bug would appear to be the handling of this option rather then the subsequent divergence in behaviour.