diff options
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index a23c83658ba..4e5d3a814a6 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -1314,6 +1314,9 @@ internal_error VPARAMS ((const char *msgid, ...)) msgid = va_arg (ap, const char *); #endif + if (diagnostic_lock) + error_recursion (); + if (errorcount > 0 || sorrycount > 0) { fnotice (stderr, "%s:%d: confused by earlier errors, bailing out\n", |