optimization/9015: bc segfaults when compiled with optimization
Wolfgang Bangerth
bangerth@ticam.utexas.edu
Fri Jan 3 19:46:00 GMT 2003
The following reply was made to PR optimization/9015; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: Patrick Smith <patsmith@pobox.com>
Cc: gcc-bugs@gcc.gnu.org, <gcc-gnats@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
More information about the Gcc-prs
mailing list