diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-01-06 00:15:29 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-01-06 00:15:29 +0000 |
commit | f7114e1750e9f65412cade6e7740b65cba27ac25 (patch) | |
tree | dfcf1a323ecd306223b732c5c47577888caad329 /gcc/cpp.texi | |
parent | a64761a3cab9218b7fd6ad7fb6ef9b8eb997ba87 (diff) | |
download | gcc-f7114e1750e9f65412cade6e7740b65cba27ac25.zip gcc-f7114e1750e9f65412cade6e7740b65cba27ac25.tar.gz gcc-f7114e1750e9f65412cade6e7740b65cba27ac25.tar.bz2 |
cpp.texi: Update for -MQ.
* cpp.texi: Update for -MQ.
* cppinit.c (cpp_create_reader): Always create pfile->deps.
(cpp_cleanup): Always free pfile->deps.
(initialize_dependency_output): Don't create pfile->deps.
(cpp_handle_option): Similarly.
(OPT_MQ): New.
* gcc.c (cpp_options): Handle -MQ.
(DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.
* mkdeps.c (base_name): Remove.
(deps_init): Don't allocate vector space until it's needed.
(deps_free): Only free vectors if allocated.
(deps_add_target, deps_add_dep): Update for initial allocation.
(deps_add_default_target): Don't strip to the base_name.
From-SVN: r38735
Diffstat (limited to 'gcc/cpp.texi')
-rw-r--r-- | gcc/cpp.texi | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/gcc/cpp.texi b/gcc/cpp.texi index 7df4531..1f8121f 100644 --- a/gcc/cpp.texi +++ b/gcc/cpp.texi @@ -3491,24 +3491,36 @@ This is typical output:- /tmp/test.h: @end smallexample +@item -MQ @var{target} @item -MT @var{target} @findex -MT -By default CPP uses the base file name and appends the object suffix, -normally ``.o'', to it to obtain the name of the target for dependency -generation. With @samp{-MT} you can specify a target yourself, -overriding the default one. +@findex -MQ +By default CPP uses the main file name, including any path, and appends +the object suffix, normally ``.o'', to it to obtain the name of the +target for dependency generation. With @samp{-MT} you can specify a +target yourself, overriding the default one. If you want multiple targets, you can specify them as a single argument to @samp{-MT}, or use multiple @samp{-MT} options. The targets you specify are output in the order they appear on the -command line, and, unlike the default target, are not quoted for MAKE. -This allows you to do things like, for example, +command line. @samp{-MQ} is identical to @samp{-MT}, except that the +target name is quoted for Make, but with @samp{-MT} it isn't. For +example, -MT '$(objpfx)foo.o' gives @smallexample --MT '$(objpfx)foo.o $(objpfx)foo.os $(objpfx)foo.op' +$(objpfx)foo.o: /tmp/foo.c @end smallexample +but -MQ '$(objpfx)foo.o' gives + +@smallexample +$$(objpfx)foo.o: /tmp/foo.c +@end smallexample + +The default target is automatically quoted, as if it were given with +@samp{-MQ}. + @item -H @findex -H Print the name of each header file used, in addition to other normal |