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]

[Bug rtl-optimization/28096] [4.2 regression] fdlibm/strtod.c miscompiled at -O2



------- Comment #19 from ebotcazou at gcc dot gnu dot org  2006-09-29 20:40 -------
> I don't think this bug has anything to do with excess precision.  Valgrind
> shows that, when compiled at -O2, we are reading from uninitialized memory.

Confirmed:

        andl    -144(%ebp), %ebx  <--- bogus value in %ebx
        movl    %eax, -144(%ebp)

Swap the lines and all works fine.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28096


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