bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in check for stack growth direction in _AC_LIBOBJ_ALLOCA


From: Paul Eggert
Subject: Re: bug in check for stack growth direction in _AC_LIBOBJ_ALLOCA
Date: Sat, 18 Jun 2011 14:42:03 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10

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

This, essentially, is the fix I just pushed into the GNU
autoconf trunk, here:

http://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=b1747413a80add0271d6909aecfdc2b638456257



reply via email to

[Prev in Thread] Current Thread [Next in Thread]