aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-08-26 09:35:10 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-08-26 09:35:10 +0000
commit40de81283e90690a8275842618bbb62b4219c52e (patch)
tree0d0c333bb426274162af30b756a0443fa2b50b87 /gcc/expr.c
parentccc089dca7d148074f7d7d669757d8fc5144b129 (diff)
downloadgcc-40de81283e90690a8275842618bbb62b4219c52e.zip
gcc-40de81283e90690a8275842618bbb62b4219c52e.tar.gz
gcc-40de81283e90690a8275842618bbb62b4219c52e.tar.bz2
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
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index ac37504..8b7073e 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.