2009-03-09 Richard Guenther <rguenther@suse.de>
commitdff5d233fd6c7f81932ffef89d6efe5da167ce53
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Mar 2009 09:43:05 +0000 (9 09:43 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Mar 2009 09:43:05 +0000 (9 09:43 +0000)
tree083d0734a4ab3a2a624a11cd3a6541e31287af81
parent4fe10e36b785a15a72fad9619cbce655446a6349
2009-03-09  Richard Guenther  <rguenther@suse.de>

* tree.h (int_const_binop_1): Declare.
* fold-const.c (add_double_with_sign): Fix unsigned overflow
detection.
(int_const_binop_1): Export.  Fix unsigned overflow detection.
* stor-layout.c (layout_type): Drop TREE_OVERFLOW on TYPE_SIZE
if appropriate.
* tree-vrp.c (integral_range_p): New helper.
(simplify_unary_for_nonwrapping): Likewise.
(simplify_binary_for_nonwrapping): Likewise.
(simplify_stmt_using_ranges): Call them.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/no-undefined-overflow@144722 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog.overflow
gcc/fold-const.c
gcc/stor-layout.c
gcc/tree-vrp.c
gcc/tree.h