egcs 1.1.2 C++ bug: stack corruption with "pow" and "-O2"

Alexandre Oliva oliva@dcc.unicamp.br
Wed Jun 30 23:07:00 GMT 1999


On Jun 28, 1999, "Matthew D. Langston" <langston@SLAC.Stanford.EDU> wrote:

> I have found that g++ from egcs 1.1.2 produces bad assembly code when
> the "pow" function from glibc 2.1 is inlined (via the "-O2" optimization
> flag) in the same stack frame as a trivial C++ object which has a user
> defined default constructor and copy constructor.

Thanks, fixed in the latest pre-gcc-2.95 snapshot.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists



More information about the Gcc-bugs mailing list