Hello Everyone, This patch is for the Cilkplus GCC branch. This patch will replace the poisoned implicit_built_in_decls array with the appropriate function calls.
Thanks, Balaji V. Iyer.
diff --git a/gcc/ChangeLog.cilk b/gcc/ChangeLog.cilk index c4bfa12..285f059 100644 --- a/gcc/ChangeLog.cilk +++ b/gcc/ChangeLog.cilk @@ -1,3 +1,10 @@ +2011-10-22 Balaji V. Iyer <balaji.v.i...@intel.com> + + * cilk.c (install_builtin): Changed implicit_built_in_decls[] to + set_builtin_decl (). + (cilk_call_setjmp): Replaced implicit_built_in_decls[] to + builtin_decl_implicit (). + 2011-09-20 Balaji V. Iyer <balaji.v.i...@intel.com> * ipa-inline.c(can_inline_edge_p): Added a check for function diff --git a/gcc/cilk.c b/gcc/cilk.c index b630efb..369bae0 100644 --- a/gcc/cilk.c +++ b/gcc/cilk.c @@ -77,7 +77,7 @@ install_builtin (const char *name, tree fntype, enum built_in_function code, DECL_FUNCTION_CODE (fndecl) = code; if (publish) fndecl = lang_hooks.decls.pushdecl (fndecl); - implicit_built_in_decls[code] = fndecl; + set_builtin_decl (code, fndecl, true); return fndecl; } @@ -331,7 +331,7 @@ cilk_call_setjmp (tree frame) c = dot(frame, CILK_TI_FRAME_CONTEXT, false); c = build1 (ADDR_EXPR, build_pointer_type (ptr_type_node), c); - return build_call_expr (implicit_built_in_decls[BUILT_IN_SETJMP], 1, c); + return build_call_expr (builtin_decl_implicit (BUILT_IN_SETJMP), 1, c); } static rtx