From 33c4f1746c89572fc7a7a843cc6aa59302a2756c Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 8 Feb 2001 12:18:47 -0500 Subject: [PATCH] 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 --- gcc/ChangeLog | 3 +++ gcc/diagnostic.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e8a9876fe7f..8fb27ca76c4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2001-02-08 Jason Merrill + * 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 diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 2dccd4c8b0d..11039403e27 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -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); } -- 2.30.2