diff options
| author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-01 10:14:22 +0000 |
|---|---|---|
| committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-01 10:14:22 +0000 |
| commit | a41ed05a442de10d4cd793791fecb37cc3203ad8 (patch) | |
| tree | f40aafe00148f66def6715a781e934f318c5c99d | |
| parent | 1b8aa4dc96b5f982aa70c5eebbcc231cd0c7ad65 (diff) | |
| download | ppe42-gcc-a41ed05a442de10d4cd793791fecb37cc3203ad8.tar.gz ppe42-gcc-a41ed05a442de10d4cd793791fecb37cc3203ad8.zip | |
PR c/61271
* expr.c (is_aligning_offset): Remove logical not.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@214784 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 8 | ||||
| -rw-r--r-- | gcc/expr.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ee96e30af0..e2dfbf2afc8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,14 @@ 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 2014-08-19 Marek Polacek <polacek@redhat.com> PR c/61271 diff --git a/gcc/expr.c b/gcc/expr.c index 59e5250e7bb..bf14114d126 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -10667,7 +10667,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. |

