Commit 2ef32c88 by Richard Stallman

(process_command): In second loop over all switches,

don't increment I for switches that don't have separate arguments.

From-SVN: r1856
parent c01b03e8
......@@ -2109,14 +2109,15 @@ process_command (argc, argv)
for (i = 1; i < argc; i++)
{
/* Just skip the switches that were handled by the preceding loop. */
if (!strcmp (argv[i], "-Xlinker"))
i++;
else if (! strncmp (argv[i], "-Wl,", 4))
i++;
;
else if (! strncmp (argv[i], "-Wa,", 4))
i++;
;
else if (! strcmp (argv[i], "-print-libgcc-file-name"))
i++;
;
else if (argv[i][0] == '-' && argv[i][1] != 0 && argv[i][1] != 'l')
{
register char *p = &argv[i][1];
......
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