This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/9015: bc segfaults when compiled with optimization
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: Patrick Smith <patsmith at pobox dot com>
- Cc: gcc-bugs at gcc dot gnu dot org, <gcc-gnats at gcc dot gnu dot org>
- Date: Fri, 3 Jan 2003 13:45:35 -0600 (CST)
- Subject: Re: optimization/9015: bc segfaults when compiled with optimization
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