diff mbox

[Cilkplus] Replace poisoned implicit_built_in_decls array

Message ID 2950715866004049A240A2F9BB410E7315FB4D25CB@azsmsx502.amr.corp.intel.com
State New
Headers show

Commit Message

Iyer, Balaji V Oct. 22, 2011, 5:11 p.m. UTC
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.

Comments

H.J. Lu Oct. 24, 2011, 3:48 p.m. UTC | #1
On Sat, Oct 22, 2011 at 10:11 AM, Iyer, Balaji V
<balaji.v.iyer@intel.com> wrote:
> 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,

I checked it in for you.
diff mbox

Patch

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.iyer@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.iyer@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