From: Paul Eggert <eggert@cs.ucla.edu>
To: Andy Wingo <wingo@pobox.com>
Cc: bug-guile <bug-guile@gnu.org>, bug-autoconf@gnu.org
Subject: Re: bug in check for stack growth direction in _AC_LIBOBJ_ALLOCA
Date: Sat, 18 Jun 2011 14:42:03 -0700 [thread overview]
Message-ID: <4DFD1BAB.40905@cs.ucla.edu> (raw)
In-Reply-To: <87d3ic92sc.fsf@pobox.com>
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
next prev parent reply other threads:[~2011-06-18 21:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-17 10:21 bug in check for stack growth direction in _AC_LIBOBJ_ALLOCA Andy Wingo
2011-06-18 20:25 ` Andrew W. Nosenko
2011-06-19 19:03 ` Andy Wingo
2011-06-20 8:25 ` Andrew W. Nosenko
2011-06-20 10:24 ` Andrew W. Nosenko
2011-06-18 21:42 ` Paul Eggert [this message]
2011-06-19 19:01 ` Andy Wingo
2011-06-20 5:35 ` Paul Eggert
2011-06-20 6:35 ` Ralf Wildenhues
2011-06-20 6:50 ` Paul Eggert
2011-06-20 8:18 ` Andrew W. Nosenko
2011-06-20 8:01 ` Andy Wingo
2011-06-20 17:54 ` Eric Blake
2011-06-20 22:19 ` Paul Eggert
2011-06-21 19:43 ` Ralf Wildenhues
2011-06-21 20:08 ` Paul Eggert
2011-06-20 17:56 ` Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DFD1BAB.40905@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=bug-autoconf@gnu.org \
--cc=bug-guile@gnu.org \
--cc=wingo@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).