From: Richard Stallman Date: Sat, 15 Aug 1992 07:49:48 +0000 (+0000) Subject: (process_command): In second loop over all switches, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ef32c884ece08d0a766fa51fae27e905a5a537d;p=gcc.git (process_command): In second loop over all switches, don't increment I for switches that don't have separate arguments. From-SVN: r1856 --- diff --git a/gcc/gcc.c b/gcc/gcc.c index b1613505bb4..2254d4b08e5 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -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];