]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libfortran/35862 ([F2003] Implement new rounding modes for run time)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 29 Sep 2009 02:47:54 +0000 (02:47 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 29 Sep 2009 02:47:54 +0000 (02:47 +0000)
commit379924dd5991228b5e65fac5815ecac0d389a786
treeb230ba0e2e2c68e0265fe9335396a5deeeb603e0
parentf2a71504e00cb7785bdc78b12da8d1608762f6cc
re PR libfortran/35862 ([F2003] Implement new rounding modes for run time)

2009-09-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/35862
* io.h (gfc_unit): Add round_status.
(format_token): Add enumerators for rounding format specifiers.
* transfer.c (round_opt): New options table.
(formatted_transfer_scalar_read): Add set round_status for each rounding
format token. (formatted_transfer_scalar_write): Likewise.
* format.c (format_lex): Tokenize the rounding format specifiers.
(parse_format_list): Parse the rounding format specifiers.
* write_float.def (outout_float): Modify rounding code to use new
variable rchar to set the appropriate rounding. Fix some whitespace.
* unit.c (get_internal_unit): Initialize rounding mode for internal
units. (init_units): Likewise.

From-SVN: r152263
libgfortran/ChangeLog
libgfortran/io/format.c
libgfortran/io/io.h
libgfortran/io/transfer.c
libgfortran/io/unit.c
libgfortran/io/write_float.def