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 libfortran/31915] Failure with unf_io_convert_3.f90



------- Comment #1 from burnus at gcc dot gnu dot org  2007-05-14 07:51 -------
Same here, native and little_endian work, but big_endian/swap produces the
wrong number (here: NaN). It also works if one does not use real(10) but
real(8)

If I run the created program through valgrind:
==26772== Syscall param write(buf) points to uninitialised byte(s)
==26772==    at 0x55FB550: write (in /lib64/libc-2.5.so)
==26772==    by 0x4EBB760: do_write (unix.c:300)
==26772==    by 0x4EBB7DD: fd_flush (unix.c:359)
==26772==    by 0x4EB01DF: _gfortran_st_backspace (file_pos.c:226)
==26772==    by 0x400B36: MAIN__ (pr31915.f90:9)
==26772==    by 0x400E4D: main (fmain.c:18)
==26772==  Address 0x4051781 is 153 bytes inside a block of size 8,344 alloc'd
==26772==    at 0x4C22D06: malloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==26772==    by 0x4E3DCB8: _gfortrani_get_mem (memory.c:53)
==26772==    by 0x4EBB9C9: fd_to_stream (unix.c:1012)
==26772==    by 0x4EBC72F: _gfortrani_open_external (unix.c:1289)
==26772==    by 0x4EB56F7: _gfortrani_new_unit (open.c:374)
==26772==    by 0x4EB5E59: _gfortran_st_open (open.c:531)
==26772==    by 0x400AAB: MAIN__ (pr31915.f90:7)
==26772==    by 0x400E4D: main (fmain.c:18)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |wrong-code
      Known to fail|                            |4.3.0 4.2.0 4.1.2
   Last reconfirmed|0000-00-00 00:00:00         |2007-05-14 07:51:03
               date|                            |


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


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