summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-11 16:51:17 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-11 16:51:17 +0000
commit3cfd65257d3921ace74869698e8f856f5af9ff56 (patch)
treee28b9e7ff1f4eb4f124e3fc0bbcd061cb14d9a85 /gcc
parent3b0b2309f34d42fb6983d1ce89a0d2b541bda68c (diff)
downloadgcc-3cfd65257d3921ace74869698e8f856f5af9ff56.tar.gz
* tree-pretty-print.c (dump_generic_node): Print sign of Inf.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118695 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-pretty-print.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 37922a1ff5d..203116d82e9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2006-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * tree-pretty-print.c (dump_generic_node): Print sign of Inf.
+
2006-11-11 Jan Hubicka <jh@suse.cz>
* predict.c (predict_loops): Kill RTL variant.
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index c2a47f0c712..77d1fb91b71 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -752,7 +752,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
#if !defined(REAL_IS_NOT_DOUBLE) || defined(REAL_ARITHMETIC)
d = TREE_REAL_CST (node);
if (REAL_VALUE_ISINF (d))
- pp_string (buffer, " Inf");
+ pp_string (buffer, REAL_VALUE_NEGATIVE (d) ? " -Inf" : " Inf");
else if (REAL_VALUE_ISNAN (d))
pp_string (buffer, " Nan");
else