re PR tree-optimization/47290 (memory exhausted compiling a destructor with an infini...
authorJakub Jelinek <jakub@redhat.com>
Tue, 18 Jan 2011 23:16:16 +0000 (00:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 18 Jan 2011 23:16:16 +0000 (00:16 +0100)
commitafaaa67d427a9df12d7377546a7a5dafc66ed210
tree7b35321de8d0dd4df0dafa71e743ef081c115373
parent2d300fac7d9aaaa9f5cb63a44b3cfc130895324d
re PR tree-optimization/47290 (memory exhausted compiling a destructor with an infinite 'for (;;);' loop)

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.

From-SVN: r168974
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr47290.C [new file with mode: 0644]
gcc/tree-eh.c