diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2008-05-23 16:38:27 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-05-23 16:38:27 +0000 |
commit | a2acd8bf5587e847fad9dfe92113d9448f8552b6 (patch) | |
tree | fd724c928750b014a011163b0df88051e65e1ab2 /gcc/expr.c | |
parent | 4c8125f4de1e413c735193f8f3a7181974d6d3f6 (diff) | |
download | gcc-a2acd8bf5587e847fad9dfe92113d9448f8552b6.zip gcc-a2acd8bf5587e847fad9dfe92113d9448f8552b6.tar.gz gcc-a2acd8bf5587e847fad9dfe92113d9448f8552b6.tar.bz2 |
expr.c (highest_pow2_factor): New case.
* expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
From-SVN: r135820
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -6599,6 +6599,13 @@ highest_pow2_factor (const_tree exp) } break; + case BIT_AND_EXPR: + /* The highest power of two of a bit-and expression is the maximum of + that of its operands. We typically get here for a complex LHS and + a constant negative power of two on the RHS to force an explicit + alignment, so don't bother looking at the LHS. */ + return highest_pow2_factor (TREE_OPERAND (exp, 1)); + CASE_CONVERT: case SAVE_EXPR: return highest_pow2_factor (TREE_OPERAND (exp, 0)); |