aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-07-05 15:15:45 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-07-05 15:15:45 +0000
commit44b9837c99f53c58a58bd90ddc0c3bbae4ce4f2a (patch)
tree7b0077a3981ae1e17752ef9fe8a4816dad7b158e
parentdb2c8e60f28f4fd3e0967592fb1ff1bf1b8f01aa (diff)
downloadgcc-44b9837c99f53c58a58bd90ddc0c3bbae4ce4f2a.zip
gcc-44b9837c99f53c58a58bd90ddc0c3bbae4ce4f2a.tar.gz
gcc-44b9837c99f53c58a58bd90ddc0c3bbae4ce4f2a.tar.bz2
tree-pretty-print.c (dump_generic_node): Properly test the result of exact_log2.
2012-07-05 Richard Guenther <rguenther@suse.de> * tree-pretty-print.c (dump_generic_node): Properly test the result of exact_log2. From-SVN: r189291
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-pretty-print.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d8ae4156..47de4ee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-05 Richard Guenther <rguenther@suse.de>
+
+ * tree-pretty-print.c (dump_generic_node): Properly test
+ the result of exact_log2.
+
2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390-protos.h (s390_expand_movmem)
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 44d3c10..f418d39 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -743,7 +743,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
? "unsigned long long"
: "signed long long"));
else if (TYPE_PRECISION (node) >= CHAR_TYPE_SIZE
- && exact_log2 (TYPE_PRECISION (node)))
+ && exact_log2 (TYPE_PRECISION (node)) != -1)
{
pp_string (buffer, (TYPE_UNSIGNED (node) ? "uint" : "int"));
pp_decimal_int (buffer, TYPE_PRECISION (node));