Avoid using the dispatch table in the interpreter when compiling with GCC on Solaris, so that no spurious relocation tables are created.

This commit is contained in:
Juan Jose Garcia Ripoll 2010-11-06 00:04:47 +01:00
parent 1cca2ccf06
commit ab72d1285d

View file

@ -146,8 +146,11 @@ typedef int16_t cl_oparg;
* saves a range check on the opcode size and (ii) each opcode has a
* dispatch instruction at the end, so that the processor may better
* predict jumps.
*
* NOTE: We cannot use this in Solaris because GCC erroneously produces
* relocation tables.
*/
#if (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#if (defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(__sun__))
#define ECL_THREADED_INTERPRETER
#endif