This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR driver/22544, not erroring out when supplying multiple files to gcc



On Oct 16, 2005, at 5:00 PM, Andrew Pinski wrote:


The problem here is that after the additional of "-combine", we no longer
error about having supplying multiple files and using -S/-c and -o.


This fixes the problem by adding back the error message without removing
-combine and the support needed for it.


OK for the mainline and 4.0 branc? Bootstrapped and tested on
x86-64-pc-linux-gnu and made sure that -combine can be still used.

Thanks,
Andrew Pinski

Woops, forgot the changelog:


	* gcc.c (have_c): New static variable.
	(have_o): Likewise.
	(process_command): Remove declation of have_c.
	Set have_o to 1 when handling -o.
	(main): Add a fatel error if there are multiple
	files specified and -o and -c/-S is passed witout
	-combine or multiple languages.


-- Pinski



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]