This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/15185] New: -M default target - -MT documentation
- From: "droopycom at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Apr 2004 02:05:02 -0000
- Subject: [Bug preprocessor/15185] New: -M default target - -MT documentation
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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