[Bug tree-optimization/79631] [CHKP] ICE tree check: expected integer_cst, have negate_expr in decompose, at tree.h:5255

2017-03-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79631

--- Comment #4 from Martin Liška  ---
Author: marxin
Date: Thu Mar  9 10:10:02 2017
New Revision: 245998

URL: https://gcc.gnu.org/viewcvs?rev=245998&root=gcc&view=rev
Log:
Fix ICE in tree-chkp-opt.c (PR tree-optimization/79631).

2017-03-09  Martin Liska  

PR tree-optimization/79631
* tree-chkp-opt.c (chkp_is_constant_addr): Call
tree_int_cst_sign_bit just for INTEGER constants.
2017-03-09  Martin Liska  

PR tree-optimization/79631
* gcc.target/i386/mpx/pr79631.c: New test.

Added:
trunk/gcc/testsuite/gcc.target/i386/mpx/pr79631.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-chkp-opt.c

[Bug tree-optimization/79631] [CHKP] ICE tree check: expected integer_cst, have negate_expr in decompose, at tree.h:5255

2017-03-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79631

Martin Liška  changed:

   What|Removed |Added

  Known to work||7.0
  Known to fail||5.4.0, 6.3.0

--- Comment #5 from Martin Liška  ---
Fixed on trunk so far.

[Bug tree-optimization/79631] [CHKP] ICE tree check: expected integer_cst, have negate_expr in decompose, at tree.h:5255

2017-03-22 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79631

--- Comment #6 from Martin Liška  ---
Author: marxin
Date: Wed Mar 22 10:44:58 2017
New Revision: 246355

URL: https://gcc.gnu.org/viewcvs?rev=246355&root=gcc&view=rev
Log:
Backport r245998

2017-03-22  Martin Liska  

Backport from mainline
2017-03-09  Martin Liska  

PR tree-optimization/79631
* tree-chkp-opt.c (chkp_is_constant_addr): Call
tree_int_cst_sign_bit just for INTEGER constants.
2017-03-22  Martin Liska  

Backport from mainline
2017-03-09  Martin Liska  

PR tree-optimization/79631
* gcc.target/i386/mpx/pr79631.c: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/mpx/pr79631.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/tree-chkp-opt.c

[Bug tree-optimization/79631] [CHKP] ICE tree check: expected integer_cst, have negate_expr in decompose, at tree.h:5255

2017-03-22 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79631

--- Comment #7 from Martin Liška  ---
Author: marxin
Date: Wed Mar 22 12:29:56 2017
New Revision: 246372

URL: https://gcc.gnu.org/viewcvs?rev=246372&root=gcc&view=rev
Log:
Backport r245998

2017-03-22  Martin Liska  

Backport from mainline
2017-03-09  Martin Liska  

PR tree-optimization/79631
* tree-chkp-opt.c (chkp_is_constant_addr): Call
tree_int_cst_sign_bit just for INTEGER constants.
2017-03-22  Martin Liska  

Backport from mainline
2017-03-09  Martin Liska  

PR tree-optimization/79631
* gcc.target/i386/mpx/pr79631.c: New test.

Added:
branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/mpx/pr79631.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/tree-chkp-opt.c

[Bug tree-optimization/79631] [CHKP] ICE tree check: expected integer_cst, have negate_expr in decompose, at tree.h:5255

2017-03-22 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79631

Martin Liška  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Martin Liška  ---
Fixed on all active branches.