Branch: Tag:

2002-04-07

2002-04-07 22:24:34 by Martin Stjernholm <mast@lysator.liu.se>

Moved the architecture tests for the bytecode method from pikecode.h to
configure.in.

Rev: src/pikecode.c:1.4

1:   /* -  * $Id: pikecode.c,v 1.3 2001/07/26 21:04:13 marcus Exp $ +  * $Id: pikecode.c,v 1.4 2002/04/07 22:24:34 mast Exp $    *    * Generic strap for the code-generator.    *
16:      #include "pikecode.h"    - #ifdef PIKE_USE_MACHINE_CODE - #if defined(__i386__) || defined(__i386) + #if PIKE_BYTECODE_METHOD == PIKE_BYTECODE_IA32   #include "code/ia32.c" - #elif defined(sparc) || defined(__sparc__) || defined(__sparc) + #elif PIKE_BYTECODE_METHOD == PIKE_BYTECODE_SPARC   #include "code/sparc.c" - #elif defined(__ppc__) || defined(_POWER) + #elif PIKE_BYTECODE_METHOD == PIKE_BYTECODE_PPC32   #include "code/ppc32.c" - #else /* Unsupported cpu */ - #error Unknown CPU - #endif /* CPU type */ - #elif defined(HAVE_COMPUTED_GOTO) + #elif PIKE_BYTECODE_METHOD == PIKE_BYTECODE_GOTO   #include "code/computedgoto.c" - #else /* Default */ + #else   #include "code/bytecode.c" - #endif /* Interpreter type. */ + #endif