* [PATCH] Fix error in option handling
@ 2007-07-14 4:20 MURAKAMI Kiyoshi
2007-07-27 0:03 ` Ian Lance Taylor
0 siblings, 1 reply; 3+ messages in thread
From: MURAKAMI Kiyoshi @ 2007-07-14 4:20 UTC (permalink / raw)
To: gcc-patches
The compiler driver accepts specific argument (e.g. `-v') as an option
for the compiler driver itself even if the argument immediately
follows -Xassembler or -Xpreprocessor.
The following patch fixes this problem.
MURAKAMI Kiyoshi
2007-07-14 MURAKAMI Kiyoshi <murakami@za.bb-east.ne.jp>
* gcc.c (process_command): Skip the argument immediately following
-Xassembler or -Xpreprocessor.
* gcc.c (process_command): Remove redundant code.
Index: gcc.c
===================================================================
--- gcc.c (revision 126617)
+++ gcc.c (working copy)
@@ -3713,6 +3713,7 @@ warranty; not even for MERCHANTABILITY o
fatal ("argument to '-Xpreprocessor' is missing");
add_preprocessor_option (argv[i+1], strlen (argv[i+1]));
+ i++;
}
else if (strcmp (argv[i], "-Xassembler") == 0)
{
@@ -3720,6 +3721,7 @@ warranty; not even for MERCHANTABILITY o
fatal ("argument to '-Xassembler' is missing");
add_assembler_option (argv[i+1], strlen (argv[i+1]));
+ i++;
}
else if (strcmp (argv[i], "-l") == 0)
{
@@ -3960,8 +3962,7 @@ warranty; not even for MERCHANTABILITY o
if (save_temps_flag && use_pipes)
{
/* -save-temps overrides -pipe, so that temp files are produced */
- if (save_temps_flag)
- error ("warning: -pipe ignored because -save-temps specified");
+ error ("warning: -pipe ignored because -save-temps specified");
use_pipes = 0;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix error in option handling
2007-07-14 4:20 [PATCH] Fix error in option handling MURAKAMI Kiyoshi
@ 2007-07-27 0:03 ` Ian Lance Taylor
2007-09-26 15:59 ` MURAKAMI Kiyoshi
0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2007-07-27 0:03 UTC (permalink / raw)
To: MURAKAMI Kiyoshi; +Cc: gcc-patches
MURAKAMI Kiyoshi <murakami@za.bb-east.ne.jp> writes:
> 2007-07-14 MURAKAMI Kiyoshi <murakami@za.bb-east.ne.jp>
>
> * gcc.c (process_command): Skip the argument immediately following
> -Xassembler or -Xpreprocessor.
>
> * gcc.c (process_command): Remove redundant code.
This is OK.
Thanks.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix error in option handling
2007-07-27 0:03 ` Ian Lance Taylor
@ 2007-09-26 15:59 ` MURAKAMI Kiyoshi
0 siblings, 0 replies; 3+ messages in thread
From: MURAKAMI Kiyoshi @ 2007-09-26 15:59 UTC (permalink / raw)
To: iant; +Cc: gcc-patches
From: Ian Lance Taylor <iant@google.com>
Subject: Re: [PATCH] Fix error in option handling
Date: 26 Jul 2007 16:56:23 -0700
> MURAKAMI Kiyoshi <murakami@za.bb-east.ne.jp> writes:
>
> > 2007-07-14 MURAKAMI Kiyoshi <murakami@za.bb-east.ne.jp>
> >
> > * gcc.c (process_command): Skip the argument immediately following
> > -Xassembler or -Xpreprocessor.
> >
> > * gcc.c (process_command): Remove redundant code.
>
> This is OK.
The patch have not been checked into the SVN repository. I supposed
wrongly that someone with write access check in a submitted patch if
the patch is OK. I don't have write permission to the repository
because I'm not a maintainer. (I have not made any contributions
yet.)
Could you check in the patch?
Thank you.
MURAKAMI Kiyoshi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-26 14:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-14 4:20 [PATCH] Fix error in option handling MURAKAMI Kiyoshi
2007-07-27 0:03 ` Ian Lance Taylor
2007-09-26 15:59 ` MURAKAMI Kiyoshi
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).