Commit 78234a86 by Diego Novillo Committed by Diego Novillo

re PR tree-optimization/23164 (ICE in cleanup_tree_cfg with -O -fno-exceptions)


	PR 23164
	* tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
	number of calls to cleanup_tree_cfg_1.

testsuite/ChangeLog

	PR 23164
	* g++.dg/tree-ssa/pr23164.C: New test.

From-SVN: r102666
parent 5a006700
2005-08-02 Diego Novillo <dnovillo@redhat.com>
PR 23164
* tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
number of calls to cleanup_tree_cfg_1.
2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de> 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
* doc/invoke.texi: document file extensions .F90 and .F95 * doc/invoke.texi: document file extensions .F90 and .F95
......
2005-08-02 Diego Novillo <dnovillo@redhat.com> 2005-08-02 Diego Novillo <dnovillo@redhat.com>
PR 23164
* g++.dg/tree-ssa/pr23164.C: New test.
2005-08-02 Diego Novillo <dnovillo@redhat.com>
* gcc.dg/tree-ssa/pr23192.c: New test. * gcc.dg/tree-ssa/pr23192.c: New test.
2005-08-02 James A. Morrison <phython@gcc.gnu.org> 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
......
/* { dg-do compile } */
/* { dg-options "-O2" } */
bool f();
struct S {
S();
~S();
};
void g() {
for (;;) {
S s1, s2, s3, s4, s5, s6;
if (f())
continue;
if (f())
return;
}
}
...@@ -529,22 +529,12 @@ bool ...@@ -529,22 +529,12 @@ bool
cleanup_tree_cfg (void) cleanup_tree_cfg (void)
{ {
bool retval; bool retval;
int i;
timevar_push (TV_TREE_CLEANUP_CFG); timevar_push (TV_TREE_CLEANUP_CFG);
for (retval = true, i = 0; i < 5 && retval; i++) do
retval = cleanup_tree_cfg_1 (); retval = cleanup_tree_cfg_1 ();
while (retval);
#ifdef ENABLE_CHECKING
if (retval)
{
gcc_assert (!cleanup_control_flow ());
gcc_assert (!delete_unreachable_blocks ());
if (optimize > 0)
gcc_assert (!cleanup_forwarder_blocks ());
}
#endif
compact_blocks (); compact_blocks ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment