summaryrefslogtreecommitdiff
path: root/gcc/gimple-pretty-print.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-22 19:44:46 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-22 19:44:46 +0000
commitd60ec13d843da3d28b399506b230a144847cd44f (patch)
treeb4c333291033fc15288ea4403ffdc6306efe3cbc /gcc/gimple-pretty-print.c
parentd01634019b35e129453f15c3e7b1eacd0296455a (diff)
downloadgcc-d60ec13d843da3d28b399506b230a144847cd44f.tar.gz
* tree-pass.h (TDF_EH): Define.
* gimple-pretty-print.c (dump_gimple_stmt): If FLAGS contains TDF_EH, print the EH region number holding GS. * tree-dump.c (dump_options): Add "eh". * doc/invoke.texi: Document it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149958 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-pretty-print.c')
-rw-r--r--gcc/gimple-pretty-print.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c
index c6f0c658361..1deb9c81a0a 100644
--- a/gcc/gimple-pretty-print.c
+++ b/gcc/gimple-pretty-print.c
@@ -1384,6 +1384,13 @@ dump_gimple_stmt (pretty_printer *buffer, gimple gs, int spc, int flags)
pp_string (buffer, "] ");
}
+ if (flags & TDF_EH)
+ {
+ int eh_region = lookup_stmt_eh_region_fn (cfun, gs);
+ if (eh_region >= 0)
+ pp_printf (buffer, "[EH #%d] ", eh_region);
+ }
+
if ((flags & (TDF_VOPS|TDF_MEMSYMS))
&& gimple_has_mem_ops (gs))
dump_gimple_mem_ops (buffer, gs, spc, flags);