|
From: | Andy Wingo |
Subject: | Re: bug in check for stack growth direction in _AC_LIBOBJ_ALLOCA |
Date: | Sun, 19 Jun 2011 21:01:51 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Sat 18 Jun 2011 23:42, Paul Eggert <address@hidden> writes: > Does it work to use the following test program instead? > > int > find_stack_direction (char *addr) > { > char dummy; > return (! addr ? find_stack_direction (&dummy) > : addr < &dummy ? 1 : -1); > } > > int > main (void) > { > return find_stack_direction (0) < 0; > } No, this program also exhibits the same incorrect behavior, for purposes of stack growth checking. Andy -- http://wingolog.org/
[Prev in Thread] | Current Thread | [Next in Thread] |