Commit 833ee764 by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/36766 (natGC.cc:229: internal compiler error: Segmentation fault)

	PR tree-optimization/36766
	* tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
	for already removed basic blocks.

	* g++.dg/tree-ssa/pr36766.C: New test.

From-SVN: r139908
parent c83c7e7e
2008-09-02 Jakub Jelinek <jakub@redhat.com> 2008-09-02 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/36766
* tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
for already removed basic blocks.
PR target/36332 PR target/36332
* real.c (real_maxval): Clear a lower bit to make real_maxval * real.c (real_maxval): Clear a lower bit to make real_maxval
match get_max_float for IBM long double format. match get_max_float for IBM long double format.
......
2008-09-02 Jakub Jelinek <jakub@redhat.com> 2008-09-02 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/36766
* g++.dg/tree-ssa/pr36766.C: New test.
PR target/36332 PR target/36332
* gcc.c-torture/execute/ieee/pr36332.c: New test. * gcc.c-torture/execute/ieee/pr36332.c: New test.
......
// PR tree-optimization/36766
// { dg-do compile }
// { dg-options "-O -fnon-call-exceptions" }
struct A
{
~A ()
{
int *a = this->b;
}
int *b;
};
struct B : A
{
B ()
{
int *a = this->b;
}
~B ()
{
int *a = this->b;
}
};
void
foo ()
{
B *c = new B;
delete c;
}
...@@ -6560,7 +6560,13 @@ gimple_purge_all_dead_eh_edges (const_bitmap blocks) ...@@ -6560,7 +6560,13 @@ gimple_purge_all_dead_eh_edges (const_bitmap blocks)
EXECUTE_IF_SET_IN_BITMAP (blocks, 0, i, bi) EXECUTE_IF_SET_IN_BITMAP (blocks, 0, i, bi)
{ {
changed |= gimple_purge_dead_eh_edges (BASIC_BLOCK (i)); basic_block bb = BASIC_BLOCK (i);
/* Earlier gimple_purge_dead_eh_edges could have removed
this basic block already. */
gcc_assert (bb || changed);
if (bb != NULL)
changed |= gimple_purge_dead_eh_edges (bb);
} }
return changed; return changed;
......
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