summaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
diff options
context:
space:
mode:
authorJ"orn Rennecke <joern.rennecke@st.com>2006-10-06 15:59:47 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2006-10-06 16:59:47 +0100
commita192f4ae530552597d1153d60f498c82408cec73 (patch)
treece126d26b57ce79e270a4051fb670e5469b1ca60 /gcc/print-tree.c
parent0a0875187065f286d13d47ce4e6fe73cd4383f34 (diff)
downloadgcc-a192f4ae530552597d1153d60f498c82408cec73.tar.gz
* print-tree.c (print_node_brief, print_node): Print sign of Inf.
From-SVN: r117506
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r--gcc/print-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index b207fe30a54..57b07ace4bb 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -138,7 +138,7 @@ print_node_brief (FILE *file, const char *prefix, tree node, int indent)
d = TREE_REAL_CST (node);
if (REAL_VALUE_ISINF (d))
- fprintf (file, " Inf");
+ fprintf (file, REAL_VALUE_NEGATIVE (d) ? " -Inf" : " Inf");
else if (REAL_VALUE_ISNAN (d))
fprintf (file, " Nan");
else
@@ -709,7 +709,7 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
d = TREE_REAL_CST (node);
if (REAL_VALUE_ISINF (d))
- fprintf (file, " Inf");
+ fprintf (file, REAL_VALUE_NEGATIVE (d) ? " -Inf" : " Inf");
else if (REAL_VALUE_ISNAN (d))
fprintf (file, " Nan");
else