diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-06 15:59:47 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-06 15:59:47 +0000 |
commit | 85a76dc8e8f28a4d60cdd4890567a80948ee45ae (patch) | |
tree | ce126d26b57ce79e270a4051fb670e5469b1ca60 | |
parent | d44c5496a7767403f4e33b8bbde92da8ea6185e8 (diff) | |
download | gcc-85a76dc8e8f28a4d60cdd4890567a80948ee45ae.tar.gz |
* print-tree.c (print_node_brief, print_node): Print sign of Inf.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117506 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/print-tree.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a34d77e47bf..7625c494df0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2006-10-06 J"orn Rennecke <joern.rennecke@st.com> + * print-tree.c (print_node_brief, print_node): Print sign of Inf. + +2006-10-06 J"orn Rennecke <joern.rennecke@st.com> + * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define. 2006-10-05 Uros Bizjak <uros@kss-loka.si> 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 |