public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/15185] New: -M default target - -MT documentation
@ 2004-04-28 2:32 droopycom at yahoo dot com
2004-04-28 4:04 ` [Bug preprocessor/15185] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 7+ messages in thread
From: droopycom at yahoo dot com @ 2004-04-28 2:32 UTC (permalink / raw)
To: gcc-bugs
In the gcc info pages the documentation for -M and -MT appears to contradict
each other as to what the target name should be by default:
`-M':
[...]
Unless specified explicitly (with `-MT' or `-MQ'), the object file
name consists of the basename of the source file with any suffix
replaced with object file suffix.
`-MT TARGET':
[...] By
default, CPP takes the name of the source file, including any
path, deletes any file suffix such as `.c', and appends the
platform's usual object suffix. The result is the target.
My understanding is that the `basename' (used in -M doc) is the filename
without the path.
My experience also shows the real default behaviour is the one described in -M
description, not in -MT description. (tested on 2.95 and 3.3.3)
I, for one, would like the behaviour described in -MT.
So this bug report includes:
- a documentation error.
- a request for a new -Mx directive to use filename including path for default
target name.
Thanks
F.G.
--
Summary: -M default target - -MT documentation
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: droopycom at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: any
GCC host triplet: any
GCC target triplet: any
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15185
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <bug-15185-8007@http.gcc.gnu.org/bugzilla/>]
* [Bug preprocessor/15185] -M default target - -MT documentation
[not found] <bug-15185-8007@http.gcc.gnu.org/bugzilla/>
@ 2007-01-08 1:36 ` tromey at gcc dot gnu dot org
2007-01-08 15:30 ` patchapp at dberlin dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-08 1:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tromey at gcc dot gnu dot org 2007-01-08 01:36 -------
I've submitted a patch.
As explained in the message, I think we should just document
the current behavior, not change it.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
AssignedTo|unassigned at gcc dot gnu |tromey at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-11-02 01:45:05 |2007-01-08 01:36:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15185
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/15185] -M default target - -MT documentation
[not found] <bug-15185-8007@http.gcc.gnu.org/bugzilla/>
2007-01-08 1:36 ` tromey at gcc dot gnu dot org
@ 2007-01-08 15:30 ` patchapp at dberlin dot org
2007-01-11 1:26 ` patchapp at dberlin dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: patchapp at dberlin dot org @ 2007-01-08 15:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from patchapp at dberlin dot org 2007-01-08 15:30 -------
Subject: Bug number PR preprocessor/15185
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg00532.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15185
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/15185] -M default target - -MT documentation
[not found] <bug-15185-8007@http.gcc.gnu.org/bugzilla/>
2007-01-08 1:36 ` tromey at gcc dot gnu dot org
2007-01-08 15:30 ` patchapp at dberlin dot org
@ 2007-01-11 1:26 ` patchapp at dberlin dot org
2007-01-11 16:27 ` tromey at gcc dot gnu dot org
2008-07-12 17:19 ` tromey at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: patchapp at dberlin dot org @ 2007-01-11 1:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from patchapp at dberlin dot org 2007-01-11 01:26 -------
Subject: Bug number PR preprocessor/15185
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg00866.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15185
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/15185] -M default target - -MT documentation
[not found] <bug-15185-8007@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2007-01-11 1:26 ` patchapp at dberlin dot org
@ 2007-01-11 16:27 ` tromey at gcc dot gnu dot org
2008-07-12 17:19 ` tromey at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-11 16:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from tromey at gcc dot gnu dot org 2007-01-11 16:27 -------
Subject: Bug 15185
Author: tromey
Date: Thu Jan 11 16:26:55 2007
New Revision: 120679
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120679
Log:
PR preprocessor/15185, PR preprocessor/20989:
* doc/cppopts.texi <-MT>: Update description of algorithm for
computing default target.
<-M, -MD>: Reword "basename" text.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/doc/cppopts.texi
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15185
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/15185] -M default target - -MT documentation
[not found] <bug-15185-8007@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2007-01-11 16:27 ` tromey at gcc dot gnu dot org
@ 2008-07-12 17:19 ` tromey at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-07-12 17:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from tromey at gcc dot gnu dot org 2008-07-12 17:18 -------
This was fixed for 4.3, and I think it unlikely that anyone will
backport the doc fix. So, I am closing this.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15185
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-07-12 17:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-28 2:32 [Bug preprocessor/15185] New: -M default target - -MT documentation droopycom at yahoo dot com
2004-04-28 4:04 ` [Bug preprocessor/15185] " pinskia at gcc dot gnu dot org
[not found] <bug-15185-8007@http.gcc.gnu.org/bugzilla/>
2007-01-08 1:36 ` tromey at gcc dot gnu dot org
2007-01-08 15:30 ` patchapp at dberlin dot org
2007-01-11 1:26 ` patchapp at dberlin dot org
2007-01-11 16:27 ` tromey at gcc dot gnu dot org
2008-07-12 17:19 ` tromey at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).