From 40de81283e90690a8275842618bbb62b4219c52e Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Tue, 26 Aug 2014 09:35:10 +0000 Subject: [PATCH] re PR c/61271 (10 * possible coding error with logical not (!)) PR c/61271 * expr.c (is_aligning_offset): Remove logical not. From-SVN: r214496 --- gcc/ChangeLog | 5 +++++ gcc/expr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3da91ffe71d..4d7a3417944 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-26 Marek Polacek + + PR c/61271 + * expr.c (is_aligning_offset): Remove logical not. + 2014-08-26 Marek Polacek PR c/61271 diff --git a/gcc/expr.c b/gcc/expr.c index ac375041d4d..8b7073e3089 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -10723,7 +10723,7 @@ is_aligning_offset (const_tree offset, const_tree exp) || !tree_fits_uhwi_p (TREE_OPERAND (offset, 1)) || compare_tree_int (TREE_OPERAND (offset, 1), BIGGEST_ALIGNMENT / BITS_PER_UNIT) <= 0 - || !exact_log2 (tree_to_uhwi (TREE_OPERAND (offset, 1)) + 1) < 0) + || exact_log2 (tree_to_uhwi (TREE_OPERAND (offset, 1)) + 1) < 0) return 0; /* Look at the first operand of BIT_AND_EXPR and strip any conversion. -- 2.30.2