diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2006-11-11 16:51:17 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2006-11-11 16:51:17 +0000 |
commit | 89fa98d6b981d00d1f753f010e0747c8024a0441 (patch) | |
tree | e28b9e7ff1f4eb4f124e3fc0bbcd061cb14d9a85 | |
parent | 992c31e62304ed5d34247dbdef2db276d08fac05 (diff) | |
download | gcc-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
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree-pretty-print.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 37922a1..203116d 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 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 |