]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/61271 (10 * possible coding error with logical not (!))
authorMarek Polacek <polacek@redhat.com>
Mon, 1 Sep 2014 10:16:43 +0000 (10:16 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 1 Sep 2014 10:16:43 +0000 (10:16 +0000)
PR c/61271
* expr.c (is_aligning_offset): Remove logical not.

From-SVN: r214785

gcc/ChangeLog
gcc/expr.c

index 9118236a7664ca1a4c9165d3e7d7245b7901027d..0f872fa1ade78bbd1102b295d2d1e47645363b1e 100644 (file)
@@ -1,3 +1,11 @@
+2014-09-01  Marek Polacek  <polacek@redhat.com>
+
+       Backport from mainline
+       2014-08-21  Marek Polacek  <polacek@redhat.com>
+
+       PR c/61271
+       * expr.c (is_aligning_offset): Remove logical not.
+
 2014-09-01  Marek Polacek  <polacek@redhat.com>
 
        Backport from mainline
index 01697e99ac8731cbe3ae287680e595c99df26d23..f83a7d0d448ee7683d1a3a6ae65061fcad6ecda0 100644 (file)
@@ -10603,7 +10603,7 @@ is_aligning_offset (const_tree offset, const_tree exp)
       || !host_integerp (TREE_OPERAND (offset, 1), 1)
       || compare_tree_int (TREE_OPERAND (offset, 1),
                           BIGGEST_ALIGNMENT / BITS_PER_UNIT) <= 0
-      || !exact_log2 (tree_low_cst (TREE_OPERAND (offset, 1), 1) + 1) < 0)
+      || exact_log2 (tree_low_cst (TREE_OPERAND (offset, 1), 1) + 1) < 0)
     return 0;
 
   /* Look at the first operand of BIT_AND_EXPR and strip any conversion.