diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2020-09-10 13:26:31 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2020-09-10 18:00:57 +0200 |
commit | 66a204a6567385638f633732bb61e2ac26b2eb02 (patch) | |
tree | 4d769007caa1f48fd239e44838a4ce011d3529c2 /gcc/ada | |
parent | d9b054d56b052fb01c9a667c95f80c783f0cf0c7 (diff) | |
download | gcc-66a204a6567385638f633732bb61e2ac26b2eb02.zip gcc-66a204a6567385638f633732bb61e2ac26b2eb02.tar.gz gcc-66a204a6567385638f633732bb61e2ac26b2eb02.tar.bz2 |
Add emergency dump after an ICE
This is only for internal debugging purposes.
gcc/ada/ChangeLog:
* gcc-interface/misc.c: Include tree-pass.h.
(internal_error_function): Call emergency_dump_function.
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/gcc-interface/misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c index 3999f9c..183daf3 100644 --- a/gcc/ada/gcc-interface/misc.c +++ b/gcc/ada/gcc-interface/misc.c @@ -35,6 +35,7 @@ #include "stor-layout.h" #include "print-tree.h" #include "toplev.h" +#include "tree-pass.h" #include "langhooks.h" #include "langhooks-def.h" #include "plugin.h" @@ -307,6 +308,9 @@ internal_error_function (diagnostic_context *context, const char *msgid, /* Warn if plugins present. */ warn_if_plugins (); + /* Dump the representation of the function. */ + emergency_dump_function (); + /* Reset the pretty-printer. */ pp_clear_output_area (context->printer); |