OSDN Git Service

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