summaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-11 19:03:52 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-11 19:03:52 +0000
commit6af7af33b50c569063e44a446f896bdb4acb26ac (patch)
treef74298a3fbafd78eaff71ccc122bf70f004a10b7 /gcc/except.c
parentd3931fdc9c478060e2557375de89797dee3416e7 (diff)
downloadgcc-6af7af33b50c569063e44a446f896bdb4acb26ac.tar.gz
PR middle-end/48388
* except.c (can_be_reached_by_runtime): Test for NULL aka bitmap. * g++.dg/torture/pr40388.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149516 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 95163cc356b..4fce0260ab9 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -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))
{