http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46364
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-18 15:25:24 UTC --- Author: rguenth Date: Mon Apr 18 15:25:17 2011 New Revision: 172653 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172653 Log: 2011-04-18 Richard Guenther <rguent...@suse.de> Backported from 4.6 branch 2011-01-19 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/47290 * tree-eh.c (infinite_empty_loop_p): New function. (cleanup_empty_eh): Use it. * g++.dg/torture/pr47290.C: New test. 2010-05-29 Jan Hubicka <j...@suse.cz> PR tree-optimization/46364 * cgraphunit.c (cgraph_materialize_clone): Only remove calles, refs and body; not the whole node for masters of materialized clones. * g++.dg/torture/pr46364.C: New testcase. Added: branches/gcc-4_5-branch/gcc/testsuite/g++.dg/torture/pr46364.C branches/gcc-4_5-branch/gcc/testsuite/g++.dg/torture/pr47290.C Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/cgraphunit.c branches/gcc-4_5-branch/gcc/testsuite/ChangeLog branches/gcc-4_5-branch/gcc/tree-eh.c