]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc.c (n_switches_alloc, [...]): New.
authorJoseph Myers <joseph@codesourcery.com>
Sat, 26 Jun 2010 13:11:04 +0000 (14:11 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 26 Jun 2010 13:11:04 +0000 (14:11 +0100)
commit922e18828a123733841dd652f8a78bfd13ac9856
tree69e32efa392858583e2001434b63b709abf0b5c1
parent0fb56814562a062c227b30adf8f4fb19df9725f9
gcc.c (n_switches_alloc, [...]): New.

* 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.

From-SVN: r161430
gcc/ChangeLog
gcc/gcc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/opts-3.c [new file with mode: 0644]