Here is how to reproduce this: echo junk > junk.c echo junk > junk1.c echo junk > junk2.c mainline gcc would do: gcc -c *.c junk.c:1: error: parse error at end of input i.e. it does not try to compile the files on the command line after encountering the first error. gcc-3.4.0 would print gcc -c *.c junk.c:1: error: parse error at end of input junk1.c:1: error: parse error at end of input junk2.c:1: error: parse error at end of input
I actually like this new way because it gave you time to fix the first errors without having to do a control-C to stop the compiling the rest of the files.
(In reply to comment #1) > I actually like this new way because it gave you time to fix the first errors without having to do a > control-C to stop the compiling the rest of the files. Well, that is incosistent with what other compilers do, and with what is done for an error in one file. Was this a documented change?
No but the old way was not documented either as far as I can see. Also most of the time you are not passing more than one file to the driver.
(In reply to comment #3) > Also most of the time you are not > passing more than one file to the driver. In that case the old and new behavior are completely identical. In the case you are passing multiple files (and a lot of people do) then you'd want to see all the errors from all files for the same reasons you want to see all the errors within a file.
Confirmed.
*** Bug 18732 has been marked as a duplicate of this bug. ***
This was caused by the combination of the following patches: 2004-04-07 Caroline Tice <ctice@apple.com> * gcc.c (main): Move 'break' in main loops (on an error) to wait until error processing has occurred. 2004-04-05 Caroline Tice <ctice@apple.com> * gcc.c (combine_flag): New global variable, for new driver option. (struct compiler): Add two new fields, to be used when combining multiple input files in a single pass (IMA). (default_compilers): Add values for the new fields to all compiler entries. Modify the "@c" compiler entry for doing IMA properly with "-save-temps" and the "combine" flag.
Subject: Re: [4.0 Regression] compilation stops after the first file with errors I am testing patch to fix this.
Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00030.html>.
Fixed by: PR 18732 * gcc.c (main): Do not break out of loop when error is reported while processing one source file.