Commit 33c4f174 by Jason Merrill Committed by Jason Merrill

diagnostic.c (internal_error): Say "confused" after 1 error, not two.

        * diagnostic.c (internal_error): Say "confused" after 1 error, not
        two.  Print file and line with "confused" message.

From-SVN: r39543
parent 00a42e21
2001-02-08 Jason Merrill <jason@redhat.com>
* diagnostic.c (internal_error): Say "confused" after 1 error, not
two. Print file and line with "confused" message.
* dwarf2out.c (dwarf2out_line): Include filename in -dA output.
Thu Feb 8 11:21:28 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
......
......@@ -1456,9 +1456,10 @@ internal_error VPARAMS ((const char *msgid, ...))
msgid = va_arg (ap, const char *);
#endif
if (errorcount > 1 || sorrycount > 0)
if (errorcount > 0 || sorrycount > 0)
{
fprintf (stderr, "confused by earlier errors, bailing out\n");
fprintf (stderr, "%s:%d: confused by earlier errors, bailing out\n",
input_filename, lineno);
exit (FATAL_EXIT_CODE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment