]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-pass.h (TDF_EH): Define.
authorDiego Novillo <dnovillo@google.com>
Wed, 22 Jul 2009 19:44:46 +0000 (15:44 -0400)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Wed, 22 Jul 2009 19:44:46 +0000 (15:44 -0400)
* 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.

From-SVN: r149958

gcc/ChangeLog
gcc/doc/invoke.texi
gcc/gimple-pretty-print.c
gcc/tree-dump.c
gcc/tree-pass.h

index 522968000e3193388809793fca07b8066da03338..7f3f7561603de1908fb7ed212c82a30493668e76 100644 (file)
@@ -1,3 +1,11 @@
+2009-07-22  Diego Novillo  <dnovillo@google.com>
+
+       * 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.
+
 2009-07-22  Doug Kwan  <dougkwan@google.com>
 
        * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
index ce94a32ae996ef809391f26c13fcbe3d0093cfe8..cbef029120c25bade052fd870ba7710b68e032cb 100644 (file)
@@ -5149,6 +5149,8 @@ Enable showing line numbers for statements.
 Enable showing the unique ID (@code{DECL_UID}) for each variable.
 @item verbose
 Enable showing the tree dump for each statement.
+@item eh
+Enable showing the EH region number holding each statement.
 @item all
 Turn on all options, except @option{raw}, @option{slim}, @option{verbose}
 and @option{lineno}.
index c6f0c658361bbf0e44547a450f84fadb69934b36..1deb9c81a0a08e6f0865fa66ae5bf1d38d7f4d11 100644 (file)
@@ -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);
index 1cb650442b77da2ffd6452771cf8a9d0b66a87db..61ccc6ce792f6612290e8b7e37a02ecdfefc1875 100644 (file)
@@ -816,6 +816,7 @@ static const struct dump_option_value_info dump_options[] =
   {"stmtaddr", TDF_STMTADDR},
   {"memsyms", TDF_MEMSYMS},
   {"verbose", TDF_VERBOSE},
+  {"eh", TDF_EH},
   {"all", ~(TDF_RAW | TDF_SLIM | TDF_LINENO | TDF_TREE | TDF_RTL | TDF_IPA 
            | TDF_STMTADDR | TDF_GRAPH | TDF_DIAGNOSTIC | TDF_VERBOSE
            | TDF_RHS_ONLY)},
index a68cb16350b2d5ff48eedf984b3368aa2775e662..bc1ebda9a50190c45b662a06f5260adb4979704d 100644 (file)
@@ -76,6 +76,8 @@ enum tree_dump_index
 #define TDF_RHS_ONLY   (1 << 17)       /* a flag to only print the RHS of
                                           a gimple stmt.  */
 #define TDF_ASMNAME    (1 << 18)       /* display asm names of decls  */
+#define TDF_EH         (1 << 19)       /* display EH region number
+                                          holding this gimple statement.  */
 
 
 /* In tree-dump.c */