aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/unix.h
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2010-07-19 13:11:54 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2010-07-19 13:11:54 +0000
commit746e63273fa818385bee5ac91e0965d785015969 (patch)
treeeec8aba9ca8a253c9df3df6becb0502fbf9138c3 /libgfortran/io/unix.h
parentd555b1c77dd2eaf14475a83df44f6c891b5e1d01 (diff)
downloadgcc-746e63273fa818385bee5ac91e0965d785015969.zip
gcc-746e63273fa818385bee5ac91e0965d785015969.tar.gz
gcc-746e63273fa818385bee5ac91e0965d785015969.tar.bz2
re PR fortran/44953 (FAIL: gfortran.dg/char4_iunit_1.f03 * execution test)
2010-07-19 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/44953 * io/unix.c (mem_alloc_w4): Return gfc_char4_t instead of char type pointer. (mem_write4): Remove cast to gfc_char4_t. * io/transfer.c (write_block): Use a gfc_char4_t pointer. (memset4): New helper function. (next_record_w): Use new helper function rather than sset for internal units. Don't attempt to pad with spaces if it is not needed. * io/unix.h: Update prototype for mem_alloc_w4. * io/write.c (memset4): Use gfc_char4_t pointer and chracter type. Don't use multiply by 4 to compute offset. (memcpy4): Likewise. (write_default_char4): Use a gfc_char4_t pointer and update memset4 and memcpy calls. (write_a): Likewise. (write_l): Likewise. (write_boz): Likewise. (write_decimal): Likewise. (write_x): Likewise. (write_char): Add support for character(kind=4) internal units that was previously missed. (write_integer): Use a gfc_char4_t pointer and update memset4 and memcpy calls. (write_character): Likewise. (write_separator): Add support for character(kind=4) internal units that was previously missed. * write_float.def (output_float): Use a gfc_char4_t pointer and update memset4 and memcpy calls. (write_infnan): Likewise. (output_float_FMT_G_): Likewise. From-SVN: r162304
Diffstat (limited to 'libgfortran/io/unix.h')
-rw-r--r--libgfortran/io/unix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/unix.h b/libgfortran/io/unix.h
index c69e357..3229d50 100644
--- a/libgfortran/io/unix.h
+++ b/libgfortran/io/unix.h
@@ -103,7 +103,7 @@ internal_proto(mem_alloc_w);
extern char * mem_alloc_r (stream *, int *);
internal_proto(mem_alloc_r);
-extern char * mem_alloc_w4 (stream *, int *);
+extern gfc_char4_t * mem_alloc_w4 (stream *, int *);
internal_proto(mem_alloc_w4);
extern char * mem_alloc_r4 (stream *, int *);