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]

Re: _fatal_insn doesn't cause ICE


kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:

| It calls error, which increments errorcount, but we don't want to consider
| that an error for the purpose of seeing whether to say we were confused
| by earlier errors.
| 
| I committed this in both the mainline and the branch:
| 
| Sun Feb 18 09:30:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
| 
| 	* diagnostic.c (_fatal_insn): Decrement errorcount.
| 
| *** diagnostic.c	2001/02/08 17:18:47	1.51
| --- diagnostic.c	2001/02/18 14:57:31
| *************** _fatal_insn (msgid, insn, file, line, fu
| *** 1487,1490 ****
| --- 1487,1495 ----
|   {
|     error ("%s", msgid);
| + 
| +   /* The above incremented error_count, but isn't an error that we want to
| +      count, so reset it here.  */
| +   errorcount--;

At some point we should make a clear distinction about all these and
properly factor out codes, instead of playing count games.

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


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