Commit d5d86fde by Jakub Jelinek Committed by Jakub Jelinek

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
parent 7d0e5ebe
2006-05-02 Jakub Jelinek <jakub@redhat.com>
PR middle-end/27310
* except.c (duplicate_eh_regions): Fix clearing of
cfun->eh->region_array entries.
2006-05-01 DJ Delorie <dj@redhat.com>
* configure.ac (gcc_cv_nm): Don't use an in-tree nm if
......
......@@ -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)
......
2006-05-02 Jakub Jelinek <jakub@redhat.com>
PR middle-end/27310
* g++.dg/gomp/pr27310.C: New test.
2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/27291
// PR middle-end/27310
// { dg-do compile }
// { dg-options "-O2 -fopenmp" }
struct A
{
~A ();
};
struct B
{
A a, b;
};
void
foo ()
{
A c, d;
#pragma omp parallel
B e;
}
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