[gccgo] Change definition to match declaration

Message ID mcrfwuw3lye.fsf@google.com
State New
Headers show

Commit Message

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.



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.  */
-__go_scanstacks (void (*scan) (unsigned char *, int64_t))
+__go_scanstacks (void (*scan) (byte *, int64_t))
   pthread_t me;
   struct __go_thread_id *p;