Commit a8ac57d3 by Richard Stallman

Include bytetypes.h.

(bc_emit_bytecode): Likewise.
(bc_emit_instruction) [! __GNUC__]: Don't really use bc-typecd.def.

From-SVN: r5422
parent a68c7608
...@@ -27,6 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -27,6 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "real.h" #include "real.h"
#include "obstack.h" #include "obstack.h"
#include "bytecode.h" #include "bytecode.h"
#include "bytetypes.h"
#include "bc-emit.h" #include "bc-emit.h"
#include "bc-opcode.h" #include "bc-opcode.h"
#include "bc-typecd.h" #include "bc-typecd.h"
...@@ -886,8 +887,8 @@ bc_emit_bytecode (bytecode) ...@@ -886,8 +887,8 @@ bc_emit_bytecode (bytecode)
max_stack_depth = stack_depth; max_stack_depth = stack_depth;
} }
#ifdef VALIDATE_STACK #ifdef VALIDATE_STACK_FOR_BC
VALIDATE_STACK (); VALIDATE_STACK_FOR_BC ();
#endif #endif
} }
...@@ -924,10 +925,14 @@ bc_emit_instruction (va_alist) ...@@ -924,10 +925,14 @@ bc_emit_instruction (va_alist)
switch (arityvec[instruction].literals[nliteral]) switch (arityvec[instruction].literals[nliteral])
{ {
/* This conditional is a kludge, but it's necessary
because TYPE might be long long. */
#ifdef __GNUC__
/* Expand definitions into case statements */ /* Expand definitions into case statements */
#define DEFTYPECODE(CODE, NAME, MODE, TYPE) \ #define DEFTYPECODE(CODE, NAME, MODE, TYPE) \
case CODE: \ case CODE: \
{ TYPE temp = va_arg (arguments, TYPE); \ { \
TYPE temp = va_arg (arguments, TYPE); \
bc_emit_bytecode_const ((void *) &temp, sizeof temp); \ bc_emit_bytecode_const ((void *) &temp, sizeof temp); \
PRLIT (TYPE, &temp); } \ PRLIT (TYPE, &temp); } \
break; break;
...@@ -935,6 +940,7 @@ bc_emit_instruction (va_alist) ...@@ -935,6 +940,7 @@ bc_emit_instruction (va_alist)
#include "bc-typecd.def" #include "bc-typecd.def"
#undef DEFTYPECODE #undef DEFTYPECODE
#endif /* __GNUC__ */
default: default:
abort (); abort ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment