mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Fix incorrect assembler in Taocrypt which causes crashes on i386 with certain GCC versions/options
This commit is contained in:
parent
1f2f353cd6
commit
5e366d063d
1 changed files with 6 additions and 2 deletions
|
@ -136,9 +136,13 @@ void CleanUp();
|
|||
|
||||
// Turn on ia32 ASM for Big Integer
|
||||
// CodeWarrior defines _MSC_VER
|
||||
//
|
||||
// Do not use assembler with GCC, as the implementation for it is broken;
|
||||
// it does not use proper GCC asm contraints and makes assumptions about
|
||||
// frame pointers and so on, which breaks depending on GCC version and
|
||||
// optimization level.
|
||||
#if !defined(TAOCRYPT_DISABLE_X86ASM) && ((defined(_MSC_VER) && \
|
||||
!defined(__MWERKS__) && defined(_M_IX86)) || \
|
||||
(defined(__GNUC__) && defined(__i386__)))
|
||||
!defined(__MWERKS__) && defined(_M_IX86)))
|
||||
#define TAOCRYPT_X86ASM_AVAILABLE
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue