aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2013-11-23 16:44:02 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2013-11-23 16:44:02 +0000
commit7c42f52b7419ea5db30917cf39c15783e5aa2bf5 (patch)
treee8dd7550d1b9d49164a1445ecd49e33d7677904a /gcc
parenta47c2f6211a0e06551b48d3d9583dc974cba15c6 (diff)
downloadgcc-7c42f52b7419ea5db30917cf39c15783e5aa2bf5.zip
gcc-7c42f52b7419ea5db30917cf39c15783e5aa2bf5.tar.gz
gcc-7c42f52b7419ea5db30917cf39c15783e5aa2bf5.tar.bz2
* cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
From-SVN: r205313
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cilk-common.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fee3273..74913c1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/cilk-common.c b/gcc/cilk-common.c
index 5409667..52b3785 100644
--- a/gcc/cilk-common.c
+++ b/gcc/cilk-common.c
@@ -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)