This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/30318] VRP does not create ANTI_RANGEs on overflow


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]