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