re PR middle-end/92063 (ICE in operation_could_trap_p, at tree-eh.c:2528 when compili...
commit853ce7c073eedfba1adfb63530a8bd2baa767137
authorJakub Jelinek <jakub@redhat.com>
Sat, 12 Oct 2019 12:21:45 +0000 (12 14:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 12 Oct 2019 12:21:45 +0000 (12 14:21 +0200)
tree31ed1c2b11dab70a360c55ebd718030a25930484
parent20de9568b49e663be848a35ce0bb08f63f14b5b2
re PR middle-end/92063 (ICE in operation_could_trap_p, at tree-eh.c:2528 when compiling Python's Python/_warnings.c)

PR middle-end/92063
* tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
<case VEC_COND_EXPR>: Return false with *handled = false.
(tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
recursing on the first operand.
* fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
instead of tree_could_trap_p.
* tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.

* gcc.c-torture/compile/pr92063.c: New test.

From-SVN: r276915
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr92063.c [new file with mode: 0644]
gcc/tree-eh.c
gcc/tree-ssa-sccvn.c