https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80426
--- Comment #12 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Fri Apr 21 08:37:13 2017 New Revision: 247050 URL: https://gcc.gnu.org/viewcvs?rev=247050&root=gcc&view=rev Log: Backport from mainline 2017-04-19 Eric Botcazou <ebotca...@adacore.com> Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-6-branch/gcc/testsuite/gcc.c-torture/execute/20170419-1.c - copied unchanged from r247047, trunk/gcc/testsuite/gcc.c-torture/execute/20170419-1.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/tree-vrp.c