OSDN Git Service

PR libfortran/47883
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2011-03-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2
3         PR libfortran/47883
4         * acinclude.m4: Don't use AC_TRY_ macros.
5         * configure.ac: Likewise.
6         * configure: Regenerate.
7
8 2011-03-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
9
10         PR libfortran/48066
11         * m4/ifunction.m4:  If return array is empty, return.
12         * m4/ifunction_logical.m4:  Likewise.
13         * generated/all_l16.c: Regenerated.
14         * generated/all_l1.c: Regenerated.
15         * generated/all_l2.c: Regenerated.
16         * generated/all_l4.c: Regenerated.
17         * generated/all_l8.c: Regenerated.
18         * generated/any_l16.c: Regenerated.
19         * generated/any_l1.c: Regenerated.
20         * generated/any_l2.c: Regenerated.
21         * generated/any_l4.c: Regenerated.
22         * generated/any_l8.c: Regenerated.
23         * generated/count_16_l.c: Regenerated.
24         * generated/count_1_l.c: Regenerated.
25         * generated/count_2_l.c: Regenerated.
26         * generated/count_4_l.c: Regenerated.
27         * generated/count_8_l.c: Regenerated.
28         * generated/maxloc1_16_i16.c: Regenerated.
29         * generated/maxloc1_16_i1.c: Regenerated.
30         * generated/maxloc1_16_i2.c: Regenerated.
31         * generated/maxloc1_16_i4.c: Regenerated.
32         * generated/maxloc1_16_i8.c: Regenerated.
33         * generated/maxloc1_16_r10.c: Regenerated.
34         * generated/maxloc1_16_r16.c: Regenerated.
35         * generated/maxloc1_16_r4.c: Regenerated.
36         * generated/maxloc1_16_r8.c: Regenerated.
37         * generated/maxloc1_4_i16.c: Regenerated.
38         * generated/maxloc1_4_i1.c: Regenerated.
39         * generated/maxloc1_4_i2.c: Regenerated.
40         * generated/maxloc1_4_i4.c: Regenerated.
41         * generated/maxloc1_4_i8.c: Regenerated.
42         * generated/maxloc1_4_r10.c: Regenerated.
43         * generated/maxloc1_4_r16.c: Regenerated.
44         * generated/maxloc1_4_r4.c: Regenerated.
45         * generated/maxloc1_4_r8.c: Regenerated.
46         * generated/maxloc1_8_i16.c: Regenerated.
47         * generated/maxloc1_8_i1.c: Regenerated.
48         * generated/maxloc1_8_i2.c: Regenerated.
49         * generated/maxloc1_8_i4.c: Regenerated.
50         * generated/maxloc1_8_i8.c: Regenerated.
51         * generated/maxloc1_8_r10.c: Regenerated.
52         * generated/maxloc1_8_r16.c: Regenerated.
53         * generated/maxloc1_8_r4.c: Regenerated.
54         * generated/maxloc1_8_r8.c: Regenerated.
55         * generated/maxval_i16.c: Regenerated.
56         * generated/maxval_i1.c: Regenerated.
57         * generated/maxval_i2.c: Regenerated.
58         * generated/maxval_i4.c: Regenerated.
59         * generated/maxval_i8.c: Regenerated.
60         * generated/maxval_r10.c: Regenerated.
61         * generated/maxval_r16.c: Regenerated.
62         * generated/maxval_r4.c: Regenerated.
63         * generated/maxval_r8.c: Regenerated.
64         * generated/minloc1_16_i16.c: Regenerated.
65         * generated/minloc1_16_i1.c: Regenerated.
66         * generated/minloc1_16_i2.c: Regenerated.
67         * generated/minloc1_16_i4.c: Regenerated.
68         * generated/minloc1_16_i8.c: Regenerated.
69         * generated/minloc1_16_r10.c: Regenerated.
70         * generated/minloc1_16_r16.c: Regenerated.
71         * generated/minloc1_16_r4.c: Regenerated.
72         * generated/minloc1_16_r8.c: Regenerated.
73         * generated/minloc1_4_i16.c: Regenerated.
74         * generated/minloc1_4_i1.c: Regenerated.
75         * generated/minloc1_4_i2.c: Regenerated.
76         * generated/minloc1_4_i4.c: Regenerated.
77         * generated/minloc1_4_i8.c: Regenerated.
78         * generated/minloc1_4_r10.c: Regenerated.
79         * generated/minloc1_4_r16.c: Regenerated.
80         * generated/minloc1_4_r4.c: Regenerated.
81         * generated/minloc1_4_r8.c: Regenerated.
82         * generated/minloc1_8_i16.c: Regenerated.
83         * generated/minloc1_8_i1.c: Regenerated.
84         * generated/minloc1_8_i2.c: Regenerated.
85         * generated/minloc1_8_i4.c: Regenerated.
86         * generated/minloc1_8_i8.c: Regenerated.
87         * generated/minloc1_8_r10.c: Regenerated.
88         * generated/minloc1_8_r16.c: Regenerated.
89         * generated/minloc1_8_r4.c: Regenerated.
90         * generated/minloc1_8_r8.c: Regenerated.
91         * generated/minval_i16.c: Regenerated.
92         * generated/minval_i1.c: Regenerated.
93         * generated/minval_i2.c: Regenerated.
94         * generated/minval_i4.c: Regenerated.
95         * generated/minval_i8.c: Regenerated.
96         * generated/minval_r10.c: Regenerated.
97         * generated/minval_r16.c: Regenerated.
98         * generated/minval_r4.c: Regenerated.
99         * generated/minval_r8.c: Regenerated.
100         * generated/product_c10.c: Regenerated.
101         * generated/product_c16.c: Regenerated.
102         * generated/product_c4.c: Regenerated.
103         * generated/product_c8.c: Regenerated.
104         * generated/product_i16.c: Regenerated.
105         * generated/product_i1.c: Regenerated.
106         * generated/product_i2.c: Regenerated.
107         * generated/product_i4.c: Regenerated.
108         * generated/product_i8.c: Regenerated.
109         * generated/product_r10.c: Regenerated.
110         * generated/product_r16.c: Regenerated.
111         * generated/product_r4.c: Regenerated.
112         * generated/product_r8.c: Regenerated.
113         * generated/sum_c10.c: Regenerated.
114         * generated/sum_c16.c: Regenerated.
115         * generated/sum_c4.c: Regenerated.
116         * generated/sum_c8.c: Regenerated.
117         * generated/sum_i16.c: Regenerated.
118         * generated/sum_i1.c: Regenerated.
119         * generated/sum_i2.c: Regenerated.
120         * generated/sum_i4.c: Regenerated.
121         * generated/sum_i8.c: Regenerated.
122         * generated/sum_r10.c: Regenerated.
123         * generated/sum_r16.c: Regenerated.
124         * generated/sum_r4.c: Regenerated.
125         * generated/sum_r8.c: Regenerated.
126
127 2011-03-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
128
129         PR libgfortran/48047
130         * io/write_float.def (write_float): Change MIN_FIELD_WIDTH to 48.
131
132 2011-03-04  Janne Blomqvist  <jb@gcc.gnu.org>
133
134         PR libfortran/47802
135         * intrinsics/ctime.c (strctime): Use builtins to check localtime_r
136         return type.
137
138 2011-03-04  Janne Blomqvist  <jb@gcc.gnu.org>
139
140         PR libfortran/47802
141         * intrinsics/ctime.c (strctime): Don't use return value of
142         localtime_r.
143
144 2011-02-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
145
146         PR libgfortran/47567
147         * io/write_float.def (output_float): Move handling of w = 0 to after
148         output rounding. Check for zero and set zero_flag accordingly. Set
149         width according to zero_flag. Add better comments.
150
151 2011-02-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
152
153         PR libgfortran/47778
154         * io/list_read.c (namelist_read): Intialize the error string buffere.
155         If pprev_nl was used during the previous namelist read and the rank
156         was zero, reset the pointer to NULL for the next namelist read.
157
158 2011-02-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
159
160         PR libfortran/45165
161         * unix.c (fallback_access): Fix file descriptor leaks.
162
163 2011-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
164
165         * acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): Set shell variable
166         tested in configure.host.
167         * configure: Regenerate.
168
169 2011-02-24  Janne Blomqvist  <jb@gcc.gnu.org>
170
171         PR libfortran/47802
172         * config.h.in: Regenerated.
173         * configure: Regenerated.
174         * configure.ac: Remove checks for ctime and ctime_r, add check for
175         strftime.
176         * intrinsics/date_and_time.c (localtime_r): Move fallback
177         implementation to time_1.h.
178         * intrinsics/time_1.h (localtime_r): Fallback implementation.
179         * intrinsics/ctime.c: Include time_1.h.
180         (ctime_r): Remove fallback implementation.
181         (strctime): New function.
182         (fdate): Use strctime instead of ctime_r.
183         (fdate_sub): Likewise.
184         (ctime): Likewise.
185         (ctime_sub): Likewise.
186
187 2011-02-24  Jakub Jelinek  <jakub@redhat.com>
188
189         PR fortran/47878
190         * io/transfer.c (read_sf): Call fbuf_getptr only at the end,
191         and subtract n, dtp->u.p.sf_seen_eor and seen_comma from it.
192
193 2011-02-24  Janne Blomqvist  <jb@gcc.gnu.org>
194
195         PR libfortran/47802
196         * configure.ac: Add test for POSIX getpwuid_r.
197         * intrinsics/getlog.c (getlog): CPP test for
198         HAVE_POSIX_GETPWUID_R.
199         * config.h.in: Regenerated.
200         * configure: Regenerated.
201
202 2011-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
203
204         PR libgfortran/47567
205         * io/write_float.def (output_float): Remove special case handling of
206         zero with width 1.
207
208 2011-02-23  Janne Blomqvist  <jb@gcc.gnu.org>
209             Jerry DeLisle    <jvdelisle@gcc.gnu.org>
210
211         PR libfortran/47694
212         * io/fbuf.h (fbuf_getptr): New inline function.
213         * io/transfer.c (read_sf): Use fbuf_getptr and fbuf_getc to scan
214         through the string instead of fbuf_read.
215
216 2011-02-22  Tobias Burnus  <burnus@net-b.de>
217             Kai-Uwe Eckhardt  <kuehro@gmx.de>
218
219         PR libfortran/47830
220         * intrinsics/c99_functions.c (roundl): Make C valid for
221         HAVE_NEXTAFTERL.
222
223 2011-02-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
224
225         PR libgfortran/47567
226         * io/write_float.def (output_float): Adjust width for F0.d to
227         allow space for negative signs on zero.
228
229 2011-02-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
230
231         PR libgfortran/47667
232         * io/list_read.c (read_logical): Check for end of line before calling
233         eat_line. (read_integer): Likewise. (parse_real): Don't unget the
234         separator. Check for end of line before calling eat_line.
235         (read_complex): Allow line-end before and after parenthesis and comma.
236         Check for end of line before calling eat_line. (read_real): Check for
237         end of line before calling eat_line.
238
239 2011-02-16  Jakub Jelinek  <jakub@redhat.com>
240
241         PR libfortran/47757
242         * gfortran.map (GFORTRAN_1.4): Export
243         _gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and
244         _gfortran_{cshift0,eoshift{0,2}}_16_char4.
245
246 2011-02-15  Tobias Burnus  <burnus@net-b.de>
247
248         PR fortran/47716
249         PR fortran/47648
250         * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Use check from
251         libquadmath, which uses more features.
252         * configure: Regenerate.
253
254 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
255
256         PR fortran/47642
257         * io/write_float.def (DTOAQ): Use quadmath_snprintf instead of
258         quadmath_flt128tostr.
259         * io/transfer128.c (tmp2): Initialize to quadmath_snprintf instead
260         of quadmath_flt128tostr.
261
262 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
263
264         * Makefile.in: Regenerate.
265         * aclocal.m4: Likewise.
266         * configure: Likewise.
267
268 2011-02-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
269
270         PR libgfortran/47567
271         * io/write_float.def (output_float): Eliminate some redundant code.
272         Adjust width for case of F0.X for values of zero and all other values.
273         Expand cases where '*' is set to give cleaner results.
274
275 2011-02-05  Janne Blomqvist  <jb@gcc.gnu.org>
276
277         PR libfortran/47571
278         * intrinsics/time_1.h (GF_CLOCK_MONOTONIC): Move to system_clock.c.
279         (weak_gettime): Likewise.
280         (gf_gettime): Change API, move weak_gettime() usage to
281         system_clock.c
282         * intrinsics/system_clock.c (GTHREAD_USE_WEAK): Define.
283         (gf_gettime_mono): New function.
284         (system_clock_4): Use gf_gettime_mono().
285         (system_clock_8): Likewise.
286         * intrinsics/date_and_time.c (date_and_time): Update gf_gettime()
287         usage.
288
289 2011-02-02  Janne Blomqvist  <jb@gcc.gnu.org>
290
291         PR libfortran/47571
292         * configure: Regenerated.
293         * configure.ac: Don't add librt to LIBS.
294         * intrinsics/time_1.h (weak_gettime): Weakref trickery for
295         clock_gettime().
296         (gf_gettime): Use weak_gettime() instead of clock_gettime().
297
298 2011-02-01  Janne Blomqvist  <jb@gcc.gnu.org>
299
300         * intrinsics/time_1.h: Include errno.h needed by fallbacks.
301
302 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
303
304         * intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
305
306 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
307
308         * configure.ac: Check for clock_gettime().
309         * configure: Regenerated.
310         * config.h.in: Regenerated.
311         * intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
312         times() fallback.
313         (gf_gettime): New function.
314         * intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
315         * intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
316         * intrinsics/dtime.c (dtime_sub): Use gf_cputime.
317         * intrinsics/etime.c (etime_sub): Use gf_cputime.
318         * intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
319         (system_clock_8): Use gf_gettime, increase count rate to allow
320         nanosecond precision, remove overflow prone branch.
321
322 2011-01-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
323
324         PR libgfortran/47434
325         * io/write_float.def (write_infnan): Use calculate_sign to determine
326         if the sign should be given and check field widths accordingly.
327
328 2011-01-29  Kai Tietz  <kai.tietz@onevision.com>
329
330         * intrinsics/ctime.c (ctime_r): Improve implementation.
331
332 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
333
334         PR libfortran/47431
335         * config.h.in: Regenerated.
336         * configure: Regenerated.
337         * configure.ac: Add check for ctime_r().
338         * intrinsics/ctime.c (ctime_r): Fallback implementation.
339         (fdate): Use ctime_r() instead of ctime().
340         (fdate_sub): Likewise.
341         (ctime): Likewise.
342         (ctime_sub): Likewise.
343
344 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
345
346         PR libfortran/47432
347         * config.h.in: Regenerated.
348         * configure: Regenerated.
349         * configure.ac: Add check for ttyname_r.
350         * io/unix.h: Add TTY_NAME_MAX, change stream_ttyname prototype.
351         * io/unix.c (stream_ttyname): Use ttyname_r if available, conform
352         to new prototype.
353         * io/inquire.c (inquire_via_unit): Use changed stream_ttyname.
354         * io/intrinsics.c (ttynam_sub): Likewise.
355         (ttynam): Likewise.
356
357 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
358
359         PR libfortran/47491
360         * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS to enable common
361         extensions.
362         * config.h.in: Regenerate.
363         * configure: Regenerate.
364
365 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
366
367         PR libgfortran/47285
368         * io/write_float.def (write_infnan): Adjust processor selected width
369         to 3 if NaN.
370
371 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
372
373         PR libgfortran/47285
374         * io/write_float.def (output_float): Return SUCCESS or FAILURE and use
375         the result to set the padding.
376
377 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
378
379         * intrinsics/getlog.c (getlog): Fix label/statement issue.
380
381 2011-01-25  Janne Blomqvist  <jb@gcc.gnu.org>
382
383         PR libfortran/47375
384         * config.h.in: Regenerated.
385         * configure: Regenerated.
386         * configure.ac: Add check for getpwuid_r.
387         * intrinsics/getlog.c (getlog): Use getpwuid_r() if available.
388
389 2011-01-22  Janne Blomqvist  <jb@gcc.gnu.org>
390
391         PR libfortran/46267
392         * config.h.in: Regenerated.
393         * configure: Regenerated.
394         * configure.ac: Check presence of strerror_r.
395         * intrinsics/gerror.c (gerror): Use gf_strerror, modify logic.
396         * io/unix.c (get_oserror): Remove.
397         * libgfortran.h (gf_strerror): Add prototype.
398         (get_oserror): Remove prototype.
399         * runtime/error.c (gf_strerror): New function.
400         (os_error): Use gf_strerror instead of get_oserror.
401         (generate_errror): Likewise.
402
403 2011-01-17  Janne Blomqvist  <jb@gcc.gnu.org>
404
405         PR libfortran/47296
406         * io/unix.c (tempfile): Set opp->file and opp->file_len also if an
407         error occurs.
408
409 2011-01-16  Jakub Jelinek  <jakub@redhat.com>
410
411         PR fortran/46625
412         * io/write_float.def (DTOAQ): Use quadmath_flt128tostr
413         instead of quadmath_dtoa.
414         * io/transfer128.c (tmp1, tmp2): New variables, bring in
415         strtoflt128 and quadmath_flt128tostr.
416         (transfer_real128, transfer_real128_write, transfer_complex128,
417         transfer_complex128_write): Remove tmp1/tmp2 variables.
418         * io/read.c (convert_real): Use strtoflt128 instead of
419         quadmath_strtopQ, adjust for the changed arguments and return
420         value.
421
422 2011-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
423
424         PR libgfortran/47296
425         * io/unix.c (unpack_filename): Return non-zero if the filename passed
426         in is NULL.
427
428 2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
429
430         PR libgfortran/47154
431         * io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
432         duplicate calls via next_record.
433
434 \f
435 Copyright (C) 2011 Free Software Foundation, Inc.
436
437 Copying and distribution of this file, with or without modification,
438 are permitted in any medium without royalty provided the copyright
439 notice and this notice are preserved.