diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-01-23 09:51:10 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-01-23 09:51:10 +0100 |
commit | b55f40c12246309f204e2eccbe5d659641e841c9 (patch) | |
tree | dddeb957b58b9b0f7e1d3254194afaf71ebeb8f6 /gcc/diagnostic.def | |
parent | 652960d1809b326ad20adcaac1b5a72796413a2e (diff) | |
download | gcc-b55f40c12246309f204e2eccbe5d659641e841c9.tar.gz |
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.def')
-rw-r--r-- | gcc/diagnostic.def | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/diagnostic.def b/gcc/diagnostic.def index 44aea4cd551..b90ca6934ee 100644 --- a/gcc/diagnostic.def +++ b/gcc/diagnostic.def @@ -45,3 +45,6 @@ DEFINE_DIAGNOSTIC_KIND (DK_PERMERROR, "permerror: ", NULL) /* This one is just for counting DK_WARNING promoted to DK_ERROR due to -Werror and -Werror=warning. */ DEFINE_DIAGNOSTIC_KIND (DK_WERROR, "error: ", NULL) +/* This is like DK_ICE, but backtrace is not printed. Used in the driver + when reporting fatal signal in the compiler. */ +DEFINE_DIAGNOSTIC_KIND (DK_ICE_NOBT, "internal compiler error: ", "error") |