aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
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);
}