[patch, fortran] PR35420, PR36421, PR35422 g0, gw.d, and a0 format descriptors
Jerry DeLisle
jvdelisle@verizon.net
Sat Jun 7 19:07:00 GMT 2008
Hi,
This patch resolves these PRs and is fairly self explanatory. It adds the new
F2008 g0 feature. I will update the doc files after I get this patch in. My
tree is getting cluttered and that makes me nervous.
Regression tested on x86-64. Three new test cases provided.
OK for commit?
Jerry
2008-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/36420, 36422
* io.c (check_format): Add new error message for zero width. Use new
error message for FMT_A and with READ, FMT_G. Allow FMT_G with WRITE
except when -std=F95 and -std=F2003.
2008-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/36420, 36421, 36422
* io.h: Add prototype for write_real.
* transfer.c (formatted_transfer_scalar): For FMT_G and width zero, use
write_real.
* format.c: Add zero width error message. (parse_format_list): Use error
message for FMT_A if followed by FMT_ZERO. Use zero width error message
for FMT_G if mode is READ or if -std=f95 or f2003. (fmormat0): Fix type
in comment.
* write.c (write_a): Set wlen to len if FMT_G and length is zero.
(write_l): Add wlen variable and use it if FMT_G and width is zero.
(write_decimal): If FMT_G, set m to -1 to flag processor dependent
formatting. (write_real): Remove static declaration.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr36421.diff
Type: text/x-patch
Size: 5709 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080607/bcb5b073/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fmt_g0_1.f08
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080607/bcb5b073/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fmt_g0_2.f08
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080607/bcb5b073/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fmt_g0_3.f08
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080607/bcb5b073/attachment-0002.ksh>
More information about the Gcc-patches
mailing list