Using %g1 to pass values across function calls is a bit iffy so make sure that trying to call _get_g1() results in a linker error. --- src/spsparc64.d.orig Mon Mar 24 11:23:28 2008 +++ src/spsparc64.d Sun Sep 19 15:03:08 2010 @@ -11,16 +11,8 @@ .global getSP .global _getSP - .global _get_g1 - .global __get_g1 # extern void* getSP (void); getSP: _getSP: retl _ mov %sp,%o0 - -# extern uint32 _get_g1 (void); -_get_g1: -__get_g1: retl - _ srl %g1,0,%o0 -