optimization/9015: bc segfaults when compiled with optimization
Wolfgang Bangerth
bangerth@ticam.utexas.edu
Fri Jan 3 19:45:00 GMT 2003
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-bugs
mailing list