OSDN Git Service

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