public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][Cilkplus] Replace poisoned implicit_built_in_decls array
@ 2011-10-22 21:54 Iyer, Balaji V
  2011-10-24 16:54 ` H.J. Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Iyer, Balaji V @ 2011-10-22 21:54 UTC (permalink / raw)
  To: GCC Patches (gcc-patches@gcc.gnu.org)

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

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.

[-- Attachment #2: fix_poisoned_array.txt --]
[-- Type: text/plain, Size: 1289 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH][Cilkplus] Replace poisoned implicit_built_in_decls array
  2011-10-22 21:54 [PATCH][Cilkplus] Replace poisoned implicit_built_in_decls array Iyer, Balaji V
@ 2011-10-24 16:54 ` H.J. Lu
  0 siblings, 0 replies; 2+ messages in thread
From: H.J. Lu @ 2011-10-24 16:54 UTC (permalink / raw)
  To: Iyer, Balaji V; +Cc: GCC Patches (gcc-patches@gcc.gnu.org)

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.

-- 
H.J.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-24 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-22 21:54 [PATCH][Cilkplus] Replace poisoned implicit_built_in_decls array Iyer, Balaji V
2011-10-24 16:54 ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).