From: mpolacek Date: Tue, 26 Aug 2014 09:35:10 +0000 (+0000) Subject: PR c/61271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac8c312d8d4c1abbcbd78efe5c88585a24e4c865;p=thirdparty%2Fgcc.git PR c/61271 * expr.c (is_aligning_offset): Remove logical not. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214496 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3da91ffe71d2..4d7a34179444 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 ac375041d4d5..8b7073e30890 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.