This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: PR preprocessor/15185
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 07 Jan 2007 16:27:31 -0700
- Subject: Patch: PR preprocessor/15185
- Reply-to: tromey at redhat dot com
This patch fixes PR preprocessor/15185.
The bug is that the -M and -MT documentation differ in their
descriptions of how the default target is chosen for dependency
output.
The PR asks that we switch to the description given in the -MT docs,
but I'm of the opinion that we should keep the code the same and
simply fix the docs. My reason for this is that first, we don't know
who may rely on the current behavior, and second, folks can always
override the target using -MT or -MQ anyhow.
Built on x86 FC5. I didn't bootstrap or run regressions as this is
just a doc patch.
Ok? I think this should go in 4.2 and trunk. Perhaps it should go in
4.1 as well.
Tom
:ADDPATCH preprocessor:
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
PR preprocessor/15185:
* doc/cppopts.texi <-MT>: Update description of algorithm for
computing default target.
Index: doc/cppopts.texi
===================================================================
--- doc/cppopts.texi (revision 120448)
+++ doc/cppopts.texi (working copy)
@@ -1,4 +1,4 @@
-@c Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+@c Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
@c Free Software Foundation, Inc.
@c This is part of the CPP and GCC manuals.
@c For copying conditions, see the file gcc.texi.
@@ -268,9 +268,9 @@
@opindex MT
Change the target of the rule emitted by dependency generation. By
-default CPP takes the name of the main input file, including any path,
-deletes any file suffix such as @samp{.c}, and appends the platform's
-usual object suffix. The result is the target.
+default CPP takes the base name of the main input file, deletes any
+file suffix such as @samp{.c}, and appends the platform's usual object
+suffix. The result is the target.
An @option{-MT} option will set the target to be exactly the string you
specify. If you want multiple targets, you can specify them as a single