public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31917]  New: GFORTRAN_CONVERT_UNIT is ignored
@ 2007-05-14  7:04 burnus at gcc dot gnu dot org
  2007-05-14  7:52 ` [Bug fortran/31917] " dominiq at lps dot ens dot fr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-14  7:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/onlinedocs/gfortran/GFORTRAN_005fCONVERT_005fUNIT.html

Result (on x86_64/Linux):

GFORTRAN_CONVERT_UNIT set to ""
default:"LITTLE_ENDIAN"
native:"LITTLE_ENDIAN"
swap:"BIG_ENDIAN"
little_endian:"LITTLE_ENDIAN"
big_endian:"BIG_ENDIAN"

GFORTRAN_CONVERT_UNIT set to "BIG_ENDIAN"  ! same with "big_endian"
default:"LITTLE_ENDIAN"
native:"LITTLE_ENDIAN"
swap:"BIG_ENDIAN"
little_endian:"LITTLE_ENDIAN"
big_endian:"BIG_ENDIAN"


Test program

program conv
  implicit none
  character(20) :: ch
  CALL GET_ENVIRONMENT_VARIABLE('GFORTRAN_CONVERT_UNIT', ch)
  print '(3a)', 'GFORTRAN_CONVERT_UNIT set to "',trim(ch),'"'
  open(11,form='unformatted'); inquire(11,convert=ch)
  print '(3a)', 'default:"',trim(ch),'"'; close(11,status='delete')
  open(12,form='unformatted',convert="native")
  inquire(12,convert=ch)
  print '(3a)', 'native:"',trim(ch),'"'; close(12,status='delete')
  open(13,form='unformatted',convert="swap")
  inquire(13,convert=ch)
  print '(3a)', 'swap:"',trim(ch),'"'; close(13,status='delete')
  open(14,form='unformatted',convert="little_endian")
  inquire(14,convert=ch)
  print '(3a)', 'little_endian:"',trim(ch),'"'; close(14,status='delete')
  open(15,form='unformatted',convert="big_endian")
  inquire(15,convert=ch)
  print '(3a)', 'big_endian:"',trim(ch),'"'; close(15,status='delete')
end program conv


-- 
           Summary: GFORTRAN_CONVERT_UNIT is ignored
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-05-23  7:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-14  7:04 [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored burnus at gcc dot gnu dot org
2007-05-14  7:52 ` [Bug fortran/31917] " dominiq at lps dot ens dot fr
2007-05-14  8:38 ` burnus at gcc dot gnu dot org
2007-05-14 19:07 ` patchapp at dberlin dot org
2007-05-14 19:09 ` burnus at gcc dot gnu dot org
2007-05-17  8:39 ` burnus at gcc dot gnu dot org
2007-05-22 20:04 ` [Bug fortran/31917] [4.2, 4.1 only] " tkoenig at gcc dot gnu dot org
2007-05-23  7:44 ` [Bug fortran/31917] [4.1 " burnus at gcc dot gnu dot org
2007-05-23  7:45 ` burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).