mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
don't crash etch's gcc
* libguile/vm-engine.h: Don't allocate registers in registers if we're on Etch's GCC.
This commit is contained in:
parent
0704c81395
commit
893be93f58
1 changed files with 4 additions and 0 deletions
|
@ -77,10 +77,14 @@
|
|||
#endif
|
||||
#endif
|
||||
#ifdef __i386__
|
||||
/* gcc on lenny actually crashes if we allocate these variables in registers.
|
||||
hopefully this is the only one of these. */
|
||||
#if !(__GNUC__==4 && __GNUC_MINOR__==1 && __GNUC_PATCHLEVEL__==2)
|
||||
#define IP_REG asm("%esi")
|
||||
#define SP_REG asm("%edi")
|
||||
#define FP_REG
|
||||
#endif
|
||||
#endif
|
||||
#if defined(PPC) || defined(_POWER) || defined(_IBMR2)
|
||||
#define IP_REG asm("26")
|
||||
#define SP_REG asm("27")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue