This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30318] VRP does not create ANTI_RANGEs on overflow
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Jun 2012 12:00:27 +0000
- Subject: [Bug tree-optimization/30318] VRP does not create ANTI_RANGEs on overflow
- Auto-submitted: auto-generated
- References: <bug-30318-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30318
--- Comment #17 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-20 12:00:27 UTC ---
Author: rguenth
Date: Wed Jun 20 12:00:20 2012
New Revision: 188827
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188827
Log:
2012-06-20 Richard Guenther <rguenther@suse.de>
PR tree-optimization/30318
* tree-vrp.c (range_int_cst_p): Do not reject overflowed
constants here.
(range_int_cst_singleton_p): But explicitely here.
(zero_nonzero_bits_from_vr): And here.
(extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
to cover all cases we can perform arbitrary precision
arithmetic with double-ints.
(intersect_ranges): Handle adjacent anti-ranges.
* gcc.dg/tree-ssa/vrp69.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/vrp69.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vrp.c