]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-pretty-print.c (dump_generic_node): Allow to dump both (D) and (ab) for SSA_NAMEs.
authorRichard Biener <rguenther@suse.de>
Fri, 11 Oct 2013 11:28:49 +0000 (11:28 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 11 Oct 2013 11:28:49 +0000 (11:28 +0000)
2013-10-11  Richard Biener  <rguenther@suse.de>

* tree-pretty-print.c (dump_generic_node): Allow to dump
both (D) and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with
(OVF) if TREE_OVERFLOW is set.

From-SVN: r203426

gcc/ChangeLog
gcc/tree-pretty-print.c

index eb5a27b16ea61bb62ca5bd20017c7325c78f12a4..970aa1ff43163295a72bbf2e613627a1d7d1689f 100644 (file)
@@ -1,3 +1,9 @@
+2013-10-11  Richard Biener  <rguenther@suse.de>
+
+       * tree-pretty-print.c (dump_generic_node): Allow to dump
+       both (D) and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with
+       (OVF) if TREE_OVERFLOW is set.
+
 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
 
        * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
index df0f8b52ec6acf495c325208ec22b5b953454a59..b10b7e254a31d43ebbb5cec4257172276747394f 100644 (file)
@@ -1233,6 +1233,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
       else
        pp_double_int (buffer, tree_to_double_int (node),
                       TYPE_UNSIGNED (TREE_TYPE (node)));
+      if (TREE_OVERFLOW (node))
+       pp_string (buffer, "(OVF)");
       break;
 
     case REAL_CST:
@@ -2220,10 +2222,10 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
                           spc, flags, false);
       pp_underscore (buffer);
       pp_decimal_int (buffer, SSA_NAME_VERSION (node));
+      if (SSA_NAME_IS_DEFAULT_DEF (node))
+       pp_string (buffer, "(D)");
       if (SSA_NAME_OCCURS_IN_ABNORMAL_PHI (node))
        pp_string (buffer, "(ab)");
-      else if (SSA_NAME_IS_DEFAULT_DEF (node))
-       pp_string (buffer, "(D)");
       break;
 
     case WITH_SIZE_EXPR: