Commit 80e67011 by Jakub Jelinek Committed by Jakub Jelinek

re PR middle-end/33333 (ICE with #pragma omp parallel for in try/catch statement)

	PR middle-end/33333
	* gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.

	* g++.dg/gomp/pr33333.C: New test.

From-SVN: r131820
parent 765d600a
2008-01-25 Jakub Jelinek <jakub@redhat.com>
PR middle-end/33333
* gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
* ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
......
......@@ -5330,6 +5330,10 @@ gimplify_omp_for (tree *expr_p, tree *pre_p)
else
var = decl;
/* If OMP_FOR is re-gimplified, ensure all variables in pre-body
are noticed. */
gimplify_stmt (&OMP_FOR_PRE_BODY (for_stmt));
ret |= gimplify_expr (&GENERIC_TREE_OPERAND (t, 1),
&OMP_FOR_PRE_BODY (for_stmt),
NULL, is_gimple_val, fb_rvalue);
......
2008-01-25 Jakub Jelinek <jakub@redhat.com>
PR middle-end/33333
* g++.dg/gomp/pr33333.C: New test.
PR preprocessor/34692
* gcc.dg/cpp/pr34692.c: New test.
* gcc.dg/gomp/pr34692.c: New test.
// PR middle-end/33333
// { dg-do compile }
struct A
{
int n;
void foo ();
};
void
A::foo ()
{
try
{
#pragma omp parallel for
for (int i = 0; i < n; ++i)
;
} catch (...) {}
}
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