public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/19361] New: -MT option does not escape funny characters
@ 2005-01-10 14:16 abbott at dima dot unige dot it
  2005-01-10 15:01 ` [Bug preprocessor/19361] " neil at daikokuya dot co dot uk
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: abbott at dima dot unige dot it @ 2005-01-10 14:16 UTC (permalink / raw)
  To: gcc-bugs

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.

-- 
           Summary: -MT option does not escape funny characters
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: abbott at dima dot unige dot it
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i486-slackware-linux
  GCC host triplet: i486-slackware-linux
GCC target triplet: i486-slackware-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19361


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bug preprocessor/19361] New: -MT option does not escape funny characters
  2005-01-10 14:16 [Bug preprocessor/19361] New: -MT option does not escape funny characters abbott at dima dot unige dot it
  2005-01-10 15:01 ` [Bug preprocessor/19361] " neil at daikokuya dot co dot uk
@ 2005-01-10 15:01 ` Neil Booth
  2005-01-10 15:40 ` [Bug preprocessor/19361] " abbott at bigatti dot dima dot unige dot it
  2005-01-10 15:42 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: Neil Booth @ 2005-01-10 15:01 UTC (permalink / raw)
  To: abbott at dima dot unige dot it; +Cc: gcc-bugs

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?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/19361] -MT option does not escape funny characters
  2005-01-10 14:16 [Bug preprocessor/19361] New: -MT option does not escape funny characters abbott at dima dot unige dot it
@ 2005-01-10 15:01 ` neil at daikokuya dot co dot uk
  2005-01-10 15:01 ` [Bug preprocessor/19361] New: " Neil Booth
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: neil at daikokuya dot co dot uk @ 2005-01-10 15:01 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/19361] -MT option does not escape funny characters
  2005-01-10 14:16 [Bug preprocessor/19361] New: -MT option does not escape funny characters abbott at dima dot unige dot it
  2005-01-10 15:01 ` [Bug preprocessor/19361] " neil at daikokuya dot co dot uk
  2005-01-10 15:01 ` [Bug preprocessor/19361] New: " Neil Booth
@ 2005-01-10 15:40 ` abbott at bigatti dot dima dot unige dot it
  2005-01-10 15:42 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: abbott at bigatti dot dima dot unige dot it @ 2005-01-10 15:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From abbott at bigatti dot dima dot unige dot it  2005-01-10 15:40 -------
Subject: Re:  -MT option does not escape funny
 characters


> What's wrong with -MQ?

Thank you.  I'm at a loss for words: I must be suffering from selective blindness

John.
PS now I wonder why -MT exists at all.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19361


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/19361] -MT option does not escape funny characters
  2005-01-10 14:16 [Bug preprocessor/19361] New: -MT option does not escape funny characters abbott at dima dot unige dot it
                   ` (2 preceding siblings ...)
  2005-01-10 15:40 ` [Bug preprocessor/19361] " abbott at bigatti dot dima dot unige dot it
@ 2005-01-10 15:42 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-10 15:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-10 15:41 -------
Invalid as explained to use -MQ.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19361


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-10 15:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-10 14:16 [Bug preprocessor/19361] New: -MT option does not escape funny characters abbott at dima dot unige dot it
2005-01-10 15:01 ` [Bug preprocessor/19361] " neil at daikokuya dot co dot uk
2005-01-10 15:01 ` [Bug preprocessor/19361] New: " Neil Booth
2005-01-10 15:40 ` [Bug preprocessor/19361] " abbott at bigatti dot dima dot unige dot it
2005-01-10 15:42 ` pinskia 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).