Commit 6b45de00 by Jan Hubicka Committed by Jan Hubicka

re PR middle-end/40388 (another null pointer in remove_unreachable_regions)

	PR middle-end/48388
	* except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
	* g++.dg/torture/pr40388.C: New testcase.

From-SVN: r149516
parent b0159fbe
2009-07-11 Jan Hubicka <jh@suse.cz>
PR middle-end/48388
* except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
2009-07-11 Jakub Jelinek <jakub@redhat.com>
PR debug/40713
......
......@@ -565,7 +565,7 @@ can_be_reached_by_runtime (sbitmap contains_stmt, struct eh_region_d *r)
if (i->type != ERT_MUST_NOT_THROW)
{
bool found = TEST_BIT (contains_stmt, i->region_number);
if (!found)
if (!found && i->aka)
EXECUTE_IF_SET_IN_BITMAP (i->aka, 0, n, bi)
if (TEST_BIT (contains_stmt, n))
{
......
2009-07-11 Jan Hubicka <jh@suse.cz>
PR middle-end/48388
* g++.dg/torture/pr40388.C: New testcase.
2009-07-11 Jakub Jelinek <jakub@redhat.com>
PR target/40668
......
void foo();
struct A
{
~A()
{
try
{
foo();
foo();
}
catch (...)
{
}
}
};
void bar()
{
A a1, a2;
}
void foo();
struct A
{
~A()
{
try
{
foo();
foo();
}
catch (...)
{
}
}
};
void bar()
{
A a1, a2;
}
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