1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-27 23:40:24 +02:00

avoid redefinition of _r1

2008-02-13  Paolo Bonzini  <bonzini@gnu.org>

	* lightning/i386/asm-32.h: Avoid redefinition of _r1, reported by
	Sam Steingold.
	* lightning/i386/asm-64.h: Likewise.
This commit is contained in:
Paolo Bonzini 2008-02-14 09:55:57 +01:00
parent 9f2179f572
commit 3b4343ec47
3 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-02-13 Paolo Bonzini <bonzini@gnu.org>
* lightning/i386/asm-32.h: Avoid redefinition of _r1, reported by
Sam Steingold.
* lightning/i386/asm-64.h: Likewise.
2008-02-08 Paolo Bonzini <bonzini@gnu.org>
* lightning/i386/asm-i386.h: Don't define _VOID, reported

View file

@ -45,7 +45,10 @@
#include "asm-i386.h"
#if defined(_ASM_SAFETY)
#define _r1(R) ( ((R) & ~3) == _AL || ((R) & ~3) == _AH ? _rN(R) : JITFAIL( "8-bit register required"))
#endif
#define _rA(R) _r4(R)
/* Use RIP-addressing in 64-bit mode, if possible */

View file

@ -127,6 +127,7 @@
#define _R15 0x4F
#define _RIP -2
#if defined(_ASM_SAFETY)
#define _r1(R) ( ((unsigned) _rC((R) - 16)) < (0x30 - 16) ? _rN(R) : JITFAIL( "8-bit register required"))
#if 0
@ -134,6 +135,7 @@
#else
#define _r8(R) ( (_rC(R) == 0x50) ? _rN(R) : _r4(R))
#endif
#endif
#define _r1e8lP(R) ((int)(R) >= _SPL && (int)(R) <= _DIL)