X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fomp-low.c;h=60b14800679904810dee6d092761432a25db2044;hb=0c8e56a848b9ad7a1008870b974b017c59efc2a4;hp=45602c24d748b704e04404cae2f536c40c709213;hpb=20099e352f87c3265c44cd3341fd3aec25cb0fb4;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 45602c24d74..60b14800679 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -993,7 +993,8 @@ scan_sharing_clauses (tree clauses, omp_context *ctx) case OMP_CLAUSE_SHARED: gcc_assert (is_parallel_ctx (ctx)); decl = OMP_CLAUSE_DECL (c); - gcc_assert (!is_variable_sized (decl)); + gcc_assert (!COMPLETE_TYPE_P (TREE_TYPE (decl)) + || !is_variable_sized (decl)); by_ref = use_pointer_for_field (decl, ctx); /* Global variables don't need to be copied, the receiver side will use them directly. */ @@ -2625,7 +2626,7 @@ expand_omp_parallel (struct omp_region *region) /* Declare local variables needed in CHILD_CFUN. */ block = DECL_INITIAL (child_fn); - BLOCK_VARS (block) = list2chain (child_cfun->unexpanded_var_list); + BLOCK_VARS (block) = list2chain (child_cfun->local_decls); DECL_SAVED_TREE (child_fn) = bb_stmt_list (single_succ (entry_bb)); /* Reset DECL_CONTEXT on function arguments. */