This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello Everyone, This patch will fix the bug reported in Bugzilla, PR 60586. The issue was that the spawned function's function arguments must not be pushed into the nested/lambda function. This patch should fix that issue. I have tested this on x86_64 (linux and Cygwin flavors). Is this OK for trunk? Here are the Changelog entries: gcc/c-family/ChangeLog 2015-08-31 Balaji V. Iyer <balaji.v.iyer@intel.com> PR middle-end/60586 * c-common.h: Added two more parameters to the gimplify_cilk_spawn function. * c-gimplify.c (c_gimplify_expr): Likewise. * cilk.c (gimplify_cilk_spawn): Likewise and called gimplify_call_params_in_spawned_fn. (gimplify_call_params_in_spawned_fn): New function. gcc/cp/ChangeLog 2015-08-31 Balaji V. Iyer <balaji.v.iyer@intel.com> PR middle-end/60586 * cp-gimplify.c (cp_gimplify_expr): Added two additional parameters to gimplify_cilk_spawn. gcc/testsuite/ChangeLog 2015-08-31 Balaji V. Iyer <balaji.v.iyer@intel.com> PR middle-end/60586 * c-c++-common/cilk-plus/CK/pr60586.c: New file. * g++.dg/cilk-plus/CK/pr60586.cc: Likewise. Thanks, Balaji V. Iyer.
Attachment:
diff.txt
Description: diff.txt
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |