[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-12-02 Thread mark.eggleston at codethink dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

MarkEggleston  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #14 from MarkEggleston  ---
Committed 22nd May 2019

https://gcc.gnu.org/viewcvs/gcc?view=revision=271511

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-06-07 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

--- Comment #13 from Jerry DeLisle  ---
Author: jvdelisle
Date: Fri Jun  7 14:25:39 2019
New Revision: 272046

URL: https://gcc.gnu.org/viewcvs?rev=272046=gcc=rev
Log:
2019-06-07  Mark Eggleston 

PR fortran/89100
* gfortran.dg/fmt_f_default_field_width_3.f90: Modify dg-error
to allow use when kind=16 is not supported.
* gfortran.dg/fmt_g_default_field_width_3.f90: Modify dg-error
to allow use when kind=16 is not supported.

Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90
trunk/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-05-22 Thread jb at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

--- Comment #12 from Janne Blomqvist  ---
Author: jb
Date: Wed May 22 11:56:01 2019
New Revision: 271511

URL: https://gcc.gnu.org/viewcvs?rev=271511=gcc=rev
Log:
fortran/89100: Default widths with -fdec-format-defaults

gcc/fortran ChangeLog:

2019-05-22  Jeff Law  
Mark Eggleston  

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  

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  

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.


Added:
trunk/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_1.f90
trunk/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_2.f90
trunk/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90
trunk/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_1.f90
trunk/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_2.f90
trunk/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90
trunk/gcc/testsuite/gfortran.dg/fmt_i_default_field_width_1.f90
trunk/gcc/testsuite/gfortran.dg/fmt_i_default_field_width_2.f90
trunk/gcc/testsuite/gfortran.dg/fmt_i_default_field_width_3.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/gfortran.texi
trunk/gcc/fortran/invoke.texi
trunk/gcc/fortran/io.c
trunk/gcc/fortran/lang.opt
trunk/gcc/fortran/options.c
trunk/gcc/testsuite/ChangeLog
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/format.c
trunk/libgfortran/io/io.h
trunk/libgfortran/io/read.c
trunk/libgfortran/io/write.c
trunk/libgfortran/io/write_float.def

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-02-13 Thread mark.eggleston at codethink dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

MarkEggleston  changed:

   What|Removed |Added

  Attachment #45550|0   |1
is obsolete||

--- Comment #11 from MarkEggleston  ---
Created attachment 45697
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45697=edit
Change Log for libgfortran for patch

Add PR fortran/89100 to log.

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-02-13 Thread mark.eggleston at codethink dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

--- Comment #10 from MarkEggleston  ---
Created attachment 45696
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45696=edit
Change Log for gcc/testsuite for patch

Replace -fdec-format-defaults with PR fortran/89100.

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-02-13 Thread mark.eggleston at codethink dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

MarkEggleston  changed:

   What|Removed |Added

  Attachment #45603|0   |1
is obsolete||

--- Comment #9 from MarkEggleston  ---
Created attachment 45695
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45695=edit
Change log for gcc/fortran for patch

Updated to include changes in documentation

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-02-13 Thread mark.eggleston at codethink dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

MarkEggleston  changed:

   What|Removed |Added

  Attachment #45548|0   |1
is obsolete||

--- Comment #8 from MarkEggleston  ---
Created attachment 45694
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45694=edit
Patch to support default widths for f, g and i

Patch updated to incorporate documentation changes.

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-02-13 Thread mark.eggleston at codethink dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

--- Comment #7 from MarkEggleston  ---
Created attachment 45693
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45693=edit
Update to option and Extension documentation

Documentation changes in their own difference file so that they can be checked
independently of the patch.

Patch will be update to incorporate the changes.

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-02-05 Thread mark.eggleston at codethink dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

MarkEggleston  changed:

   What|Removed |Added

  Attachment #45549|0   |1
is obsolete||

--- Comment #6 from MarkEggleston  ---
Created attachment 45603
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45603=edit
Updated change log for gcc/fortran for patch

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-02-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #5 from Jakub Jelinek  ---
Small ChangeLog formatting nits:
1) no gcc/fortran/ prefixes in gcc/fortran/ChangeLog
2) after colon and space there should be always a capital letter, not lowercase

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-01-29 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

kargl at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P4
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-01-29
 CC||kargl at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #4 from kargl at gcc dot gnu.org ---
The patch was discussed in the fortran@ list.  One can
find history here: https://gcc.gnu.org/ml/fortran/2019-01/msg00175.html

Patch is OK to commit when gcc 10 stage 1 opens.

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-01-29 Thread mark.eggleston at codethink dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

--- Comment #3 from MarkEggleston  ---
Created attachment 45551
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45551=edit
Change Log for testsuite for patch

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-01-29 Thread mark.eggleston at codethink dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

--- Comment #2 from MarkEggleston  ---
Created attachment 45550
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45550=edit
Change Log for libgfortran for patch

[Bug fortran/89100] Default widths for i, f and g format specifiers in format strings

2019-01-29 Thread mark.eggleston at codethink dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100

--- Comment #1 from MarkEggleston  ---
Created attachment 45549
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45549=edit
Change log for gcc/fortran for patch