aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
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 /gcc/tree-pretty-print.c
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
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c2
1 files changed, 1 insertions, 1 deletions
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));