------- Comment #26 from tkoenig at gcc dot gnu dot org  2005-12-13 21:11 
-------
Subject: Bug 23815

Author: tkoenig
Date: Tue Dec 13 21:11:23 2005
New Revision: 108483

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108483
Log:
2005-12-13  Thomas Koenig  <[EMAIL PROTECTED]>

        PR fortran/23815
        * io.c (top level):  Add convert to io_tag.
        (resolve_tag):  convert is GFC_STD_GNU.
        (match_open_element):  Add convert.
        (gfc_free_open):  Likewise.
        (gfc_resolve_open):  Likewise.
        (gfc_free_inquire):  Likewise.
        (match_inquire_element):  Likewise.
        * dump-parse-tree.c (gfc_show_code_node):  Add
        convet for open and inquire.
        gfortran.h: Add convert to gfc_open and gfc_inquire.
        * trans-io.c (gfc_trans_open):  Add convert.
        (gfc_trans_inquire):  Likewise.
        * ioparm.def:  Add convert to open and inquire.
        * gfortran.texi:  Document CONVERT.

2005-12-13  Thomas Koenig  <[EMAIL PROTECTED]>

        PR fortran/23815
        * io/file_pos.c (unformatted_backspace):  If flags.convert
        does not equal CONVERT_NATIVE, reverse the record marker.
        * io/open.c:  Add convert_opt[].
        (st_open):  If no convert option is given, set CONVERT_NATIVE.
        If CONVERT_BIG or CONVERT_LITTLE are given, set flags.convert to
        CONVERT_NATIVE or CONVERT_SWAP (depending on wether we have
        a big- or little-endian system).
        * io/transfer.c (unformatted_read):  Remove unused attribute
        from arguments.
        If we need to reverse
        bytes, break up large transfers into a loop.  Split complex
        numbers into its two parts.
        (unformatted_write):  Likewise.
        (us_read):  If flags.convert does not equal CONVERT_NATIVE,
        reverse the record marker.
        (next_record_w): Likewise.
        (reverse_memcpy):  New function.
        * io/inquire.c (inquire_via_unit):  Implement convert.
        * io/io.h (top level):  Add enum unit_convert.
        Add convert to st_parameter_open and st_parameter_inquire.
        Define IOPARM_OPEN_HAS_CONVERT and IOPARM_INQUIRE_HAS_CONVERT.
        Increase padding for st_parameter_dt.
        Declare reverse_memcpy().

2005-12-13  Thomas Koenig  <[EMAIL PROTECTED]>

        PR fortran/23815
        * gfortran.dg/unf_io_convert_1.f90:  New test.
        * gfortran.dg/unf_io_convert_2.f90:  New test.
        * gfortran.dg/unf_io_convert_3.f90:  New test.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unf_io_convert_1.f90
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unf_io_convert_2.f90
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unf_io_convert_3.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/dump-parse-tree.c
    branches/gcc-4_1-branch/gcc/fortran/gfortran.h
    branches/gcc-4_1-branch/gcc/fortran/gfortran.texi
    branches/gcc-4_1-branch/gcc/fortran/io.c
    branches/gcc-4_1-branch/gcc/fortran/ioparm.def
    branches/gcc-4_1-branch/gcc/fortran/trans-io.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/libgfortran/ChangeLog
    branches/gcc-4_1-branch/libgfortran/io/file_pos.c
    branches/gcc-4_1-branch/libgfortran/io/inquire.c
    branches/gcc-4_1-branch/libgfortran/io/io.h
    branches/gcc-4_1-branch/libgfortran/io/open.c
    branches/gcc-4_1-branch/libgfortran/io/transfer.c


-- 


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

Reply via email to