diff options
author | Olivier Hainque <hainque@act-europe.fr> | 2004-02-19 08:52:51 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2004-02-19 07:52:51 +0000 |
commit | c0cfc6913eda8fe934043848ee7c9462464f75f1 (patch) | |
tree | 7de189d67e475db2ec90a8e30149a8018186c9d8 /gcc/expr.c | |
parent | 328163dc0a1c6553bd8c40f91b21efb9b4351a80 (diff) | |
download | gcc-c0cfc6913eda8fe934043848ee7c9462464f75f1.zip gcc-c0cfc6913eda8fe934043848ee7c9462464f75f1.tar.gz gcc-c0cfc6913eda8fe934043848ee7c9462464f75f1.tar.bz2 |
expr.c (is_aligning_offset): Check if we are aligning the expressions's address over BIGGEST_ALIGNMENT in...
* expr.c (is_aligning_offset): Check if we are aligning the
expressions's address over BIGGEST_ALIGNMENT in bytes, not
in bits.
From-SVN: r78076
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9088,7 +9088,8 @@ is_aligning_offset (tree offset, tree exp) power of 2 and which is larger than BIGGEST_ALIGNMENT. */ if (TREE_CODE (offset) != BIT_AND_EXPR || !host_integerp (TREE_OPERAND (offset, 1), 1) - || compare_tree_int (TREE_OPERAND (offset, 1), BIGGEST_ALIGNMENT) <= 0 + || 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) return 0; |