Merge the fix for bug#42213 up into 5.1-build:

Check for "stack overrun" doesn't work, server crashes
This commit is contained in:
Joerg Bruehe 2009-07-30 17:24:09 +02:00
commit 41dbf9b2e0

View file

@ -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;