mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
univ.i:
Do not use __builtin_expect etc. with the Intel ICC compiler, as the compiler crashed in btr0cur.c; the patch was submitted by Axel Schwenke (Bug #11510)
This commit is contained in:
parent
a55786ca70
commit
de8058630d
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ contains the sum of the following flag and the locally stored len. */
|
|||
#define UNIV_EXTERN_STORAGE_FIELD (UNIV_SQL_NULL - UNIV_PAGE_SIZE)
|
||||
|
||||
/* Some macros to improve branch prediction and reduce cache misses */
|
||||
#if defined(__GNUC__) && (__GNUC__ > 2)
|
||||
#if defined(__GNUC__) && (__GNUC__ > 2) && ! defined(__INTEL_COMPILER)
|
||||
/* Tell the compiler that 'expr' probably evaluates to 'constant'. */
|
||||
# define UNIV_EXPECT(expr,constant) __builtin_expect(expr, constant)
|
||||
/* Tell the compiler that a pointer is likely to be NULL */
|
||||
|
|
Loading…
Reference in a new issue