|
From: Ned K. <ne...@us...> - 2004-01-13 17:23:00
|
Update of /cvsroot/squeak/squeak/platforms/unix/vm
In directory sc8-pr-cvs1:/tmp/cvs-serv32277/platforms/unix/vm
Modified Files:
Tag: ned-branch
sqGnu.h
Log Message:
Andrew Catton reported that he was unable to compile the unix VM on his
Apple Darwin system (gcc 3.1). Changing the definitions of GP_REG et al
from the asm() form to the __asm__() form fixed the problem.
Index: sqGnu.h
===================================================================
RCS file: /cvsroot/squeak/squeak/platforms/unix/vm/sqGnu.h,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -C2 -d -r1.8 -r1.8.2.1
*** sqGnu.h 16 Sep 2003 07:55:58 -0000 1.8
--- sqGnu.h 13 Jan 2004 17:22:56 -0000 1.8.2.1
***************
*** 172,194 ****
*/
#if defined(__mips__)
! # define IP_REG asm("$16")
! # define SP_REG asm("$17")
! # define CB_REG asm("$18")
#endif
#if defined(__sparc__)
! # define IP_REG asm("%l0")
! # define SP_REG asm("%l1")
! # define CB_REG asm("%l2")
#endif
#if defined(__alpha__)
! # define IP_REG asm("$9")
! # define SP_REG asm("$10")
! # define CB_REG asm("$11")
#endif
#if defined(__i386__)
! # define IP_REG asm("%esi")
! # define SP_REG asm("%edi")
# if (__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95))
! # define CB_REG asm("%ebx")
# else
# define CB_REG /* avoid undue register pressure */
--- 172,194 ----
*/
#if defined(__mips__)
! # define IP_REG __asm__("$16")
! # define SP_REG __asm__("$17")
! # define CB_REG __asm__("$18")
#endif
#if defined(__sparc__)
! # define IP_REG __asm__("%l0")
! # define SP_REG __asm__("%l1")
! # define CB_REG __asm__("%l2")
#endif
#if defined(__alpha__)
! # define IP_REG __asm__("$9")
! # define SP_REG __asm__("$10")
! # define CB_REG __asm__("$11")
#endif
#if defined(__i386__)
! # define IP_REG __asm__("%esi")
! # define SP_REG __asm__("%edi")
# if (__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95))
! # define CB_REG __asm__("%ebx")
# else
# define CB_REG /* avoid undue register pressure */
***************
*** 196,214 ****
#endif
#if defined(__powerpc__) || defined(PPC) || defined(_POWER) || defined(_IBMR2) || defined(__ppc__)
! # define GP_REG asm("24")
! # define JP_REG asm("25")
! # define IP_REG asm("26")
! # define SP_REG asm("27")
! # define CB_REG asm("28")
#endif
#if defined(__hppa__)
! # define IP_REG asm("%r18")
! # define SP_REG asm("%r17")
! # define CB_REG asm("%r16")
#endif
#if defined(__mc68000__)
! # define IP_REG asm("a5")
! # define SP_REG asm("a4")
! # define CB_REG asm("d7")
#endif
--- 196,214 ----
#endif
#if defined(__powerpc__) || defined(PPC) || defined(_POWER) || defined(_IBMR2) || defined(__ppc__)
! # define GP_REG __asm__("24")
! # define JP_REG __asm__("25")
! # define IP_REG __asm__("26")
! # define SP_REG __asm__("27")
! # define CB_REG __asm__("28")
#endif
#if defined(__hppa__)
! # define IP_REG __asm__("%r18")
! # define SP_REG __asm__("%r17")
! # define CB_REG __asm__("%r16")
#endif
#if defined(__mc68000__)
! # define IP_REG __asm__("a5")
! # define SP_REG __asm__("a4")
! # define CB_REG __asm__("d7")
#endif
|