diff options
author | Jie Zhang <jie@codesourcery.com> | 2010-04-26 10:59:34 +0000 |
---|---|---|
committer | Jie Zhang <jiez@gcc.gnu.org> | 2010-04-26 10:59:34 +0000 |
commit | 330af32c066a204be770dd623f9fe605262d58ac (patch) | |
tree | ce0e499820982aa0f8a5cf58903650b5becea8b2 /gcc/function.c | |
parent | ae2b08888a183d94f9a4f898600b347e5e66b29d (diff) | |
download | gcc-330af32c066a204be770dd623f9fe605262d58ac.zip gcc-330af32c066a204be770dd623f9fe605262d58ac.tar.gz gcc-330af32c066a204be770dd623f9fe605262d58ac.tar.bz2 |
re PR tree-optimization/43833 (false warning: array subscript is above array bounds with -O3)
PR tree-optimization/43833
* tree-vrp.c (range_int_cst_p): New.
(range_int_cst_singleton_p): New.
(extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
when both operands are constants. Use range_int_cst_p in
BIT_IOR_EXPR case.
testsuite/
PR tree-optimization/43833
gcc.dg/Warray-bounds-8.c: New test case.
From-SVN: r158727
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions