summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bruehe <joerg@mysql.com>2009-07-30 17:03:54 +0200
committerJoerg Bruehe <joerg@mysql.com>2009-07-30 17:03:54 +0200
commit52c95d0ccfef7f897bd79ee4b48da5ec752c70c2 (patch)
treeaf7dd8d9e250cada3e85659f6892b101174c1003
parentf73eac9e7b653cafb112dedce02967b34b70827b (diff)
parent60021617bdc377b58d03f42f7366362ac02eeb7d (diff)
downloadmariadb-git-52c95d0ccfef7f897bd79ee4b48da5ec752c70c2.tar.gz
Merge the fix for bug#42213 into 5.0-build.
-rw-r--r--config/ac-macros/misc.m44
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;