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/>]

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).