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/80426] [7 Regression] wrong manipulation of range based on INT_MIN


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80426

--- Comment #8 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Wed Apr 19 19:27:09 2017
New Revision: 247007

URL: https://gcc.gnu.org/viewcvs?rev=247007&root=gcc&view=rev
Log:
        PR tree-optimization/80426
        * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
        operation on symbolic operands, also compute the overflow for the
        invariant part when the operation degenerates into a negation.

        PR tree-optimization/80426
        * gcc.c-torture/execute/20170419-1.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/20170429-1.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]