From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13713 invoked by alias); 3 Jan 2003 19:46:06 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 13646 invoked by uid 71); 3 Jan 2003 19:46:04 -0000 Date: Fri, 03 Jan 2003 19:46:00 -0000 Message-ID: <20030103194604.13637.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: optimization/9015: bc segfaults when compiled with optimization Reply-To: Wolfgang Bangerth X-SW-Source: 2003-01/txt/msg00240.txt.bz2 List-Id: The following reply was made to PR optimization/9015; it has been noted by GNATS. From: Wolfgang Bangerth To: Patrick Smith Cc: gcc-bugs@gcc.gnu.org, Subject: Re: optimization/9015: bc segfaults when compiled with optimization Date: Fri, 3 Jan 2003 13:45:35 -0600 (CST) On Tue, 24 Dec 2002, Patrick Smith wrote: > Found it. > > This turns out to be a bug in GNU bc. As luck would have it, it only > seems to cause damage when compiled with optimization on and a recent > gcc. :-( > > Sorry to have bothered you. No need to apologize. Rather: Thanks for looking into this, as otherwise one of us would have to do the work. > (In case you're interested... load_code saves data in a local variable > on one call, and then tries to retrieve that data on a subsequent call.) I assume that the variable is not static, right? Regards Wolfgang PS: Don't forget to send a patch (or some other indication of the problem) to the bc people. ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth