help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: [bug] -static build for gst


From: Paolo Bonzini
Subject: [Help-smalltalk] Re: [bug] -static build for gst
Date: Mon, 10 Dec 2007 02:23:16 -0700

Issue status update for http://smalltalk.gnu.org/project/issue/131 Post a follow up: http://smalltalk.gnu.org/project/comments/add/131

Project:      GNU Smalltalk
Version:      <none>
Component:    VM
Category:     bug reports
Priority:     critical
Assigned to:  bonzinip
Reported by:  ildar.mulyukov
Updated by:   bonzinip
-Status:       active
+Status:       fixed

Fixed with this simple patch:

--- orig/libgst/md-config.h
+++ mod/libgst/md-config.h
@@ -87,13 +87,7 @@
# define REG_AVAILABILITY 0
# define __DECL_REG1 __asm("%esi")
# define __DECL_REG2 __asm("%edi")
-# if defined __APPLE__
-#  define __DECL_REG3 /* bug on Apple GCC? */
-# elif defined __PIC__ || defined __pic__
-#  define __DECL_REG3 __asm("%edx")   /* Don't conflict with GOT
pointer... */
-# else
-#  define __DECL_REG3 __asm("%ebx")   /* ...but prefer a callee-save
reg.  */
-# endif
+# define __DECL_REG3 /* no more caller-save regs if PIC is in use!  */
#endif

#if !defined(__DECL_REG1) && defined(PPC) || defined(_POWER) ||
defined(_IBMR2)

I have not yet removed the flag though.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]