2005-05-03 James E Wilson PR driver/21112 * gcc.c (process_command): In the second argv scan loop, ignore Xassembler and Xpreprocessor, along with their argument. Index: gcc.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/gcc.c,v retrieving revision 1.456 diff -p -p -r1.456 gcc.c *** gcc.c 27 Apr 2005 20:35:38 -0000 1.456 --- gcc.c 4 May 2005 01:47:54 -0000 *************** warranty; not even for MERCHANTABILITY o *** 3942,3957 **** infiles[n_infiles].language = "*"; infiles[n_infiles++].name = argv[++i]; } else if (strcmp (argv[i], "-Xassembler") == 0) ! { ! infiles[n_infiles].language = "*"; ! infiles[n_infiles++].name = argv[++i]; ! } else if (strcmp (argv[i], "-Xpreprocessor") == 0) ! { ! infiles[n_infiles].language = "*"; ! infiles[n_infiles++].name = argv[++i]; ! } else if (strcmp (argv[i], "-l") == 0) { /* POSIX allows separation of -l and the lib arg; canonicalize by concatenating -l with its arg */ --- 3942,3953 ---- 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) ! i++; else if (strcmp (argv[i], "-Xpreprocessor") == 0) ! i++; else if (strcmp (argv[i], "-l") == 0) { /* POSIX allows separation of -l and the lib arg; canonicalize by concatenating -l with its arg */