]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 23 Nov 2013 16:44:02 +0000 (16:44 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 23 Nov 2013 16:44:02 +0000 (16:44 +0000)
From-SVN: r205313

gcc/ChangeLog
gcc/cilk-common.c

index fee3273a3004524d491f0665b4b27f0261a4c7b1..74913c19e29d94440ad284e661c62a66395599d6 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 540966763439fb4c1aaa1c480c1564857ca7a950..52b37852273035437807af1c1c4beace02b8fe05 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)