Patchwork [gccgo] Change definition to match declaration

login
register
mail settings
Submitter Ian Taylor
Date Nov. 19, 2010, 11:58 p.m.
Message ID <mcrfwuw3lye.fsf@google.com>
Download mbox | patch
Permalink /patch/72337/
State New
Headers show

Comments

Ian Taylor - Nov. 19, 2010, 11:58 p.m.
This patch changes the definition of __go_scanstacks in go-go.c to match
the declaration in runtime.h.  This caused no problems on GNU/Linux but
reportedly caused a conflicting types error on Darwin.  I'm not sure
why.  In any case, committed to gccgo branch.

Ian

Patch

diff -r 28f3502e71a2 libgo/runtime/go-go.c
--- a/libgo/runtime/go-go.c	Wed Nov 17 16:13:57 2010 -0800
+++ b/libgo/runtime/go-go.c	Fri Nov 19 15:56:49 2010 -0800
@@ -428,7 +428,7 @@ 
    with __go_thread_ids_lock held.  */
 
 void
-__go_scanstacks (void (*scan) (unsigned char *, int64_t))
+__go_scanstacks (void (*scan) (byte *, int64_t))
 {
   pthread_t me;
   struct __go_thread_id *p;