This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]