diff mbox

Cilk Keywords (_Cilk_spawn and _Cilk_sync) for C (and C++)

Message ID 20131030135101.GI27813@tucnak.zalov.cz
State New
Headers show

Commit Message

Jakub Jelinek Oct. 30, 2013, 1:51 p.m. UTC
On Mon, Oct 28, 2013 at 09:01:45PM +0000, Iyer, Balaji V wrote:
> Thanks! I will extract and check in the Cilk_spawn and _Cilk_sync for C work.

This broke bootstrap on i686-linux, fixed thusly, committed as obvious:

2013-10-30  Jakub Jelinek  <jakub@redhat.com>

	* cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.



	Jakub
diff mbox

Patch

--- gcc/c-family/cilk.c.jj	2013-10-30 13:53:52.000000000 +0100
+++ gcc/c-family/cilk.c	2013-10-30 14:44:49.358912539 +0100
@@ -287,9 +287,9 @@  create_cilk_helper_decl (struct wrapper_
 {
   char name[20];
   if (wd->type == CILK_BLOCK_FOR)
-    sprintf (name, "_cilk_for_%ld", cilk_wrapper_count++);
+    sprintf (name, "_cilk_for_" HOST_WIDE_INT_PRINT_DEC, cilk_wrapper_count++);
   else if (wd->type == CILK_BLOCK_SPAWN)
-    sprintf (name, "_cilk_spn_%ld", cilk_wrapper_count++);
+    sprintf (name, "_cilk_spn_" HOST_WIDE_INT_PRINT_DEC, cilk_wrapper_count++);
   else
     gcc_unreachable ();