diff options
author | Joerg Bruehe <joerg@mysql.com> | 2009-07-30 17:24:09 +0200 |
---|---|---|
committer | Joerg Bruehe <joerg@mysql.com> | 2009-07-30 17:24:09 +0200 |
commit | 41dbf9b2e0f28c5c6d2f5536ebd96ea90041bda3 (patch) | |
tree | a8a26728e1cd93473db803013a7fde5750a83466 /config | |
parent | e76591884f9a5eaca554edece6e8ee989e84e4ce (diff) | |
parent | 52c95d0ccfef7f897bd79ee4b48da5ec752c70c2 (diff) | |
download | mariadb-git-41dbf9b2e0f28c5c6d2f5536ebd96ea90041bda3.tar.gz |
Merge the fix for bug#42213 up into 5.1-build:
Check for "stack overrun" doesn't work, server crashes
Diffstat (limited to 'config')
-rw-r--r-- | config/ac-macros/misc.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/ac-macros/misc.m4 b/config/ac-macros/misc.m4 index 2e62a4b3c88..1eec0e9e18c 100644 --- a/config/ac-macros/misc.m4 +++ b/config/ac-macros/misc.m4 @@ -456,6 +456,10 @@ fi AC_DEFUN([MYSQL_STACK_DIRECTION], [AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction, [AC_TRY_RUN([#include <stdlib.h> + /* Prevent compiler optimization by HP's compiler, see bug#42213 */ +#if defined(__HP_cc) || defined (__HP_aCC) || defined (__hpux) +#pragma noinline +#endif int find_stack_direction () { static char *addr = 0; |