aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorJames E. Wilson <wilson@specifixinc.com>2005-05-04 17:20:43 +0000
committerJames E. Wilson <wilson@specifixinc.com>2005-05-04 17:20:43 +0000
commit319a97cbb775976eb30c29dda91fb0a4871ec7bc (patch)
treeb0f0a0d0345ca52c2ebf6c15e9dcd11783d4cf64 /gcc/gcc.c
parentad65f4eef17907405ab5052e1143cd2d5e18ad62 (diff)
Fix the Xassembler and Xpreprocessor options, which have never worked right.
PR driver/21112 * gcc.c (process_command): In the second argv scan loop, ignore Xassembler and Xpreprocessor, along with their argument. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@99221 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 1a0418d9ed0..e131eb6f8ef 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3942,16 +3942,12 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
infiles[n_infiles].language = "*";
infiles[n_infiles++].name = argv[++i];
}
+ /* Xassembler and Xpreprocessor were already handled in the first argv
+ scan, so all we need to do here is ignore them and their argument. */
else if (strcmp (argv[i], "-Xassembler") == 0)
- {
- infiles[n_infiles].language = "*";
- infiles[n_infiles++].name = argv[++i];
- }
+ i++;
else if (strcmp (argv[i], "-Xpreprocessor") == 0)
- {
- infiles[n_infiles].language = "*";
- infiles[n_infiles++].name = argv[++i];
- }
+ i++;
else if (strcmp (argv[i], "-l") == 0)
{ /* POSIX allows separation of -l and the lib arg;
canonicalize by concatenating -l with its arg */