This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/19361] -MT option does not escape funny characters
- From: "neil at daikokuya dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2005 15:01:29 -0000
- Subject: [Bug preprocessor/19361] -MT option does not escape funny characters
- References: <20050110141652.19361.abbott@dima.unige.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From neil at daikokuya dot co dot uk 2005-01-10 15:01 -------
Subject: Re: New: -MT option does not escape funny characters
abbott at dima dot unige dot it wrote:-
> The -MT option really does use precisely the specified string as the target.
> It would be better if spaces (and other funny characters) were
> escaped (using backslash) in the output.
>
> Note: for my purposes it would be enough to follow the proposal in
> bug #15185 that there be an option to force the full path name in
> the target.
>
> EXAMPLE: compare the outputs of the following two calls to gcc
> $ touch my\ prog.c
> $ gcc -MM my\ prog.c
> my\ prog.o: my\ prog.c
> $ gcc -MM my\ prog.c -MT my\ prog.o
> my prog.o: my\ prog.c
>
> I am inclined to say that the second output is wrong.
What's wrong with -MQ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19361