Commit 922e1882 by Joseph Myers Committed by Joseph Myers

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
parent 0fb56814
2010-06-26 Joseph Myers <joseph@codesourcery.com>
* 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.
2010-06-26 Jan Hubicka <jh@suse.cz>
PR middle-end/44671
......
2010-06-26 Joseph Myers <joseph@codesourcery.com>
* gcc.dg/opts-3.c: New test.
2010-06-26 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/type_decl_1.f90: New.
......
/* Parameters of -Xassembler should not be interpreted as driver
options (and so cause the driver to exit prematurely, as in this
testcase, or have other unintended effects). */
/* { dg-do compile } */
/* { dg-options "-Xassembler -dumpmachine" } */
int int x; /* { dg-error "two or more data types" } */
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