From: Neil Booth Date: Thu, 11 Jan 2001 18:28:14 +0000 (+0000) Subject: invoke.texi: Restore documentation of the drivers' switches -MD and -MMD. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7da723efd9260109e3a67eeab1952cde933e7820;p=gcc.git invoke.texi: Restore documentation of the drivers' switches -MD and -MMD. * invoke.texi: Restore documentation of the drivers' switches -MD and -MMD. From-SVN: r38920 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd7d321fac3..5189ef8a21e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-01-11 Neil Booth + + * invoke.texi: Restore documentation of the drivers' switches -MD + and -MMD. + 2001-01-11 Alexandre Oliva * config/sh/sh.h (LABEL_ALIGN): Use UNSPECV_ALIGN instead of 1. diff --git a/gcc/invoke.texi b/gcc/invoke.texi index b9cddc8c900..3bad5685fbc 100644 --- a/gcc/invoke.texi +++ b/gcc/invoke.texi @@ -3317,6 +3317,25 @@ Like @samp{-M}, but mention only the files included with @samp{#include "@var{file}"}. System header files included with @samp{#include <@var{file}>} are omitted. +@item -MD +@findex -MD +Like @samp{-M} but the dependency information is written to a file +rather than stdout. @code{gcc} will use the same file name and +directory as the object file, but with the suffix ".d" instead. + +This is in addition to compiling the main file as specified --- +@samp{-MD} does not inhibit ordinary compilation the way @samp{-M} does, +unless you also specify @samp{-MG}. + +With Mach, you can use the utility @code{md} to merge multiple +dependency files into a single dependency file suitable for using with +the @samp{make} command. + +@item -MMD @var{file} +@findex -MMD +Like @samp{-MD} except mention only user header files, not system +-header files. + @item -MF @var{file} @findex -MF When used with @samp{-M} or @samp{-MM}, specifies a file to write the