summaryrefslogtreecommitdiff
path: root/gcc/diagnostic-core.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2015-01-23 09:51:10 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2015-01-23 09:51:10 +0100
commitb55f40c12246309f204e2eccbe5d659641e841c9 (patch)
treedddeb957b58b9b0f7e1d3254194afaf71ebeb8f6 /gcc/diagnostic-core.h
parent652960d1809b326ad20adcaac1b5a72796413a2e (diff)
diagnostic-core.h (internal_error_no_backtrace): New prototype.
* diagnostic-core.h (internal_error_no_backtrace): New prototype. * diagnostic.def (DK_ICE_NOBT): New kind. * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT like DK_ICE, but never print backtrace. (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE. (internal_error_no_backtrace): New function. * gcc.c (execute): Use internal_error_no_backtrace instead of internal_error. fortran/ * gfc-diagnostic.def (DK_ICE_NOBT): New kind. From-SVN: r220030
Diffstat (limited to 'gcc/diagnostic-core.h')
-rw-r--r--gcc/diagnostic-core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/diagnostic-core.h b/gcc/diagnostic-core.h
index 01e866b8c9b..d97111dccac 100644
--- a/gcc/diagnostic-core.h
+++ b/gcc/diagnostic-core.h
@@ -56,6 +56,8 @@ extern const char *trim_filename (const char *);
#endif
extern void internal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2)
ATTRIBUTE_NORETURN;
+extern void internal_error_no_backtrace (const char *, ...)
+ ATTRIBUTE_GCC_DIAG(1,2) ATTRIBUTE_NORETURN;
/* Pass one of the OPT_W* from options.h as the first parameter. */
extern bool warning (int, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
extern bool warning_n (location_t, int, int, const char *, const char *, ...)