Branch: Tag:

2005-06-01

2005-06-01 15:14:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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

Rev: src/configure.in:1.885

1: - 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:    # 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:    # 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:    # 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:   [    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:    }   }    - 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    ], [