From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.comp.sysutils.autoconf.bugs,gmane.lisp.guile.bugs Subject: Re: bug in check for stack growth direction in _AC_LIBOBJ_ALLOCA Date: Sat, 18 Jun 2011 14:42:03 -0700 Organization: UCLA Computer Science Department Message-ID: <4DFD1BAB.40905@cs.ucla.edu> References: <87d3ic92sc.fsf@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308433366 9925 80.91.229.12 (18 Jun 2011 21:42:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2011 21:42:46 +0000 (UTC) Cc: bug-guile , bug-autoconf@gnu.org To: Andy Wingo Original-X-From: bug-autoconf-bounces+gnu-bug-autoconf=m.gmane.org@gnu.org Sat Jun 18 23:42:38 2011 Return-path: Envelope-to: gnu-bug-autoconf@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QY3Ho-0001hH-Dg for gnu-bug-autoconf@m.gmane.org; Sat, 18 Jun 2011 23:42:36 +0200 Original-Received: from localhost ([::1]:56911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QY3Hn-0006EX-GU for gnu-bug-autoconf@m.gmane.org; Sat, 18 Jun 2011 17:42:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QY3HX-0006EP-4N for bug-autoconf@gnu.org; Sat, 18 Jun 2011 17:42:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QY3HW-0005cN-5R for bug-autoconf@gnu.org; Sat, 18 Jun 2011 17:42:19 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:42937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QY3HW-0005bA-03; Sat, 18 Jun 2011 17:42:18 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 560D739E80F9; Sat, 18 Jun 2011 14:42:09 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id krHRNjQRZFyG; Sat, 18 Jun 2011 14:42:08 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 869F839E80E0; Sat, 18 Jun 2011 14:42:08 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 In-Reply-To: <87d3ic92sc.fsf@pobox.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: bug-autoconf@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for autoconf List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-autoconf-bounces+gnu-bug-autoconf=m.gmane.org@gnu.org Original-Sender: bug-autoconf-bounces+gnu-bug-autoconf=m.gmane.org@gnu.org Xref: news.gmane.org gmane.comp.sysutils.autoconf.bugs:7948 gmane.lisp.guile.bugs:5665 Archived-At: 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