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