gcc/libgfortran/io
Janne Blomqvist 88a8126a90 fortran/89100: Default widths with -fdec-format-defaults
gcc/fortran ChangeLog:

2019-05-22  Jeff Law  <law@redhat.com>
            Mark Eggleston  <mark.eggleston@codethink.com>

        PR fortran/89100
        * gfortran.texi: Add Default widths for F, G and I format
        descriptors to Extensions section.
        * invoke.texi: Add -fdec-format-defaults
        * io.c (check_format): Use default widths for i, f and g when
        flag_dec_format_defaults is enabled.
        * lang.opt: Add new option.
        * options.c (set_dec_flags): Add SET_BITFLAG for
        flag_dec_format_defaults.


gcc/testsuite ChangeLog:

2019-05-22  Mark Eggleston  <mark.eggleston@codethink.com>

        PR fortran/89100
        * gfortran.dg/fmt_f_default_field_width_1.f90: New test.
        * gfortran.dg/fmt_f_default_field_width_2.f90: New test.
        * gfortran.dg/fmt_f_default_field_width_3.f90: New test.
        * gfortran.dg/fmt_g_default_field_width_1.f90: New test.
        * gfortran.dg/fmt_g_default_field_width_2.f90: New test.
        * gfortran.dg/fmt_g_default_field_width_3.f90: New test.
        * gfortran.dg/fmt_i_default_field_width_1.f90: New test.
        * gfortran.dg/fmt_i_default_field_width_2.f90: New test.
        * gfortran.dg/fmt_i_default_field_width_3.f90: New test.


libgfortran ChangeLog:

2019-05-22  Jeff Law  <law@redhat.com>

        PR fortran/89100
        * io/format.c (parse_format_list): set default width when the
        IOPARM_DT_DEC_EXT flag is set for i, f and g.
        * io/io.h: add default_width_for_integer, default_width_for_float
        and default_precision_for_float.
        * io/write.c (write_boz): extra parameter giving length of data
        corresponding to the type's kind.
        (write_b): pass data length as extra parameter in calls to
        write_boz.
        (write_o): pass data length as extra parameter in calls to
        write_boz.
        (write_z): pass data length as extra parameter in calls to
        write_boz.
        (size_from_kind): also set size is default width is set.
        * io/write_float.def (build_float_string): new paramter inserted
        before result parameter. If default width use values passed
        instead of the values in fnode.
        (FORMAT_FLOAT): macro modified to check for default width and
        calls to build_float_string to pass in default width.
        (get_float_string): set width and precision to defaults when
        needed.

From-SVN: r271511
2019-05-22 14:56:01 +03:00
..
async.c libgfortran: Use proper gthr.h API 2019-01-28 06:35:41 +00:00
async.h Update copyright years. 2019-01-01 13:31:55 +01:00
close.c re PR libfortran/89020 (close(status='DELETE') does not remove file) 2019-01-27 19:42:34 +00:00
fbuf.c Update copyright years. 2019-01-01 13:31:55 +01:00
fbuf.h Update copyright years. 2019-01-01 13:31:55 +01:00
file_pos.c Update copyright years. 2019-01-01 13:31:55 +01:00
format.c fortran/89100: Default widths with -fdec-format-defaults 2019-05-22 14:56:01 +03:00
format.h Update copyright years. 2019-01-01 13:31:55 +01:00
inquire.c Update copyright years. 2019-01-01 13:31:55 +01:00
intrinsics.c Update copyright years. 2019-01-01 13:31:55 +01:00
io.h fortran/89100: Default widths with -fdec-format-defaults 2019-05-22 14:56:01 +03:00
list_read.c re PR libfortran/88776 (Namelist read from stdin: loss of data) 2019-01-12 23:06:47 +00:00
lock.c Update copyright years. 2019-01-01 13:31:55 +01:00
open.c Allow opening file on multiple units 2019-05-15 21:02:36 +03:00
read.c fortran/89100: Default widths with -fdec-format-defaults 2019-05-22 14:56:01 +03:00
size_from_kind.c Update copyright years. 2019-01-01 13:31:55 +01:00
transfer128.c Update copyright years. 2019-01-01 13:31:55 +01:00
transfer.c transfer.c (transfer_array_inner): Do not cast charlen to index_type. 2019-02-26 19:41:53 +01:00
unit.c PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
unix.c Update copyright years. 2019-01-01 13:31:55 +01:00
unix.h Update copyright years. 2019-01-01 13:31:55 +01:00
write_float.def fortran/89100: Default widths with -fdec-format-defaults 2019-05-22 14:56:01 +03:00
write.c fortran/89100: Default widths with -fdec-format-defaults 2019-05-22 14:56:01 +03:00