This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/31933] Uninitialized memory when writing real(10) as unformatted
- From: "jb at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2007 08:50:01 -0000
- Subject: [Bug libfortran/31933] Uninitialized memory when writing real(10) as unformatted
- References: <bug-31933-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jb at gcc dot gnu dot org 2007-05-20 09:50 -------
(In reply to comment #3)
> I see. With that in mind, I think the patch for PR31915 that went in as r124741
> is incorrect (and I share some of the blame since I approved it). We should use
> the size argument the frontend provides to the unformatted_(read|write)
> functions instead of calling the size_from_real_kind function.
Actually, shouldn't there be another libgfortran which is used when compiling
with -m32? Sorry, I don't have a 64-bit box to test on. I have a hard time
imagining that the 64-bit libgfortran would be ABI-compatible with the 32-bit
one except for size_from_real_kind.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31933