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 /gcc/print-tree.c | |
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
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r-- | gcc/print-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |