OSDN Git Service

2011-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2011-02-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2
3         PR libgfortran/47778
4         * io/list_read.c (namelist_read): Intialize the error string buffere.
5         If pprev_nl was used during the previous namelist read and the rank
6         was zero, reset the pointer to NULL for the next namelist read.
7
8 2011-02-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9
10         PR libfortran/45165
11         * unix.c (fallback_access): Fix file descriptor leaks.
12
13 2011-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14
15         * acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): Set shell variable
16         tested in configure.host.
17         * configure: Regenerate.
18
19 2011-02-24  Janne Blomqvist  <jb@gcc.gnu.org>
20
21         PR libfortran/47802
22         * config.h.in: Regenerated.
23         * configure: Regenerated.
24         * configure.ac: Remove checks for ctime and ctime_r, add check for
25         strftime.
26         * intrinsics/date_and_time.c (localtime_r): Move fallback
27         implementation to time_1.h.
28         * intrinsics/time_1.h (localtime_r): Fallback implementation.
29         * intrinsics/ctime.c: Include time_1.h.
30         (ctime_r): Remove fallback implementation.
31         (strctime): New function.
32         (fdate): Use strctime instead of ctime_r.
33         (fdate_sub): Likewise.
34         (ctime): Likewise.
35         (ctime_sub): Likewise.
36
37 2011-02-24  Jakub Jelinek  <jakub@redhat.com>
38
39         PR fortran/47878
40         * io/transfer.c (read_sf): Call fbuf_getptr only at the end,
41         and subtract n, dtp->u.p.sf_seen_eor and seen_comma from it.
42
43 2011-02-24  Janne Blomqvist  <jb@gcc.gnu.org>
44
45         PR libfortran/47802
46         * configure.ac: Add test for POSIX getpwuid_r.
47         * intrinsics/getlog.c (getlog): CPP test for
48         HAVE_POSIX_GETPWUID_R.
49         * config.h.in: Regenerated.
50         * configure: Regenerated.
51
52 2011-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
53
54         PR libgfortran/47567
55         * io/write_float.def (output_float): Remove special case handling of
56         zero with width 1.
57
58 2011-02-23  Janne Blomqvist  <jb@gcc.gnu.org>
59             Jerry DeLisle    <jvdelisle@gcc.gnu.org>
60
61         PR libfortran/47694
62         * io/fbuf.h (fbuf_getptr): New inline function.
63         * io/transfer.c (read_sf): Use fbuf_getptr and fbuf_getc to scan
64         through the string instead of fbuf_read.
65
66 2011-02-22  Tobias Burnus  <burnus@net-b.de>
67             Kai-Uwe Eckhardt  <kuehro@gmx.de>
68
69         PR libfortran/47830
70         * intrinsics/c99_functions.c (roundl): Make C valid for
71         HAVE_NEXTAFTERL.
72
73 2011-02-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
74
75         PR libgfortran/47567
76         * io/write_float.def (output_float): Adjust width for F0.d to
77         allow space for negative signs on zero.
78
79 2011-02-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
80
81         PR libgfortran/47667
82         * io/list_read.c (read_logical): Check for end of line before calling
83         eat_line. (read_integer): Likewise. (parse_real): Don't unget the
84         separator. Check for end of line before calling eat_line.
85         (read_complex): Allow line-end before and after parenthesis and comma.
86         Check for end of line before calling eat_line. (read_real): Check for
87         end of line before calling eat_line.
88
89 2011-02-16  Jakub Jelinek  <jakub@redhat.com>
90
91         PR libfortran/47757
92         * gfortran.map (GFORTRAN_1.4): Export
93         _gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and
94         _gfortran_{cshift0,eoshift{0,2}}_16_char4.
95
96 2011-02-15  Tobias Burnus  <burnus@net-b.de>
97
98         PR fortran/47716
99         PR fortran/47648
100         * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Use check from
101         libquadmath, which uses more features.
102         * configure: Regenerate.
103
104 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
105
106         PR fortran/47642
107         * io/write_float.def (DTOAQ): Use quadmath_snprintf instead of
108         quadmath_flt128tostr.
109         * io/transfer128.c (tmp2): Initialize to quadmath_snprintf instead
110         of quadmath_flt128tostr.
111
112 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113
114         * Makefile.in: Regenerate.
115         * aclocal.m4: Likewise.
116         * configure: Likewise.
117
118 2011-02-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
119
120         PR libgfortran/47567
121         * io/write_float.def (output_float): Eliminate some redundant code.
122         Adjust width for case of F0.X for values of zero and all other values.
123         Expand cases where '*' is set to give cleaner results.
124
125 2011-02-05  Janne Blomqvist  <jb@gcc.gnu.org>
126
127         PR libfortran/47571
128         * intrinsics/time_1.h (GF_CLOCK_MONOTONIC): Move to system_clock.c.
129         (weak_gettime): Likewise.
130         (gf_gettime): Change API, move weak_gettime() usage to
131         system_clock.c
132         * intrinsics/system_clock.c (GTHREAD_USE_WEAK): Define.
133         (gf_gettime_mono): New function.
134         (system_clock_4): Use gf_gettime_mono().
135         (system_clock_8): Likewise.
136         * intrinsics/date_and_time.c (date_and_time): Update gf_gettime()
137         usage.
138
139 2011-02-02  Janne Blomqvist  <jb@gcc.gnu.org>
140
141         PR libfortran/47571
142         * configure: Regenerated.
143         * configure.ac: Don't add librt to LIBS.
144         * intrinsics/time_1.h (weak_gettime): Weakref trickery for
145         clock_gettime().
146         (gf_gettime): Use weak_gettime() instead of clock_gettime().
147
148 2011-02-01  Janne Blomqvist  <jb@gcc.gnu.org>
149
150         * intrinsics/time_1.h: Include errno.h needed by fallbacks.
151
152 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
153
154         * intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
155
156 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
157
158         * configure.ac: Check for clock_gettime().
159         * configure: Regenerated.
160         * config.h.in: Regenerated.
161         * intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
162         times() fallback.
163         (gf_gettime): New function.
164         * intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
165         * intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
166         * intrinsics/dtime.c (dtime_sub): Use gf_cputime.
167         * intrinsics/etime.c (etime_sub): Use gf_cputime.
168         * intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
169         (system_clock_8): Use gf_gettime, increase count rate to allow
170         nanosecond precision, remove overflow prone branch.
171
172 2011-01-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
173
174         PR libgfortran/47434
175         * io/write_float.def (write_infnan): Use calculate_sign to determine
176         if the sign should be given and check field widths accordingly.
177
178 2011-01-29  Kai Tietz  <kai.tietz@onevision.com>
179
180         * intrinsics/ctime.c (ctime_r): Improve implementation.
181
182 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
183
184         PR libfortran/47431
185         * config.h.in: Regenerated.
186         * configure: Regenerated.
187         * configure.ac: Add check for ctime_r().
188         * intrinsics/ctime.c (ctime_r): Fallback implementation.
189         (fdate): Use ctime_r() instead of ctime().
190         (fdate_sub): Likewise.
191         (ctime): Likewise.
192         (ctime_sub): Likewise.
193
194 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
195
196         PR libfortran/47432
197         * config.h.in: Regenerated.
198         * configure: Regenerated.
199         * configure.ac: Add check for ttyname_r.
200         * io/unix.h: Add TTY_NAME_MAX, change stream_ttyname prototype.
201         * io/unix.c (stream_ttyname): Use ttyname_r if available, conform
202         to new prototype.
203         * io/inquire.c (inquire_via_unit): Use changed stream_ttyname.
204         * io/intrinsics.c (ttynam_sub): Likewise.
205         (ttynam): Likewise.
206
207 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
208
209         PR libfortran/47491
210         * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS to enable common
211         extensions.
212         * config.h.in: Regenerate.
213         * configure: Regenerate.
214
215 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
216
217         PR libgfortran/47285
218         * io/write_float.def (write_infnan): Adjust processor selected width
219         to 3 if NaN.
220
221 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
222
223         PR libgfortran/47285
224         * io/write_float.def (output_float): Return SUCCESS or FAILURE and use
225         the result to set the padding.
226
227 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
228
229         * intrinsics/getlog.c (getlog): Fix label/statement issue.
230
231 2011-01-25  Janne Blomqvist  <jb@gcc.gnu.org>
232
233         PR libfortran/47375
234         * config.h.in: Regenerated.
235         * configure: Regenerated.
236         * configure.ac: Add check for getpwuid_r.
237         * intrinsics/getlog.c (getlog): Use getpwuid_r() if available.
238
239 2011-01-22  Janne Blomqvist  <jb@gcc.gnu.org>
240
241         PR libfortran/46267
242         * config.h.in: Regenerated.
243         * configure: Regenerated.
244         * configure.ac: Check presence of strerror_r.
245         * intrinsics/gerror.c (gerror): Use gf_strerror, modify logic.
246         * io/unix.c (get_oserror): Remove.
247         * libgfortran.h (gf_strerror): Add prototype.
248         (get_oserror): Remove prototype.
249         * runtime/error.c (gf_strerror): New function.
250         (os_error): Use gf_strerror instead of get_oserror.
251         (generate_errror): Likewise.
252
253 2011-01-17  Janne Blomqvist  <jb@gcc.gnu.org>
254
255         PR libfortran/47296
256         * io/unix.c (tempfile): Set opp->file and opp->file_len also if an
257         error occurs.
258
259 2011-01-16  Jakub Jelinek  <jakub@redhat.com>
260
261         PR fortran/46625
262         * io/write_float.def (DTOAQ): Use quadmath_flt128tostr
263         instead of quadmath_dtoa.
264         * io/transfer128.c (tmp1, tmp2): New variables, bring in
265         strtoflt128 and quadmath_flt128tostr.
266         (transfer_real128, transfer_real128_write, transfer_complex128,
267         transfer_complex128_write): Remove tmp1/tmp2 variables.
268         * io/read.c (convert_real): Use strtoflt128 instead of
269         quadmath_strtopQ, adjust for the changed arguments and return
270         value.
271
272 2011-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
273
274         PR libgfortran/47296
275         * io/unix.c (unpack_filename): Return non-zero if the filename passed
276         in is NULL.
277
278 2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
279
280         PR libgfortran/47154
281         * io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
282         duplicate calls via next_record.
283
284 \f
285 Copyright (C) 2011 Free Software Foundation, Inc.
286
287 Copying and distribution of this file, with or without modification,
288 are permitted in any medium without royalty provided the copyright
289 notice and this notice are preserved.