diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-12-08 11:36:01 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-12-08 11:36:01 +0100 |
commit | d9c194cb9ef4c1a9263af6c28267104f4ce3628e (patch) | |
tree | afeb602ff89a718fac03904e6d621cdacaf590a5 /gcc | |
parent | 4e1e3eda6b83b091b227dad1c029d18ab6501f91 (diff) | |
download | gcc-d9c194cb9ef4c1a9263af6c28267104f4ce3628e.tar.gz |
re PR middle-end/36802 (pop_gimplify_context ICE using openmp task construct)
PR middle-end/36802
* omp-low.c (use_pointer_for_field): Only call maybe_lookup_decl
on parallel and task contexts.
* testsuite/libgomp.c/pr36802-1.c: New test.
* testsuite/libgomp.c/pr36802-2.c: New test.
* testsuite/libgomp.c/pr36802-3.c: New test.
From-SVN: r142546
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/omp-low.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b530d25614a..ed541f12220 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-12-08 Jakub Jelinek <jakub@redhat.com> + + PR middle-end/36802 + * omp-low.c (use_pointer_for_field): Only call maybe_lookup_decl + on parallel and task contexts. + 2008-12-07 Eric Botcazou <ebotcazou@adacore.com> * gimple.c (recalculate_side_effects) <tcc_constant>: New case. diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 8781418bd82..b7885e6cf3c 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -760,10 +760,10 @@ use_pointer_for_field (tree decl, omp_context *shared_ctx) omp_context *up; for (up = shared_ctx->outer; up; up = up->outer) - if (maybe_lookup_decl (decl, up)) + if (is_taskreg_ctx (up) && maybe_lookup_decl (decl, up)) break; - if (up && is_taskreg_ctx (up)) + if (up) { tree c; |