[PATCH INSTALLED]: Print sign of Inf in tree dumps
Kaveh R. GHAZI
ghazi@caip.rutgers.edu
Sat Nov 11 17:03:00 GMT 2006
Analogous to this patch:
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00306.html
Tested on sparc-sun-solaris2.10, no regressions.
Instaled as obvious on mainline.
--Kaveh
2006-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* tree-pretty-print.c (dump_generic_node): Print sign of Inf.
diff -rup orig/egcc-SVN20061021/gcc/tree-pretty-print.c egcc-SVN20061021/gcc/tree-pretty-print.c
--- orig/egcc-SVN20061021/gcc/tree-pretty-print.c 2006-05-10 20:00:34.000000000 -0400
+++ egcc-SVN20061021/gcc/tree-pretty-print.c 2006-10-22 17:06:10.640556109 -0400
@@ -751,7 +751,7 @@ dump_generic_node (pretty_printer *buffe
#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
More information about the Gcc-patches
mailing list