On Sat 18 Jun 2011 23:42, Paul Eggert <egg...@cs.ucla.edu> 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/

Reply via email to