From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs,gmane.comp.sysutils.autoconf.bugs Subject: Re: bug in check for stack growth direction in _AC_LIBOBJ_ALLOCA Date: Sun, 19 Jun 2011 21:03:45 +0200 Message-ID: <87k4chod7y.fsf@pobox.com> 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: quoted-printable X-Trace: dough.gmane.org 1308510280 29913 80.91.229.12 (19 Jun 2011 19:04:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Jun 2011 19:04:40 +0000 (UTC) Cc: bug-guile , bug-autoconf@gnu.org To: "Andrew W. Nosenko" Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Jun 19 21:04:36 2011 Return-path: Envelope-to: guile-bugs@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 1QYNIR-0000NN-Vh for guile-bugs@m.gmane.org; Sun, 19 Jun 2011 21:04:36 +0200 Original-Received: from localhost ([::1]:38353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYNIR-0006D7-4M for guile-bugs@m.gmane.org; Sun, 19 Jun 2011 15:04:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYNHp-00068v-6S for bug-guile@gnu.org; Sun, 19 Jun 2011 15:03:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYNHn-0007eY-Bq for bug-guile@gnu.org; Sun, 19 Jun 2011 15:03:56 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:47609 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYNHi-0007dN-V0; Sun, 19 Jun 2011 15:03:51 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id A289E5670; Sun, 19 Jun 2011 15:06:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=4bz4VJd51mIM 37RRAfsvb70RQGc=; b=PZlM3CZV3Jz30B0h11244ZO4d2EKEG4TVV8ay+nM3q9t 6cL58Hbgr+knhgc90bYKqHaMzixMumdKtbeG0VdI4txQB79ADgmDBRR60OyNxw0Q 1iIj+m74vH4i8ImIKcvwui0c1n4yHarIDcMU29VmJoloetHTU1fums2OVGkw3Zg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=RJvBDF +Mmz/tk5TVQxqK74Bt/HC8PO7MOJl8MfCVbH20fncI0uTPgUfYIYo6hEkwqJLLAv yHRw1VTxvQB5Q0fBvpDuEkz/Rb4yJMP9JAjaMQ3sn2wpdwkUKUzTMZHKvp+Lh5hF x/gQebrWJLFQU/mS3E5yI17/SLfZ4/ZGWsyl4= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 94253566F; Sun, 19 Jun 2011 15:06:01 -0400 (EDT) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id CD2C0566E; Sun, 19 Jun 2011 15:06:00 -0400 (EDT) In-Reply-To: (Andrew W. Nosenko's message of "Sat, 18 Jun 2011 23:25:42 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: 2C04D058-9AA7-11E0-8072-5875C023C68D-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5670 gmane.comp.sysutils.autoconf.bugs:7950 Archived-At: Hi, On Sat 18 Jun 2011 22:25, "Andrew W. Nosenko" = writes: > On Fri, Jun 17, 2011 at 13:21, Andy Wingo wrote: >> =C2=A0wingo@badger:/tmp$ cat foo.c >> =C2=A0int >> =C2=A0find_stack_direction () >> =C2=A0{ >> =C2=A0 =C2=A0static char *addr =3D 0; > > Try to rewrite this line as > volatile static char *addr =3D 0; > It should help. It didn't, unfortunately. This issue can be reproduced on a stock Debian unstable system with gcc-4.6, btw. >> I don't know what allows GCC to do this inlining. =C2=A0Could it be a GCC >> bug? =C2=A0Every time I think I have a GCC bug I'm wrong, though :) > > No. It indeed traceable. Just start from main() and you will have > full trace even with pen and paper. Apologies for the ignorant question, but what does "trace" mean? :) Regards, Andy --=20 http://wingolog.org/