diff options
author | Joerg Bruehe <joerg@mysql.com> | 2009-07-30 17:03:54 +0200 |
---|---|---|
committer | Joerg Bruehe <joerg@mysql.com> | 2009-07-30 17:03:54 +0200 |
commit | 52c95d0ccfef7f897bd79ee4b48da5ec752c70c2 (patch) | |
tree | af7dd8d9e250cada3e85659f6892b101174c1003 | |
parent | f73eac9e7b653cafb112dedce02967b34b70827b (diff) | |
parent | 60021617bdc377b58d03f42f7366362ac02eeb7d (diff) | |
download | mariadb-git-52c95d0ccfef7f897bd79ee4b48da5ec752c70c2.tar.gz |
Merge the fix for bug#42213 into 5.0-build.
-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 aef1eeaf935..9e575862848 100644 --- a/config/ac-macros/misc.m4 +++ b/config/ac-macros/misc.m4 @@ -583,6 +583,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; |