aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-parloops.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-11-09 17:17:01 +0000
committerJakub Jelinek <jakub@redhat.com>2016-11-09 17:17:01 +0000
commitec2553006bb1873c394f2a5bb17360b9fc134564 (patch)
tree20883aed1a100bb664b1b8f91ea52db32f78f1a4 /gcc/tree-parloops.c
parent346787eb3d6ebe265e33d32632c2ed3d10025d12 (diff)
svn merge -r237818:241998 svn+ssh://gcc.gnu.org/svn/gcc/trunkgomp-4_5-branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gomp-4_5-branch@242008 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-parloops.c')
-rw-r--r--gcc/tree-parloops.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
index 1303ffc7d08..4779441b0cf 100644
--- a/gcc/tree-parloops.c
+++ b/gcc/tree-parloops.c
@@ -1476,6 +1476,7 @@ create_loop_fn (location_t loc)
DECL_EXTERNAL (decl) = 0;
DECL_CONTEXT (decl) = NULL_TREE;
DECL_INITIAL (decl) = make_node (BLOCK);
+ BLOCK_SUPERCONTEXT (DECL_INITIAL (decl)) = decl;
t = build_decl (loc, RESULT_DECL, NULL_TREE, void_type_node);
DECL_ARTIFICIAL (t) = 1;
@@ -2989,9 +2990,7 @@ oacc_entry_exit_ok_1 (bitmap in_loop_bbs, vec<basic_block> region_bbs,
&& !gimple_vdef (stmt)
&& !gimple_vuse (stmt))
continue;
- else if (is_gimple_call (stmt)
- && gimple_call_internal_p (stmt)
- && gimple_call_internal_fn (stmt) == IFN_GOACC_DIM_POS)
+ else if (gimple_call_internal_p (stmt, IFN_GOACC_DIM_POS))
continue;
else if (gimple_code (stmt) == GIMPLE_RETURN)
continue;