https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91025
Bug ID: 91025 Summary: cpp man page incorrectly describes -MD option Product: gcc Version: 7.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: srk31 at srcf dot ucam.org Target Milestone: --- The cpp manual page's description of the -MD option is incorrect. It would be correct as a description of gcc's -MD option... indeed it is phrased in terms of "if -MD is used in conjunction with -E" and "the driver", neither of which makes sense when running cpp directly. As far as I can tell, when running "cpp" the "without -E" semantics always apply: if -o is given then its filename is used but with a ".d" suffix substituted; otherwise, the same substitution is done but on the input filename. In other words, "-o" never directly specifies the dependency output file, whether or not "-E" is on the command line (unlike when running gcc). I'm happy in principle to produce a patch... but haven't quite got my head around how the man pages are generated (from the texinfo?).