X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Flanghooks.c;h=b2b9b4595b21fa22374366f70a90c9a52d30fa70;hb=f6e5971197e69aa040ca3ad0dc9e580bf3dcbb89;hp=e2939f07bfcc81dbe4e428d18cb91ddb38ae4ced;hpb=67ce556b47830dd825524e8370969b814c355216;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/langhooks.c b/gcc/langhooks.c index e2939f07bfc..b2b9b4595b2 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -467,7 +467,7 @@ write_global_declarations (void) tree globals = lang_hooks.decls.getdecls (); int len = list_length (globals); - tree *vec = xmalloc (sizeof (tree) * len); + tree *vec = XNEWVEC (tree, len); int i; tree decl; @@ -478,10 +478,10 @@ write_global_declarations (void) vec[len - i - 1] = decl; wrapup_global_declarations (vec, len); - check_global_declarations (vec, len); + emit_debug_global_declarations (vec, len); - /* Clean up. */ + /* Clean up. */ free (vec); } @@ -543,3 +543,38 @@ lhd_to_target_charset (HOST_WIDE_INT c) { return c; } + +tree +lhd_expr_to_decl (tree expr, bool *tc ATTRIBUTE_UNUSED, + bool *ti ATTRIBUTE_UNUSED, bool *se ATTRIBUTE_UNUSED) +{ + return expr; +} + +/* Return sharing kind if OpenMP sharing attribute of DECL is + predetermined, OMP_CLAUSE_DEFAULT_UNSPECIFIED otherwise. */ + +enum omp_clause_default_kind +lhd_omp_predetermined_sharing (tree decl ATTRIBUTE_UNUSED) +{ + if (DECL_ARTIFICIAL (decl)) + return OMP_CLAUSE_DEFAULT_SHARED; + return OMP_CLAUSE_DEFAULT_UNSPECIFIED; +} + +/* Generate code to copy SRC to DST. */ + +tree +lhd_omp_assignment (tree clause ATTRIBUTE_UNUSED, tree dst, tree src) +{ + return build2 (MODIFY_EXPR, void_type_node, dst, src); +} + +/* Register language specific type size variables as potentially OpenMP + firstprivate variables. */ + +void +lhd_omp_firstprivatize_type_sizes (struct gimplify_omp_ctx *c ATTRIBUTE_UNUSED, + tree t ATTRIBUTE_UNUSED) +{ +}