diff options
author | Andy Wingo <wingo@pobox.com> | 2009-06-24 23:49:11 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2009-06-26 12:42:10 +0200 |
commit | e6eb2467164de264c313af92d488144d2cdae94c (patch) | |
tree | 0c753cb23b1a9e269ca6b173f98dae14bb460265 /libguile/vm-engine.h | |
parent | caa92f5e951528c1ea31b2eea8b388e9888fa19e (diff) | |
download | guile-e6eb2467164de264c313af92d488144d2cdae94c.tar.gz |
add bytevector ops to the vm
* libguile/instructions.h (SCM_VM_NUM_INSTRUCTIONS): Enlarge to 255. Not
sure what performance effects this will have.
* libguile/vm-engine.c: Add new error case, vm_error_not_a_bytevector.
* libguile/vm-engine.h: Don't assign specific registers for i386. Having
added the new VM vector ops, GCC 4.4 is erroring for me now.
* libguile/vm-i-scheme.c: Add bytevector-specific ops to the VM.
We don't actually use them yet, though.
Diffstat (limited to 'libguile/vm-engine.h')
-rw-r--r-- | libguile/vm-engine.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libguile/vm-engine.h b/libguile/vm-engine.h index c98dfdd78..d6849799c 100644 --- a/libguile/vm-engine.h +++ b/libguile/vm-engine.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2009 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -54,13 +54,9 @@ #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 +/* too few registers! because of register allocation errors with various gcs, + just punt on explicit assignments on i386, hoping that the "register" + declaration will be sufficient. */ #endif #if defined(PPC) || defined(_POWER) || defined(_IBMR2) #define IP_REG asm("26") |