From 44b9837c99f53c58a58bd90ddc0c3bbae4ce4f2a Mon Sep 17 00:00:00 2001 From: Richard Guenther <rguenther@suse.de> Date: Thu, 5 Jul 2012 15:15:45 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-pretty-print.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8ae41567a03..47de4eeaca2f 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 44d3c10b7d81..f418d3999462 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)); -- GitLab