[Bug tree-optimization/47290] [4.5 Regression] memory exhausted compiling a destructor with an infinite 'for (;;);' loop

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 18 15:26:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47290

--- Comment #16 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-18 15:25:23 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  <rguenther@suse.de>

    Backported from 4.6 branch
    2011-01-19  Jakub Jelinek  <jakub@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  <jh@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



More information about the Gcc-bugs mailing list