Hello Everyone,
    This patch is for the Cilk Plus branch mainly affecting the LTO flag. This 
patch will allow the flag_enable_cilk to carry through into the LTO code. Also, 
I added one small case statement for __cilkrts_detach.

Thanks,

Balaji V. Iyer.
Index: gcc/c-family/c.opt
===================================================================
--- gcc/c-family/c.opt  (revision 189810)
+++ gcc/c-family/c.opt  (working copy)
@@ -769,7 +769,7 @@
 C ObjC C++ ObjC++ Joined
 
 fcilkplus
-C ObjC C++ ObjC++ Report Var(flag_enable_cilk) Init(0)
+C ObjC C++ ObjC++ LTO Report Var(flag_enable_cilk) Init(0)
 Enable Cilk
 
 fcilk-check-spawn-queue
Index: gcc/cilk.c
===================================================================
--- gcc/cilk.c  (revision 189811)
+++ gcc/cilk.c  (working copy)
@@ -1212,6 +1212,7 @@
   
   switch (func_code)
     {
+    case BUILT_IN_CILK_DETACH:
     case BUILT_IN_CILK_ENTER_FRAME:
     case BUILT_IN_CILK_ENTER_BEGIN:
     case BUILT_IN_CILK_ENTER_H_BEGIN:
Index: gcc/ChangeLog.cilk
===================================================================
--- gcc/ChangeLog.cilk  (revision 189811)
+++ gcc/ChangeLog.cilk  (working copy)
@@ -1,3 +1,8 @@
+2012-07-25  Balaji V. Iyer  <balaji.v.i...@intel.com>
+
+       * cilk.c (is_cilk_must_expand_fn): Added BUILT_IN_CILK_DETACH case.
+       * c.opt (flag_enable_cilk): Added a case for LTO.
+
 2012-07-23  Balaji V. Iyer  <balaji.v.i...@intel.com>
 
        * cilk.c (cilk_declare_looper): Added comments to function header.  Also

Reply via email to