re PR tree-optimization/45580 (Building WebKit fails with compiler catching SIGSEGV...
authorRichard Guenther <rguenther@suse.de>
Tue, 21 Sep 2010 09:52:00 +0000 (09:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 21 Sep 2010 09:52:00 +0000 (09:52 +0000)
commitce2b1d68a387994dab9de5e862c809be3d39326c
treee56f74dda4e97878bf4598aa4d45f83c158b7fba
parent1c7f2bc8dd0e41fe8863b1f2706aea7ccf8b8528
re PR tree-optimization/45580 (Building WebKit fails with compiler catching SIGSEGV in gimple_fold_obj_type_ref_known_binfo())

2010-09-21  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45580
* tree-ssa-propagate.c (substitute_and_fold): Always replace
regular uses.
* gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
virtuals fold the call into a regular indirect one.

* g++.dg/torture/pr45580.C: New testcase.

From-SVN: r164474
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr45580.C [new file with mode: 0644]
gcc/tree-ssa-propagate.c