diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-01-23 19:19:50 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-01-23 19:19:50 +0100 |
commit | b8910447230acb4d7651f131174cee296e4ac66d (patch) | |
tree | 0b4fd08fad396211399dfe9c28d88e7ec0ed0eab /gcc | |
parent | 8a7261b26cd40d2d462b8d4a9a2d60089b6eb6f0 (diff) | |
download | gcc-b8910447230acb4d7651f131174cee296e4ac66d.zip gcc-b8910447230acb4d7651f131174cee296e4ac66d.tar.gz gcc-b8910447230acb4d7651f131174cee296e4ac66d.tar.bz2 |
re PR middle-end/64734 (ICE at omp lowering)
PR middle-end/64734
* omp-low.c (scan_sharing_clauses): Don't ignore
OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
on target data/update constructs.
* libgomp.c/pr64734.c: New test.
From-SVN: r220053
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/omp-low.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e4a4cf0..e5eaf5b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-01-23 Jakub Jelinek <jakub@redhat.com> + + PR middle-end/64734 + * omp-low.c (scan_sharing_clauses): Don't ignore + OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses + on target data/update constructs. + 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de> PR target/50928 diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 1589310..da53334 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -1834,7 +1834,8 @@ scan_sharing_clauses (tree clauses, omp_context *ctx) /* Ignore GOMP_MAP_POINTER kind for arrays in regions that are not offloaded; there is nothing to map for those. */ if (!is_gimple_omp_offloaded (ctx->stmt) - && !POINTER_TYPE_P (TREE_TYPE (decl))) + && !POINTER_TYPE_P (TREE_TYPE (decl)) + && !OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION (c)) break; } if (DECL_P (decl)) |