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