summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-08 17:18:47 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-08 17:18:47 +0000
commit918145447c01f65682fe8d0254cf93eefc5cf357 (patch)
tree6c41bb9e7be8ce23852d881b1c4717dcaee683e6 /gcc/diagnostic.c
parentca6c45a9443ac83e1de8a1f2d9e94614232de231 (diff)
downloadgcc-918145447c01f65682fe8d0254cf93eefc5cf357.tar.gz
* diagnostic.c (internal_error): Say "confused" after 1 error, not
two. Print file and line with "confused" message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39543 138bc75d-0d04-0410-961f-82ee72b054a4
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 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);
}