Skip to content
Snippets Groups Projects
Commit 637eb292 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Made stack direction test more paranoid (needed for gcc 3.4.4/ia64).

Rev: src/configure.in:1.885
parent 87a798cd
No related branches found
No related tags found
No related merge requests found
AC_REVISION("$Id: configure.in,v 1.884 2005/05/31 16:39:22 grubba Exp $")
AC_REVISION("$Id: configure.in,v 1.885 2005/06/01 15:14:31 grubba Exp $")
AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h)
......@@ -2261,7 +2261,7 @@ if test "x$PIKE_PATH_TRANSLATE" = "x"; then
# MinGW system.
cat <<\EOF
#!/bin/sh
# Automatically generated by $Id: configure.in,v 1.884 2005/05/31 16:39:22 grubba Exp $.
# Automatically generated by $Id: configure.in,v 1.885 2005/06/01 15:14:31 grubba Exp $.
# MinGW-version. Do NOT edit.
posix_name="`cat`"
posix_prefix="/"
......@@ -2299,7 +2299,7 @@ EOF
# Native POSIX system.
cat <<\EOF
#!/bin/sh
# Automatically generated by $Id: configure.in,v 1.884 2005/05/31 16:39:22 grubba Exp $.
# Automatically generated by $Id: configure.in,v 1.885 2005/06/01 15:14:31 grubba Exp $.
# POSIX-version. Do NOT edit.
cat
EOF
......@@ -2308,7 +2308,7 @@ else
# rntcl-style
cat <<\EOF
#!/bin/sh
# Automatically generated by $Id: configure.in,v 1.884 2005/05/31 16:39:22 grubba Exp $.
# Automatically generated by $Id: configure.in,v 1.885 2005/06/01 15:14:31 grubba Exp $.
# RNTCL-version. Do NOT edit.
sed -e "$PIKE_PATH_TRANSLATE"
EOF
......@@ -4690,8 +4690,9 @@ AC_CACHE_VAL(pike_cv_hardware_stack_direction,
[
AC_TRY_RUN([
#include <stdio.h>
static int find_stack_direction(void *foo)
static int find_stack_direction(void *foo, int cnt)
{
if (cnt) return 1*find_stack_direction(foo, cnt>>1);
if (((void *)&foo) > foo) {
return 1;
} else {
......@@ -4699,7 +4700,7 @@ static int find_stack_direction(void *foo)
}
}
int main() { void *bar; exit( find_stack_direction(&bar) > 0); }
int main() { void *bar; exit( find_stack_direction(&bar, 0x10) > 0); }
], [ pike_cv_hardware_stack_direction=down
], [ pike_cv_hardware_stack_direction=up
], [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment