* [PATCH, testsuite]: Fix g++.dg/cilk-plus/CK/pr66326.cc FAILs
@ 2015-11-09 19:51 Uros Bizjak
0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2015-11-09 19:51 UTC (permalink / raw)
To: gcc-patches; +Cc: Igor Zamyatin
[-- Attachment #1: Type: text/plain, Size: 273 bytes --]
We don't have to use cilk.h convenience header.
2015-11-09 Uros Bizjak <ubizjak@gmail.com>
* g++.dg/cilk-plus/CK/pr66326.cc: Do not include cilk.h.
(main): Use _Cilk_spawn instead of cilk_spawn.
Tested on x86_64-linux-gnu and committed to mainline SVN.
Uros.
[-- Attachment #2: t.diff.txt --]
[-- Type: text/plain, Size: 749 bytes --]
Index: g++.dg/cilk-plus/CK/pr66326.cc
===================================================================
--- g++.dg/cilk-plus/CK/pr66326.cc (revision 230038)
+++ g++.dg/cilk-plus/CK/pr66326.cc (working copy)
@@ -2,7 +2,6 @@
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
-#include <cilk/cilk.h>
#include <vector>
#include <random>
@@ -23,8 +22,8 @@
int main() {
std::vector<double> v1, v2, v3;
- cilk_spawn [&] { v1 = compute(); }();
- cilk_spawn [&] { v2 = compute(); }();
+ _Cilk_spawn [&] { v1 = compute(); }();
+ _Cilk_spawn [&] { v2 = compute(); }();
v3 = compute();
do_not_optimize_away(v1.data());
do_not_optimize_away(v2.data());
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-09 19:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09 19:51 [PATCH, testsuite]: Fix g++.dg/cilk-plus/CK/pr66326.cc FAILs Uros Bizjak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).