[Bug tree-optimization/80426] [6 Regression] wrong manipulation of range based on INT_MIN

2017-04-21 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80426

Eric Botcazou  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #13 from Eric Botcazou  ---
.

[Bug tree-optimization/80426] [6 Regression] wrong manipulation of range based on INT_MIN

2017-04-21 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80426

--- Comment #12 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Apr 21 08:37:13 2017
New Revision: 247050

URL: https://gcc.gnu.org/viewcvs?rev=247050=gcc=rev
Log:
Backport from mainline
2017-04-19  Eric Botcazou  
Jakub Jelinek  

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

[Bug tree-optimization/80426] [6 Regression] wrong manipulation of range based on INT_MIN

2017-04-21 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80426

--- Comment #11 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Apr 21 08:08:03 2017
New Revision: 247047

URL: https://gcc.gnu.org/viewcvs?rev=247047=gcc=rev
Log:
PR tree-optimization/80426
* gcc.c-torture/execute/20170429-1.c: Rename into...
* gcc.c-torture/execute/20170419-1.c: ...this.

Added:
branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/execute/20170419-1.c
  - copied unchanged from r247046,
branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/execute/20170429-1.c
Removed:
branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/execute/20170429-1.c
Modified:
branches/gcc-7-branch/gcc/testsuite/ChangeLog

[Bug tree-optimization/80426] [6 Regression] wrong manipulation of range based on INT_MIN

2017-04-21 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80426

--- Comment #10 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Apr 21 08:03:54 2017
New Revision: 247046

URL: https://gcc.gnu.org/viewcvs?rev=247046=gcc=rev
Log:
PR tree-optimization/80426
* gcc.c-torture/execute/20170429-1.c: Rename into...
* gcc.c-torture/execute/20170419-1.c: ...this.

Added:
trunk/gcc/testsuite/gcc.c-torture/execute/20170419-1.c
  - copied unchanged from r247045,
trunk/gcc/testsuite/gcc.c-torture/execute/20170429-1.c
Removed:
trunk/gcc/testsuite/gcc.c-torture/execute/20170429-1.c
Modified:
trunk/gcc/testsuite/ChangeLog

[Bug tree-optimization/80426] [6 Regression] wrong manipulation of range based on INT_MIN

2017-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80426

Richard Biener  changed:

   What|Removed |Added

   Priority|P1  |P2
   Target Milestone|7.0 |6.4

[Bug tree-optimization/80426] [6 Regression] wrong manipulation of range based on INT_MIN

2017-04-19 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80426

Jeffrey A. Law  changed:

   What|Removed |Added

Summary|[7 Regression] wrong|[6 Regression] wrong
   |manipulation of range based |manipulation of range based
   |on INT_MIN  |on INT_MIN

--- Comment #9 from Jeffrey A. Law  ---
Fixed on the trunk.  Left open for backporting to the gcc-6 branch.