This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR driver/22544, not erroring out when supplying multiple files to gcc
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 16 Oct 2005 17:01:48 -0400
- Subject: Re: [PATCH] Fix PR driver/22544, not erroring out when supplying multiple files to gcc
- References: <5a3b6a79ce216dc717b467749c780853@physics.uc.edu>
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