[Bug tree-optimization/92401] [10 Regression] ICE in fold_ternary_loc, at fold-const.c:11698
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 9 17:10:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92401
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Nov 9 17:09:44 2019
New Revision: 278004
URL: https://gcc.gnu.org/viewcvs?rev=278004&root=gcc&view=rev
Log:
PR tree-optimization/92401
* gimple-match-head.c (gimple_resimplify1): Call const_unop only
if res_op->code is an expression with code length 1.
* gimple-match-head.c (gimple_resimplify2): Call const_binop only
if res_op->code is an expression with code length 2.
* gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
if res_op->code is an expression with code length 3.
* g++.dg/opt/pr92401.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/opt/pr92401.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimple-match-head.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list