This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13246] RFE: strtold: do not include uninitialized bytes when converting "NaN"
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 06 Oct 2011 09:56:33 +0000
- Subject: [Bug libc/13246] RFE: strtold: do not include uninitialized bytes when converting "NaN"
- Auto-submitted: auto-generated
- References: <bug-13246-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13246
--- Comment #10 from Jakub Jelinek <jakub at redhat dot com> 2011-10-06 09:56:33 UTC ---
Andreas is right, the value is returned in %st(0), which is an 80-bit hw
register.
So, as I said earlier, there is really nothing wrong on the strtold side.
The problem is when the compiler stores that %st(0) into memory. And you
really don't want to penalize all long double using code that on each memory
store
instead of using fstp (%rsp) there is fstp %(rsp); movw $0, 10(%rsp); movl $0,
12(%rsp);
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.