Hello Everyone,
   This patch is for the Cilkplus branch affecting the C++ compiler. The 
compiler crashes when a throw() is set for a spawned function. This patch 
should fix that.

Thanks,

Balaji V. iyer.
Index: gcc/cp/cilk.c
===================================================================
--- gcc/cp/cilk.c       (revision 188209)
+++ gcc/cp/cilk.c       (working copy)
@@ -872,7 +872,6 @@
                                                  obody, dtor),
                                      &body);
 
-      TREE_CHAIN (obody) = body;
       *saved_tree = body;
     }
 
Index: gcc/cp/ChangeLog.cilk
===================================================================
--- gcc/cp/ChangeLog.cilk       (revision 188209)
+++ gcc/cp/ChangeLog.cilk       (working copy)
@@ -1,3 +1,8 @@
+2012-06-04  Balaji V. Iyer  <balaji.v.i...@intel.com>
+
+       * cilk.c (cp_make_cilk_frame): Removed adding body to the orig body's
+       tree chain.
+
 2012-05-30  Balaji V. Iyer  <balaji.v.i...@intel.com>
 
        * semantics.c (finish_call_expr): Used spawning for call_type instead of

Reply via email to