re PR c/61271 (10 * possible coding error with logical not (!))
authorMarek Polacek <polacek@redhat.com>
Tue, 26 Aug 2014 09:35:10 +0000 (09:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 26 Aug 2014 09:35:10 +0000 (09:35 +0000)
PR c/61271
* expr.c (is_aligning_offset): Remove logical not.

From-SVN: r214496

gcc/ChangeLog
gcc/expr.c

index 3da91ffe71d232d305a89f8ae9d27762b19622eb..4d7a34179444b48ed33d85c11f084627941fc6f3 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-26  Marek Polacek  <polacek@redhat.com>
+
+       PR c/61271
+       * expr.c (is_aligning_offset): Remove logical not.
+
 2014-08-26  Marek Polacek  <polacek@redhat.com>
 
        PR c/61271
index ac375041d4d59e8fb3c09ed5f50ffea856aee03f..8b7073e30890347067bbb685303588e2a7198fa6 100644 (file)
@@ -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.