aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2006-11-11 16:51:17 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2006-11-11 16:51:17 +0000
commit89fa98d6b981d00d1f753f010e0747c8024a0441 (patch)
treee28b9e7ff1f4eb4f124e3fc0bbcd061cb14d9a85 /gcc/tree-pretty-print.c
parent992c31e62304ed5d34247dbdef2db276d08fac05 (diff)
downloadgcc-89fa98d6b981d00d1f753f010e0747c8024a0441.zip
gcc-89fa98d6b981d00d1f753f010e0747c8024a0441.tar.gz
gcc-89fa98d6b981d00d1f753f010e0747c8024a0441.tar.bz2
tree-pretty-print.c (dump_generic_node): Print sign of Inf.
* tree-pretty-print.c (dump_generic_node): Print sign of Inf. From-SVN: r118695
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index c2a47f0..77d1fb9 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