This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/20989] The -M option gives object file names without directory
- From: "bje at safepro dot dk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Apr 2005 14:38:57 -0000
- Subject: [Bug preprocessor/20989] The -M option gives object file names without directory
- References: <20050413124755.20989.bje@safepro.dk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bje at safepro dot dk 2005-04-13 14:38 -------
Actually the manual explicit says that any path in the input file name is kept
by default in the description of the "-MT TARGET" option. So either the
preprocessor or the manual does have a bug when the preprocessor discards the path:
`-MT TARGET'
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 `.c', and appends the
platform's usual object suffix. The result is the target.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20989