Commit 10bf9e8a by James E Wilson Committed by Jim Wilson

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
parent 395bda42
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> 2005-05-04 Kazu Hirata <kazu@cs.umass.edu>
* tree-flow-inline.h, tree-ssa-operands.c, * 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" ...@@ -3942,16 +3942,12 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
infiles[n_infiles].language = "*"; infiles[n_infiles].language = "*";
infiles[n_infiles++].name = argv[++i]; 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) else if (strcmp (argv[i], "-Xassembler") == 0)
{ i++;
infiles[n_infiles].language = "*";
infiles[n_infiles++].name = argv[++i];
}
else if (strcmp (argv[i], "-Xpreprocessor") == 0) else if (strcmp (argv[i], "-Xpreprocessor") == 0)
{ i++;
infiles[n_infiles].language = "*";
infiles[n_infiles++].name = argv[++i];
}
else if (strcmp (argv[i], "-l") == 0) else if (strcmp (argv[i], "-l") == 0)
{ /* POSIX allows separation of -l and the lib arg; { /* POSIX allows separation of -l and the lib arg;
canonicalize by concatenating -l with its arg */ canonicalize by concatenating -l with its arg */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment