This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/28096] [4.2 regression] fdlibm/strtod.c miscompiled at -O2
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Sep 2006 20:40:47 -0000
- Subject: [Bug rtl-optimization/28096] [4.2 regression] fdlibm/strtod.c miscompiled at -O2
- References: <bug-28096-12856@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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