Extend PCRE's JIT support to PPC (__GNUC__ compilers only)

Change-Id: I983ca42b2e3038e7cc4d1a383d3b09f89024a31f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
bb10
Giuseppe D'Angelo 2014-04-18 14:02:43 +02:00 committed by The Qt Project
parent 2bde54970f
commit ceab0eb021
1 changed files with 8 additions and 2 deletions

View File

@ -16,10 +16,11 @@
/*
man 3 pcrejit for a list of supported platforms;
as PCRE 8.30, stable JIT support is available for:
as PCRE 8.35, stable JIT support is available for:
- ARM v5, v7, and Thumb2 (__GNUC__ compilers only)
- x86/x86-64
- MIPS 32bit (__GNUC__ compilers only)
- Power PC 32-bit and 64-bit (__GNUC__ compilers only)
*/
#if !defined(PCRE_DISABLE_JIT) && (\
/* ARM */ \
@ -30,6 +31,11 @@
/* MIPS32 */ \
|| (defined(__GNUC__) \
&& (defined(__mips) || defined(__mips__)) \
&& !(defined(_MIPS_ARCH_MIPS64) || defined(__mips64))))
&& !(defined(_MIPS_ARCH_MIPS64) || defined(__mips64))) \
|| (defined(__GNUC__) \
&& (defined(__ppc__) || defined(__ppc) || defined(__powerpc__) \
|| defined(_ARCH_COM) || defined(_ARCH_PWR) || defined(_ARCH_PPC) \
|| defined(_M_MPPC) || defined(_M_PPC))) \
)
# define SUPPORT_JIT
#endif