* gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jun 2010 13:11:04 +0000 (13:11 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jun 2010 13:11:04 +0000 (13:11 +0000)
commitbd338b2c2d6952d92be7facd7a715958ef939b6c
tree69e32efa392858583e2001434b63b709abf0b5c1
parentf446fb22f9823f702bf18d4a89d60b8461a9fceb
* gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
add_infile, alloc_switch): New.
(process_command): Remove variable lang_n_infiles.  Process
options in a single pass.  Use new functions for allocating
infiles and switches arrays.  Properly skip operands of
-Xpreprocessor and -Xassembler.

testsuite:
* gcc.dg/opts-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161430 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gcc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/opts-3.c [new file with mode: 0644]