summaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-05-02 12:38:12 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2006-05-02 12:38:12 +0200
commitd5d86fde90742a0fcd0a75693ec977b5d8bf5645 (patch)
treec7abb1d486d9780be232a4febaccc2a81d35565e /gcc/except.c
parent7d0e5ebe7b2d0704400249dcae5b63ccd8c9ea2e (diff)
downloadgcc-d5d86fde90742a0fcd0a75693ec977b5d8bf5645.tar.gz
re PR middle-end/27310 (ICE in duplicate_eh_regions)
PR middle-end/27310 * except.c (duplicate_eh_regions): Fix clearing of cfun->eh->region_array entries. * g++.dg/gomp/pr27310.C: New test. From-SVN: r113453
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 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)