re PR middle-end/89779 (internal compiler error: tree check: expected class ‘type...
authorRichard Biener <rguenther@suse.de>
Thu, 21 Mar 2019 14:27:32 +0000 (14:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 21 Mar 2019 14:27:32 +0000 (14:27 +0000)
commit6d1a7fd4507f94d5ba1ac3216330280a4751a599
tree18b7ef21746ac24ef6c1d79d6e6d37f58ce0d026
parente2186cd88ed9015ad0cd6f265daa164648d30f74
re PR middle-end/89779 (internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in tree_nop_conversion_p, at tree.c:12798)

2019-03-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/89779
* tree.c (tree_nop_conversion): Consolidate and fix defensive
checks with respect to released SSA names now having error_mark_node
type.
* fold-const.c (operand_equal_p): Likewise.

* gcc.dg/torture/pr89779.c: New testcase.

From-SVN: r269838
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr89779.c [new file with mode: 0644]
gcc/tree.c