aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-12-25 12:47:01 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1993-12-25 12:47:01 -0500
commit3e5f801865074a19f2bef15ae2593c9018878d22 (patch)
tree7acffb2e7330c8a1b6285a8be826a03f891f2bdd /gcc/print-tree.c
parent0c847d7db5dcd64ba8dc85ef425dc98f40d7df5a (diff)
downloadgcc-3e5f801865074a19f2bef15ae2593c9018878d22.zip
gcc-3e5f801865074a19f2bef15ae2593c9018878d22.tar.gz
gcc-3e5f801865074a19f2bef15ae2593c9018878d22.tar.bz2
(print_node, print_node_brief): Say something when
TREE_CONSTANT_OVERFLOW is set. From-SVN: r6317
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r--gcc/print-tree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index 5b41faa..a638a49 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -104,6 +104,9 @@ print_node_brief (file, prefix, node, indent)
/* We might as well always print the value of an integer. */
if (TREE_CODE (node) == INTEGER_CST)
{
+ if (TREE_CONSTANT_OVERFLOW (node))
+ fprintf (file, " overflow");
+
if (TREE_INT_CST_HIGH (node) == 0)
fprintf (file, " %1u", TREE_INT_CST_LOW (node));
else if (TREE_INT_CST_HIGH (node) == -1
@@ -548,6 +551,9 @@ print_node (file, prefix, node, indent)
switch (TREE_CODE (node))
{
case INTEGER_CST:
+ if (TREE_CONSTANT_OVERFLOW (node))
+ fprintf (file, " overflow");
+
if (TREE_INT_CST_HIGH (node) == 0)
fprintf (file, " %1u", TREE_INT_CST_LOW (node));
else if (TREE_INT_CST_HIGH (node) == -1