diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-02 10:38:12 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-02 10:38:12 +0000 |
commit | b70b62cf5ca13d0b80bf8ca88a9002d9f13e41d1 (patch) | |
tree | c7abb1d486d9780be232a4febaccc2a81d35565e /gcc/except.c | |
parent | 242704f74ebb4ebf9eb34f729e8f162546285c58 (diff) | |
download | gcc-b70b62cf5ca13d0b80bf8ca88a9002d9f13e41d1.tar.gz |
PR middle-end/27310
* except.c (duplicate_eh_regions): Fix clearing of
cfun->eh->region_array entries.
* g++.dg/gomp/pr27310.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113453 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r-- | gcc/except.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/except.c b/gcc/except.c index 57e71bdfb44..ba6b505008d 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -956,7 +956,7 @@ duplicate_eh_regions (struct function *ifun, duplicate_eh_regions_map map, /* Zero all entries in the range allocated. */ memset (VEC_address (eh_region, cfun->eh->region_array) - + cfun_last_region_number + 1, 0, num_regions); + + cfun_last_region_number + 1, 0, num_regions * sizeof (eh_region)); /* Locate the spot at which to insert the new tree. */ if (outer_region > 0) |