]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR c/61271
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Aug 2014 09:35:10 +0000 (09:35 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Aug 2014 09:35:10 +0000 (09:35 +0000)
* 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

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.