* cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Nov 2013 16:44:02 +0000 (16:44 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Nov 2013 16:44:02 +0000 (16:44 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205313 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cilk-common.c

index fee3273..74913c1 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
+
 2013-11-23  David Edelson  <dje.gcc@gmail.com>
            Andrew Dixie  <andrewd@gentrack.com>
 
index 5409667..52b3785 100644 (file)
@@ -328,7 +328,7 @@ expand_builtin_cilk_detach (tree exp)
 
   tree parent = cilk_dot (fptr, CILK_TI_FRAME_PARENT, 0);
   tree worker = cilk_dot (fptr, CILK_TI_FRAME_WORKER, 0);
-  tree tail = cilk_dot (worker, CILK_TI_WORKER_TAIL, 1);
+  tree tail = cilk_arrow (worker, CILK_TI_WORKER_TAIL, 1);
 
   rtx wreg = expand_expr (worker, NULL_RTX, Pmode, EXPAND_NORMAL);
   if (GET_CODE (wreg) != REG)