OSDN Git Service

PR libfortran/43605 FTELL intrinsic, take 2.
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2010-04-01  Janne Blomqvist  <jb@gcc.gnu.org>
2
3         PR libfortran/43605
4         * io/intrinsics.c (gf_ftell): New function, seek to correct offset.
5         (ftell): Call gf_ftell.
6         (FTELL_SUB): Likewise.
7
8 2010-04-01  Paul Thomas  <pault@gcc.gnu.org>
9
10         * io/transfer.c : Update copyright.
11         * io/unix.c : ditto
12         * io/read.c : ditto
13         * io/io.h : ditto
14         * io/unix.h : ditto
15         * io/inquire.c : ditto
16         * io/format.c : ditto
17         * io/list_read.c : ditto
18         * runtime/error.c : ditto
19         * libgfortran.h : ditto
20         * intrinsics/date_and_time.c: ditto
21         * intrinsics/args.c : ditto
22
23 2010-04-01  Janne Blomqvist  <jb@gcc.gnu.org>
24
25         PR libfortran/43605
26         * io/intrinsics.c (ftell): Reset fbuf, correct offset.
27         (FTELL_SUB): Likewise.
28
29 2010-03-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
30
31         PR libfortran/43265
32         * io/transfer.c (next_record_r): Only call hit_eof for specific
33         conditions when an EOF is encountered.
34
35 2010-03-29  Tobias Burnus  <burnus@net-b.de>
36
37         PR fortran/43551
38         * io/unix.c (buf_write): Set physical_offset after lseek.
39
40 2010-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
41
42         PR libfortran/43517
43         * io/read.c (read_x): Return if seen EOR condition.
44
45 2010-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
46
47         PR fortran/43409
48         * io/io.h: Fix type of size in st_parameter_inquire structure.
49
50 2010-03-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
51
52         PR fortran/43409
53         * io/unix.h: Add prototype for new function to return file size.
54         * io/unix.c (file_size): New function.
55         * io/inquire.c (inquire_via_unit): Use new function.
56         (inquire_via_filename): Use new function.
57
58 2010-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
59
60         * io/transfer.c (read_sf_internal): Remove stray function declaration
61         used during debugging.
62
63 2010-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
64
65         PR libfortran/43265
66         * io/io.h: Delete prototype for read_sf, making it static.
67         * io/read.c (read_x): Modify to call hit_eof if PAD="no".
68         * io/transfer.c (read_sf_internal): New static function extracted from
69         read_sf for use on internal units only. Handle empty string case.
70         (read_sf): New factoring of this function, make it static.  Add special
71         conditions for EOF based on ADVANCE="no", PAD="no", and whether any
72         bytes have been previously read from the record.
73         (read_block_form): Modify to call read_sf or read_sf_internal.
74         (next_record_r): Add a done flag similar to next_record_w. Call hit_eof
75         if internal array unit next record returns finished, meaning an EOF was
76         found and not done, ie not the last record expected.  For external
77         units call hit_eof if item_count is 1 or there are no pending spaces.
78         (next_record): Update call to next_record_r.
79
80 2010-03-12  Kai Tietz  <kai.tietz@onevision.com>
81
82         PR/42950
83         * io/format.c (parse_format_list): Add to ERROR, WARNING,
84         SILENT enumerators NOTIFICATION_ prefix.
85         * runtime/error.c (notification_std): Likewise.
86         * libgfortran.h (notification): Likewise.
87         (GFC_LARGEST_BUF): Check for HAVE_GFC_INTEGER_16.
88
89 2010-03-11  Tobias Burnus  <burnus@net-b.de>
90
91         PR fortran/43228
92         * io/list_read.c (nml_parse_qualifier): Disable expanded_read
93         for array sections.
94
95 2010-03-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
96
97         PR libfortran/43320
98         * io/transfer.c (next_record_r): Add hit_eof based on item_count
99         condition.
100
101 2010-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
102
103         PR libfortran/43265
104         * io/read.c: Include fbuf.h and unix.h to enable lower level I/O for
105         read_x. (read_x): Replace the use of read_sf with equivalent lower level
106         I/O, eliminating unneeded code and handling EOF and EOR conditions.
107         * io/io.h: Revise prototype for read_sf.
108         * io/transfer.c (read_sf): Delete no_error parameter and all uses of it.
109         (read_block_form): Likewise.
110         (next_record_r): Delete wrong code call to hit_eof.
111
112 2010-03-08  Kai TIetz  <kai.tietz@onevision.com>
113
114         PR/42950
115         * libgfortran.h (_POSIX): Define if __MINGW32__ is defined.
116         (gfc_printf): Define to gnu_printf for __MINGW32__ case,
117         otherwise to __printf__.
118         (gfc_strtof,gfc_strtod,gfc_strtold): Define for mingw case
119         to POSIX compatible converter functions.
120         (runtime_error): Use instead gfc_printf as formatter
121         attribute name.
122         (runtime_error_at): Likewise.
123         (runtime_warning_at): Likewise.
124         (st_printf): Likewise.
125         * intrinsics/date_and_time.c (localtime_r): Undefine
126         possible defined macro.
127         (gmtime_r): Likewise.
128         * io/read.c (convert_real): Use gfc_strtof, gfc_strtod,
129         and gfc_strtold.
130
131 2010-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
132
133         PR libfortran/43155
134         * io/transfer.c (require_type): Subtract one from item_count for output
135         of error message.  Add comment before formatted_transfer function
136         explaining why the item_count is off by one.
137
138 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
139
140         * io/write_float.def (WRITE_FLOAT): Use __builtin_signbit.
141
142 2010-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
143
144         * io/list_read.c (list_formatted_read_scalar): Remove duplicate code.
145
146 2010-02-09  Tobias Burnus  <burnus@net-b.de>
147
148         PR fortran/42996
149         * intrinsics/args.c (get_command_argument_i4): Always return
150         commandline-argument length for length parameter.
151
152 2010-02-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
153
154         PR libfortran/42742
155         * io/format.c (reset_fnode_counters): Use the correct pointer to the
156         head of the fnode list. (parse_format): Remove previous hack that set
157         limit on size of format string for caching.
158
159 2010-02-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
160
161         PR libfortran
162         * io/transfer.c (read_sf): Handle EOR and EOF conditions for
163         ADVANCE="no" with PAD="yes" or PAD="no".
164
165 2010-02-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
166
167         PR libfortran/42901
168         * io/list_read.c (nml_get_obj_data): Add new qualifier flag, clean up
169         code, and adjust logic to set namelist info pointer correctly for array
170         qualifiers of derived type components.
171
172 2010-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
173
174         PR libfortran/42742
175         * io/format.c (parse_format): Set limit on size of format strings that
176         will be cached.
177
178 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
179
180         * configure: Regenerate.
181
182 2010-01-03  Janne Blomqvist  <jb@gcc.gnu.org>
183
184         PR libfortran/42420
185         * io/unix.c: Defines for MINGW stat and fstat.
186         (gfstat_t): New typedef.
187         (id_from_fd): Use gfstat_t instead of struct stat.
188         (fd_to_stream): Likewise.
189         (compare_file_filename): Likewise.
190         (find_file): Likewise.
191         (file_exists): Likewise.
192         (inquire_sequential): Likewise.
193         (inquire_direct): Likewise.
194         (inquire_formatted): Likewise.
195
196 \f
197 Copyright (C) 2010 Free Software Foundation, Inc.
198
199 Copying and distribution of this file, with or without modification,
200 are permitted in any medium without royalty provided the copyright
201 notice and this notice are preserved.