public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/15690] New: compilation stops after the first file with errors
@ 2004-05-28  7:40 dann at godzilla dot ics dot uci dot edu
  2004-05-28  8:05 ` [Bug driver/15690] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2004-05-28  7:40 UTC (permalink / raw)
  To: gcc-bugs

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

-- 
           Summary: compilation stops after the first file with errors
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug driver/15690] compilation stops after the first file with errors
  2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
@ 2004-05-28  8:05 ` pinskia at gcc dot gnu dot org
  2004-05-28 11:27 ` dann at godzilla dot ics dot uci dot edu
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-28  8:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-27 18:16 -------
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.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug driver/15690] compilation stops after the first file with errors
  2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
  2004-05-28  8:05 ` [Bug driver/15690] " pinskia at gcc dot gnu dot org
@ 2004-05-28 11:27 ` dann at godzilla dot ics dot uci dot edu
  2004-05-28 11:28 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2004-05-28 11:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dann at godzilla dot ics dot uci dot edu  2004-05-27 19:18 -------
(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? 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug driver/15690] compilation stops after the first file with errors
  2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
  2004-05-28  8:05 ` [Bug driver/15690] " pinskia at gcc dot gnu dot org
  2004-05-28 11:27 ` dann at godzilla dot ics dot uci dot edu
@ 2004-05-28 11:28 ` pinskia at gcc dot gnu dot org
  2004-05-28 13:27 ` dann at godzilla dot ics dot uci dot edu
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-28 11:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-27 19:25 -------
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.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug driver/15690] compilation stops after the first file with errors
  2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
                   ` (2 preceding siblings ...)
  2004-05-28 11:28 ` pinskia at gcc dot gnu dot org
@ 2004-05-28 13:27 ` dann at godzilla dot ics dot uci dot edu
  2004-06-25 23:31 ` [Bug driver/15690] [3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2004-05-28 13:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dann at godzilla dot ics dot uci dot edu  2004-05-27 20:24 -------
(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. 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug driver/15690] [3.5 Regression] compilation stops after the first file with errors
  2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
                   ` (3 preceding siblings ...)
  2004-05-28 13:27 ` dann at godzilla dot ics dot uci dot edu
@ 2004-06-25 23:31 ` pinskia at gcc dot gnu dot org
  2004-11-30  2:06 ` [Bug driver/15690] [4.0 " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-25 23:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-25 23:24 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-25 23:24:53
               date|                            |
            Summary|compilation stops after the |[3.5 Regression] compilation
                   |first file with errors      |stops after the first file
                   |                            |with errors
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug driver/15690] [4.0 Regression] compilation stops after the first file with errors
  2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
                   ` (4 preceding siblings ...)
  2004-06-25 23:31 ` [Bug driver/15690] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-11-30  2:06 ` pinskia at gcc dot gnu dot org
  2004-11-30  2:07 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-30  2:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-30 02:05 -------
*** Bug 18732 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dpatel at apple dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug driver/15690] [4.0 Regression] compilation stops after the first file with errors
  2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
                   ` (5 preceding siblings ...)
  2004-11-30  2:06 ` [Bug driver/15690] [4.0 " pinskia at gcc dot gnu dot org
@ 2004-11-30  2:07 ` pinskia at gcc dot gnu dot org
  2004-11-30 22:12 ` dpatel at apple dot com
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-30  2:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-30 02:07 -------
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.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ctice at apple dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug driver/15690] [4.0 Regression] compilation stops after the first file with errors
  2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
                   ` (6 preceding siblings ...)
  2004-11-30  2:07 ` pinskia at gcc dot gnu dot org
@ 2004-11-30 22:12 ` dpatel at apple dot com
  2004-12-01 16:21 ` pinskia at gcc dot gnu dot org
  2004-12-11  7:45 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: dpatel at apple dot com @ 2004-11-30 22:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dpatel at apple dot com  2004-11-30 22:12 -------
Subject: Re:  [4.0 Regression] compilation stops after the first file with errors

I am testing patch to fix this.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug driver/15690] [4.0 Regression] compilation stops after the first file with errors
  2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
                   ` (7 preceding siblings ...)
  2004-11-30 22:12 ` dpatel at apple dot com
@ 2004-12-01 16:21 ` pinskia at gcc dot gnu dot org
  2004-12-11  7:45 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-01 16:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-01 16:21 -------
Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00030.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug driver/15690] [4.0 Regression] compilation stops after the first file with errors
  2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
                   ` (8 preceding siblings ...)
  2004-12-01 16:21 ` pinskia at gcc dot gnu dot org
@ 2004-12-11  7:45 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-11  7:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-11 07:45 -------
Fixed by:
        PR 18732
        * gcc.c (main): Do not break out of loop when error is reported while
        processing one source file.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15690


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-12-11  7:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-28  7:40 [Bug driver/15690] New: compilation stops after the first file with errors dann at godzilla dot ics dot uci dot edu
2004-05-28  8:05 ` [Bug driver/15690] " pinskia at gcc dot gnu dot org
2004-05-28 11:27 ` dann at godzilla dot ics dot uci dot edu
2004-05-28 11:28 ` pinskia at gcc dot gnu dot org
2004-05-28 13:27 ` dann at godzilla dot ics dot uci dot edu
2004-06-25 23:31 ` [Bug driver/15690] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-11-30  2:06 ` [Bug driver/15690] [4.0 " pinskia at gcc dot gnu dot org
2004-11-30  2:07 ` pinskia at gcc dot gnu dot org
2004-11-30 22:12 ` dpatel at apple dot com
2004-12-01 16:21 ` pinskia at gcc dot gnu dot org
2004-12-11  7:45 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).