aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2001-02-08 12:18:47 -0500
committerJason Merrill <jason@gcc.gnu.org>2001-02-08 12:18:47 -0500
commit33c4f1746c89572fc7a7a843cc6aa59302a2756c (patch)
tree6c41bb9e7be8ce23852d881b1c4717dcaee683e6 /gcc/diagnostic.c
parent00a42e216052d5015c2f5c68d368e9d9af2a922f (diff)
downloadgcc-33c4f1746c89572fc7a7a843cc6aa59302a2756c.zip
gcc-33c4f1746c89572fc7a7a843cc6aa59302a2756c.tar.gz
gcc-33c4f1746c89572fc7a7a843cc6aa59302a2756c.tar.bz2
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
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r--gcc/diagnostic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
index 2dccd4c..1103940 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);
}