1 2018-01-07 Janne Blomqvist <jb@gcc.gnu.org>
5 * io/fbuf.c (fbuf_init): Use size_t instead of int for length.
6 (fbuf_debug): Convert debug output to unsigned long.
7 (fbuf_reset): Use ptrdiff_t for return value.
8 (fbuf_alloc): Use size_t for length argument.
9 (fbuf_flush): Handle large buffers.
10 (fbuf_flush_list): Likewise.
11 (fbuf_seek): Use ptrdiff_t for offset and return value.
12 (fbuf_read): Use size_t for length argument.
13 (fbuf_getc_refill): Use size_t to match fbuf_read.
14 * io/fbuf.h (struct fbuf): Use size_t for lengths.
15 (fbuf_init): Use size_t instead of int for length.
16 (fbuf_reset): Use ptrdiff_t for return value.
17 (fbuf_alloc): Use size_t for length argument.
18 (fbuf_seek): Use ptrdiff_t for offset and return value.
19 (fbuf_read): Use size_t for length argument.
20 * io/io.h (read_block_form): Likewise.
21 (read_block_form4): Likewise.
22 (write_block): Likewise.
24 (read_a_char4): Likewise.
27 (write_a_char4): Likewise.
28 * io/list_read.c (list_formatted_read_scalar): Use size_t to
30 * io/read.c (read_l): Likewise.
31 (read_utf8): Likewise.
32 (read_utf8_char1): Likewise.
33 (read_default_char1): Likewise.
34 (read_utf8_char4): Likewise.
35 (read_default_char4): Likewise.
37 (read_a_char4): Likewise.
38 (eat_leading_spaces): Likewise.
39 (next_char): Likewise.
40 (read_decimal): Likewise.
41 (read_radix): Likewise.
44 * io/transfer.c (read_sf_internal): Likewise.
46 (read_block_form): Likewise.
47 (read_block_form4): Likewise.
48 (write_block): Likewise.
49 (formatted_transfer_scalar_write): Likewise.
50 (next_record_w): Likewise.
51 * io/unix.c (mem_alloc_r): Likewise.
52 (mem_alloc_r4): Likewise.
53 (mem_alloc_w): Likewise.
54 (mem_alloc_w4): Likewise.
56 (mem_read4): Likewise.
57 (mem_write): Likewise.
58 (mem_write4): Likewise.
59 (open_internal): Likewise.
60 (open_internal4): Likewise.
61 * io/unix.h (open_internal): Likewise.
62 (open_internal4): Likewise.
63 (mem_alloc_w): Likewise.
64 (mem_alloc_r): Likewise.
65 (mem_alloc_w4): Likewise.
66 (mem_alloc_r4): Likewise.
67 * io/write.c (write_check_cc): Likewise.
70 (write_a_char4): Likewise.
72 2018-01-06 Janne Blomqvist <jb@gcc.gnu.org>
74 * io/write.c (namelist_write): Remove unused variable "i".
76 2018-01-06 Dominique d'Humieres <dominiq@lps.ens.fr>
77 Janne Blomqvist <jb@gcc.gnu.org>
80 * io/write.c (write_character): Use size_t instead of int for
83 2018-01-05 Janne Blomqvist <jb@gcc.gnu.org>
86 * intrinsics/args.c (getarg_i4): Use gfc_charlen_type.
87 (get_command_argument_i4): Likewise.
88 (get_command_i4): Likewise.
89 * intrinsics/chmod.c (chmod_internal): Likewise.
90 * intrinsics/env.c (get_environment_variable_i4): Likewise.
91 * intrinsics/extends_type_of.c (struct vtype): Use size_t for size
93 * intrinsics/gerror.c (gerror): Use gfc_charlen_type.
94 * intrinsics/getlog.c (getlog): Likewise.
95 * intrinsics/hostnm.c (hostnm_0): Likewise.
96 * intrinsics/string_intrinsics_inc.c (string_len_trim): Rework to
97 work if gfc_charlen_type is unsigned.
98 (string_scan): Likewise.
99 * io/transfer.c (transfer_character): Modify prototype.
100 (transfer_character_write): Likewise.
101 (transfer_character_wide): Likewise.
102 (transfer_character_wide_write): Likewise.
103 (transfer_array): Typecast to avoid signed-unsigned comparison.
104 * io/unit.c (is_trim_ok): Use gfc_charlen_type.
105 * io/write.c (namelist_write): Likewise.
106 * libgfortran.h (gfc_charlen_type): Change typedef to size_t.
108 2018-01-03 Jakub Jelinek <jakub@redhat.com>
110 Update copyright years.
112 2018-01-02 Janne Blomqvist <jb@gcc.gnu.org>
115 * io/unix.c (MAX_CHUNK): New define.
116 (raw_read): For reads larger than MAX_CHUNK, loop.
117 (raw_write): Write no more than MAX_CHUNK bytes per iteration.
119 Copyright (C) 2018 Free Software Foundation, Inc.
121 Copying and distribution of this file, with or without modification,
122 are permitted in any medium without royalty provided the copyright
123 notice and this notice are preserved.