diff options
author | James E Wilson <wilson@specifixinc.com> | 2005-05-04 17:20:43 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2005-05-04 10:20:43 -0700 |
commit | 10bf9e8a16dd0cca35fb8f553a65b260c89eb7df (patch) | |
tree | b0f0a0d0345ca52c2ebf6c15e9dcd11783d4cf64 | |
parent | 395bda42dda9992410fc66bf655ffe503ef6d75b (diff) | |
download | gcc-10bf9e8a16dd0cca35fb8f553a65b260c89eb7df.zip gcc-10bf9e8a16dd0cca35fb8f553a65b260c89eb7df.tar.gz gcc-10bf9e8a16dd0cca35fb8f553a65b260c89eb7df.tar.bz2 |
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.
From-SVN: r99221
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/gcc.c | 12 |
2 files changed, 10 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e2568bc..716e81f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-05-04 James E Wilson <wilson@specifixinc.com> + + PR driver/21112 + * gcc.c (process_command): In the second argv scan loop, ignore + Xassembler and Xpreprocessor, along with their argument. + 2005-05-04 Kazu Hirata <kazu@cs.umass.edu> * tree-flow-inline.h, tree-ssa-operands.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 */ |