Patchwork [Cilkplus] Patch to make internal struct runtme independent

login
register
mail settings
Submitter Iyer, Balaji V
Date June 11, 2012, 6:38 p.m.
Message ID <BF230D13CA30DD48930C31D4099330000F268C70@FMSMSX102.amr.corp.intel.com>
Download mbox | patch
Permalink /patch/164237/
State New
Headers show

Comments

Iyer, Balaji V - June 11, 2012, 6:38 p.m.
Hello Everyone,
   This patch is for the Cilkplus branch affecting both C and C++ compilers. This patch will make the cilkrts_stack_frame structure independent of the runtime.

Thanking You,

Yours Sincerely,

Balaji V. Iyer.

Patch

Index: gcc/cilk.c
===================================================================
--- gcc/cilk.c	(revision 188393)
+++ gcc/cilk.c	(working copy)
@@ -165,7 +165,7 @@ 
   TYPE_ALIGN (frame) = PREFERRED_STACK_BOUNDARY;
   TREE_ADDRESSABLE (frame) = 1;
   /* XXX Is this right? */
-  finish_builtin_struct (frame, "__cilkrts_stack_frame", fields, NULL_TREE);
+  finish_builtin_struct (frame, "__cilkrts_stack_frame_GCC", fields, NULL_TREE);
   /* XXX C++ only SET_CLASS_TYPE_P(record, 1); */
   /* XXX C++ only xref_basetypes (record, NULL_TREE); */
   cilk_frame_type_decl = frame;
Index: gcc/ChangeLog.cilk
===================================================================
--- gcc/ChangeLog.cilk	(revision 188393)
+++ gcc/ChangeLog.cilk	(working copy)
@@ -1,3 +1,8 @@ 
+2012-06-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* cilk.c (cilk_init_builtins): Made the stack frame structure runtime
+	independent.
+
 2012-06-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
 
 	* cilk-spawn.c (compute_loop_var): Removed an unwanted assert.