OSDN Git Service

PR tree-optimization/43833
authorjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Apr 2010 10:59:34 +0000 (10:59 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 04:49:32 +0000 (13:49 +0900)
commit6bfa5ae1c28633fc9b4d9adbe5f761e84f627a7b
treefea58f5baa8896ac5c445a44cb8766f6aad5ed36
parent75bbafb9a28366c2c863beae56d2f8b8a31f838c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158727 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog