OSDN Git Service

Remove duplicate ".endfunc".
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2012-10-21  Thomas K├Ânig  <tkoenig@gcc.gnu.org>
2
3         PR libfortran/54736
4         Backport from trunk
5         * runtime/environ.c (search_unit):  Correct logic
6         for binary search.
7         (mark_single):  Fix index errors.
8
9 2012-05-12  Tobias Burnus  <burnus@net-b.de>
10
11         PR fortran/53310
12         * intrinsics/eoshift2.c (eoshift2): Do not leak
13         memory by allocating it in the loop.
14
15 2012-03-01  Release Manager
16
17         * GCC 4.6.3 released.
18
19 2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
20
21         * configure: Regenerate.
22
23 2011-10-26  Release Manager
24
25         * GCC 4.6.2 released.
26
27 2011-10-19  Janne Blomqvist  <jb@gcc.gnu.org>
28             Kai Tietz  <ktietz@redhat.com>
29             Tobias Burnus  <burnus@net-b.de>
30
31         PR fortran/50016
32         * io/unix.h (flush_sync): Add new libgfortran-internal prototype.
33         * io/unix.c (flush_sync): New function, which calls sflush and
34         on MinGW(-w64) also _commit.
35         (flush_all_units, flush_all_units_1): Replace sflush/_commit by
36         flush_sync.
37         * io/file_pos.c (st_flush): Replace sflush/_commit by flush_sync.
38         * io/intrinsics.c (flush_i4, flush_i8): Ditto.
39
40 2011-10-18  Tobias Burnus  <burnus@net-b.de>
41             Janne Blomqvist  <jb@gcc.gnu.org>
42
43         PR fortran/50016
44         * io/file_pos.c (st_flush): Call _commit on MinGW(-w64).
45         * io/intrinsics.c (flush_i4, flush_i8): Ditto.
46         * io/unix.c (flush_all_units_1, flush_all_units): Ditto.
47         (buf_flush): Remove _commit call.
48         * io/inquire.c (inquire_via_unit): Flush internal buffer
49         and call file_length instead of invoking stat via file_size.
50
51 2011-09-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
52
53         Backport fron trunk
54         PR fortran/49479
55         * generated/m4/ifunction.m4:  Always call internal_malloc_size
56         even when there is a zero-sized return array.
57         * generated/generated/maxloc1_16_i16.c: Regenerated.
58         * generated/generated/maxloc1_16_i1.c: Regenerated.
59         * generated/generated/maxloc1_16_i2.c: Regenerated.
60         * generated/generated/maxloc1_16_i4.c: Regenerated.
61         * generated/generated/maxloc1_16_i8.c: Regenerated.
62         * generated/generated/maxloc1_16_r10.c: Regenerated.
63         * generated/generated/maxloc1_16_r16.c: Regenerated.
64         * generated/generated/maxloc1_16_r4.c: Regenerated.
65         * generated/generated/maxloc1_16_r8.c: Regenerated.
66         * generated/generated/maxloc1_4_i16.c: Regenerated.
67         * generated/generated/maxloc1_4_i1.c: Regenerated.
68         * generated/generated/maxloc1_4_i2.c: Regenerated.
69         * generated/generated/maxloc1_4_i4.c: Regenerated.
70         * generated/generated/maxloc1_4_i8.c: Regenerated.
71         * generated/generated/maxloc1_4_r10.c: Regenerated.
72         * generated/generated/maxloc1_4_r16.c: Regenerated.
73         * generated/generated/maxloc1_4_r4.c: Regenerated.
74         * generated/generated/maxloc1_4_r8.c: Regenerated.
75         * generated/generated/maxloc1_8_i16.c: Regenerated.
76         * generated/generated/maxloc1_8_i1.c: Regenerated.
77         * generated/generated/maxloc1_8_i2.c: Regenerated.
78         * generated/generated/maxloc1_8_i4.c: Regenerated.
79         * generated/generated/maxloc1_8_i8.c: Regenerated.
80         * generated/generated/maxloc1_8_r10.c: Regenerated.
81         * generated/generated/maxloc1_8_r16.c: Regenerated.
82         * generated/generated/maxloc1_8_r4.c: Regenerated.
83         * generated/generated/maxloc1_8_r8.c: Regenerated.
84         * generated/generated/maxval_i16.c: Regenerated.
85         * generated/generated/maxval_i1.c: Regenerated.
86         * generated/generated/maxval_i2.c: Regenerated.
87         * generated/generated/maxval_i4.c: Regenerated.
88         * generated/generated/maxval_i8.c: Regenerated.
89         * generated/generated/maxval_r10.c: Regenerated.
90         * generated/generated/maxval_r16.c: Regenerated.
91         * generated/generated/maxval_r4.c: Regenerated.
92         * generated/generated/maxval_r8.c: Regenerated.
93         * generated/generated/minloc1_16_i16.c: Regenerated.
94         * generated/generated/minloc1_16_i1.c: Regenerated.
95         * generated/generated/minloc1_16_i2.c: Regenerated.
96         * generated/generated/minloc1_16_i4.c: Regenerated.
97         * generated/generated/minloc1_16_i8.c: Regenerated.
98         * generated/generated/minloc1_16_r10.c: Regenerated.
99         * generated/generated/minloc1_16_r16.c: Regenerated.
100         * generated/generated/minloc1_16_r4.c: Regenerated.
101         * generated/generated/minloc1_16_r8.c: Regenerated.
102         * generated/generated/minloc1_4_i16.c: Regenerated.
103         * generated/generated/minloc1_4_i1.c: Regenerated.
104         * generated/generated/minloc1_4_i2.c: Regenerated.
105         * generated/generated/minloc1_4_i4.c: Regenerated.
106         * generated/generated/minloc1_4_i8.c: Regenerated.
107         * generated/generated/minloc1_4_r10.c: Regenerated.
108         * generated/generated/minloc1_4_r16.c: Regenerated.
109         * generated/generated/minloc1_4_r4.c: Regenerated.
110         * generated/generated/minloc1_4_r8.c: Regenerated.
111         * generated/generated/minloc1_8_i16.c: Regenerated.
112         * generated/generated/minloc1_8_i1.c: Regenerated.
113         * generated/generated/minloc1_8_i2.c: Regenerated.
114         * generated/generated/minloc1_8_i4.c: Regenerated.
115         * generated/generated/minloc1_8_i8.c: Regenerated.
116         * generated/generated/minloc1_8_r10.c: Regenerated.
117         * generated/generated/minloc1_8_r16.c: Regenerated.
118         * generated/generated/minloc1_8_r4.c: Regenerated.
119         * generated/generated/minloc1_8_r8.c: Regenerated.
120         * generated/generated/minval_i16.c: Regenerated.
121         * generated/generated/minval_i1.c: Regenerated.
122         * generated/generated/minval_i2.c: Regenerated.
123         * generated/generated/minval_i4.c: Regenerated.
124         * generated/generated/minval_i8.c: Regenerated.
125         * generated/generated/minval_r10.c: Regenerated.
126         * generated/generated/minval_r16.c: Regenerated.
127         * generated/generated/minval_r4.c: Regenerated.
128         * generated/generated/minval_r8.c: Regenerated.
129         * generated/generated/product_c10.c: Regenerated.
130         * generated/generated/product_c16.c: Regenerated.
131         * generated/generated/product_c4.c: Regenerated.
132         * generated/generated/product_c8.c: Regenerated.
133         * generated/generated/product_i16.c: Regenerated.
134         * generated/generated/product_i1.c: Regenerated.
135         * generated/generated/product_i2.c: Regenerated.
136         * generated/generated/product_i4.c: Regenerated.
137         * generated/generated/product_i8.c: Regenerated.
138         * generated/generated/product_r10.c: Regenerated.
139         * generated/generated/product_r16.c: Regenerated.
140         * generated/generated/product_r4.c: Regenerated.
141         * generated/generated/product_r8.c: Regenerated.
142         * generated/generated/sum_c10.c: Regenerated.
143         * generated/generated/sum_c16.c: Regenerated.
144         * generated/generated/sum_c4.c: Regenerated.
145         * generated/generated/sum_c8.c: Regenerated.
146         * generated/generated/sum_i16.c: Regenerated.
147         * generated/generated/sum_i1.c: Regenerated.
148         * generated/generated/sum_i2.c: Regenerated.
149         * generated/generated/sum_i4.c: Regenerated.
150         * generated/generated/sum_i8.c: Regenerated.
151         * generated/generated/sum_r10.c: Regenerated.
152         * generated/generated/sum_r16.c: Regenerated.
153         * generated/generated/sum_r4.c: Regenerated.
154         * generated/generated/sum_r8.c: Regenerated.
155
156 2011-08-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
157
158         Backport from trunk
159         PR libfortran/50192
160         * intrinsics/string_intrinsics.c (memcmp_char4):  New function.
161         * intrinsics/string_intrinsics_inc.c:  New macro MEMCMP, either
162         set to memcmp or memcmp_char4.
163         (compare_string):  Use MEMCMP, with correct size for it.
164         * libgfortran.h:  Add prototype for memcmp_char4.
165
166 2011-08-19  Tobias Burnus  <burnus@net-b.de>
167
168         PR fortran/50109
169         * io/list_read.c (eat_separator): Fix skipping over "!" lines.
170
171 2011-07-27  Tobias Burnus  <burnus@net-b.de>
172
173         Backport from mainline
174         2011-07-23  Tobias Burnus  <burnus@net-b.de>
175
176         PR fortran/49791
177         * io/list_read.c (nml_parse_qualifier): Remove check to
178         enabled extended read for another case.
179
180 2011-07-13  Janne Blomqvist  <jb@gcc.gnu.org>
181
182         Backport from trunk:
183         PR libfortran/49296
184         * io/list_read.c (read_logical): Don't error out if a valid value
185         is followed by EOF instead of a normal separator.
186         (read_integer): Likewise.
187
188 2011-07-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
189
190         Partial backport from trunk:
191         PR fortran/49479
192         * runtime/memory.c:  If size is zero, allocate a single byte.
193         * m4/eoshift1.m4:  Remove double allocation.
194         * m4/eoshift3.m4:  Likewise.
195         * generated/eoshift1_4.c:  Regenerated.
196         * generated/eoshift1_8.c:  Regenerated.
197         * generated/eoshift1_16.c:  Regenerated.
198         * generated/eoshift3_4.c:  Regenerated.
199         * generated/eoshift3_8.c:  Regenerated.
200         * generated/eoshift3_16.c:  Regenerated.
201
202 2011-07-03  Janne Blomqvist  <jb@gcc.gnu.org>
203
204         Backport from mainline:
205         PR libfortran/49296
206         * io/list_read.c (read_character): Accept EOF as a separator when
207         reading string.
208
209 2011-06-27  Release Manager
210
211         * GCC 4.6.1 released.
212
213 2011-04-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
214
215         Backport from mainline:
216         PR libgfortran/48030
217         * io/read.c (read_x): Re-implement using fbuf_getc.
218
219 2011-04-18  Janne Blomqvist  <jb@gcc.gnu.org>
220
221         PR libfortran/47571
222         * configure: Regenerated.
223         * config.h.in: Regenerated.
224         * acinclude.m4: Add alpha*-dec-osf* to gthread blacklist.
225         * configure.ac: Use separate symbol for clock_gettime in librt.
226         * intrinsics/system_clock.c: Use weakrefs only when needed and
227         supported.
228
229 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
230
231         Backport from mainline:
232         2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
233
234         PR bootstrap/48135
235         * configure.ac (gfortran_use_symver): Handle --disable-symvers.
236         * configure: Regenerate.
237
238 2011-03-25  Release Manager
239
240         * GCC 4.6.0 released.
241
242 2011-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
243
244         PR fortran/47571
245         * intrinsics/system_clock.c [__alpha__ && __osf__]
246         (HAVE_CLOCK_GETTIME): Undef.
247
248 2011-03-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
249
250         PR libfortran/48066
251         * m4/ifunction.m4:  If return array is empty, return.
252         * m4/ifunction_logical.m4:  Likewise.
253         * generated/all_l16.c: Regenerated.
254         * generated/all_l1.c: Regenerated.
255         * generated/all_l2.c: Regenerated.
256         * generated/all_l4.c: Regenerated.
257         * generated/all_l8.c: Regenerated.
258         * generated/any_l16.c: Regenerated.
259         * generated/any_l1.c: Regenerated.
260         * generated/any_l2.c: Regenerated.
261         * generated/any_l4.c: Regenerated.
262         * generated/any_l8.c: Regenerated.
263         * generated/count_16_l.c: Regenerated.
264         * generated/count_1_l.c: Regenerated.
265         * generated/count_2_l.c: Regenerated.
266         * generated/count_4_l.c: Regenerated.
267         * generated/count_8_l.c: Regenerated.
268         * generated/maxloc1_16_i16.c: Regenerated.
269         * generated/maxloc1_16_i1.c: Regenerated.
270         * generated/maxloc1_16_i2.c: Regenerated.
271         * generated/maxloc1_16_i4.c: Regenerated.
272         * generated/maxloc1_16_i8.c: Regenerated.
273         * generated/maxloc1_16_r10.c: Regenerated.
274         * generated/maxloc1_16_r16.c: Regenerated.
275         * generated/maxloc1_16_r4.c: Regenerated.
276         * generated/maxloc1_16_r8.c: Regenerated.
277         * generated/maxloc1_4_i16.c: Regenerated.
278         * generated/maxloc1_4_i1.c: Regenerated.
279         * generated/maxloc1_4_i2.c: Regenerated.
280         * generated/maxloc1_4_i4.c: Regenerated.
281         * generated/maxloc1_4_i8.c: Regenerated.
282         * generated/maxloc1_4_r10.c: Regenerated.
283         * generated/maxloc1_4_r16.c: Regenerated.
284         * generated/maxloc1_4_r4.c: Regenerated.
285         * generated/maxloc1_4_r8.c: Regenerated.
286         * generated/maxloc1_8_i16.c: Regenerated.
287         * generated/maxloc1_8_i1.c: Regenerated.
288         * generated/maxloc1_8_i2.c: Regenerated.
289         * generated/maxloc1_8_i4.c: Regenerated.
290         * generated/maxloc1_8_i8.c: Regenerated.
291         * generated/maxloc1_8_r10.c: Regenerated.
292         * generated/maxloc1_8_r16.c: Regenerated.
293         * generated/maxloc1_8_r4.c: Regenerated.
294         * generated/maxloc1_8_r8.c: Regenerated.
295         * generated/maxval_i16.c: Regenerated.
296         * generated/maxval_i1.c: Regenerated.
297         * generated/maxval_i2.c: Regenerated.
298         * generated/maxval_i4.c: Regenerated.
299         * generated/maxval_i8.c: Regenerated.
300         * generated/maxval_r10.c: Regenerated.
301         * generated/maxval_r16.c: Regenerated.
302         * generated/maxval_r4.c: Regenerated.
303         * generated/maxval_r8.c: Regenerated.
304         * generated/minloc1_16_i16.c: Regenerated.
305         * generated/minloc1_16_i1.c: Regenerated.
306         * generated/minloc1_16_i2.c: Regenerated.
307         * generated/minloc1_16_i4.c: Regenerated.
308         * generated/minloc1_16_i8.c: Regenerated.
309         * generated/minloc1_16_r10.c: Regenerated.
310         * generated/minloc1_16_r16.c: Regenerated.
311         * generated/minloc1_16_r4.c: Regenerated.
312         * generated/minloc1_16_r8.c: Regenerated.
313         * generated/minloc1_4_i16.c: Regenerated.
314         * generated/minloc1_4_i1.c: Regenerated.
315         * generated/minloc1_4_i2.c: Regenerated.
316         * generated/minloc1_4_i4.c: Regenerated.
317         * generated/minloc1_4_i8.c: Regenerated.
318         * generated/minloc1_4_r10.c: Regenerated.
319         * generated/minloc1_4_r16.c: Regenerated.
320         * generated/minloc1_4_r4.c: Regenerated.
321         * generated/minloc1_4_r8.c: Regenerated.
322         * generated/minloc1_8_i16.c: Regenerated.
323         * generated/minloc1_8_i1.c: Regenerated.
324         * generated/minloc1_8_i2.c: Regenerated.
325         * generated/minloc1_8_i4.c: Regenerated.
326         * generated/minloc1_8_i8.c: Regenerated.
327         * generated/minloc1_8_r10.c: Regenerated.
328         * generated/minloc1_8_r16.c: Regenerated.
329         * generated/minloc1_8_r4.c: Regenerated.
330         * generated/minloc1_8_r8.c: Regenerated.
331         * generated/minval_i16.c: Regenerated.
332         * generated/minval_i1.c: Regenerated.
333         * generated/minval_i2.c: Regenerated.
334         * generated/minval_i4.c: Regenerated.
335         * generated/minval_i8.c: Regenerated.
336         * generated/minval_r10.c: Regenerated.
337         * generated/minval_r16.c: Regenerated.
338         * generated/minval_r4.c: Regenerated.
339         * generated/minval_r8.c: Regenerated.
340         * generated/product_c10.c: Regenerated.
341         * generated/product_c16.c: Regenerated.
342         * generated/product_c4.c: Regenerated.
343         * generated/product_c8.c: Regenerated.
344         * generated/product_i16.c: Regenerated.
345         * generated/product_i1.c: Regenerated.
346         * generated/product_i2.c: Regenerated.
347         * generated/product_i4.c: Regenerated.
348         * generated/product_i8.c: Regenerated.
349         * generated/product_r10.c: Regenerated.
350         * generated/product_r16.c: Regenerated.
351         * generated/product_r4.c: Regenerated.
352         * generated/product_r8.c: Regenerated.
353         * generated/sum_c10.c: Regenerated.
354         * generated/sum_c16.c: Regenerated.
355         * generated/sum_c4.c: Regenerated.
356         * generated/sum_c8.c: Regenerated.
357         * generated/sum_i16.c: Regenerated.
358         * generated/sum_i1.c: Regenerated.
359         * generated/sum_i2.c: Regenerated.
360         * generated/sum_i4.c: Regenerated.
361         * generated/sum_i8.c: Regenerated.
362         * generated/sum_r10.c: Regenerated.
363         * generated/sum_r16.c: Regenerated.
364         * generated/sum_r4.c: Regenerated.
365         * generated/sum_r8.c: Regenerated.
366
367 2011-03-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
368
369         PR libgfortran/48047
370         * io/write_float.def (write_float): Change MIN_FIELD_WIDTH to 48.
371
372 2011-03-04  Janne Blomqvist  <jb@gcc.gnu.org>
373
374         PR libfortran/47802
375         * intrinsics/ctime.c (strctime): Use builtins to check localtime_r
376         return type.
377
378 2011-03-04  Janne Blomqvist  <jb@gcc.gnu.org>
379
380         PR libfortran/47802
381         * intrinsics/ctime.c (strctime): Don't use return value of
382         localtime_r.
383
384 2011-02-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
385
386         PR libgfortran/47567
387         * io/write_float.def (output_float): Move handling of w = 0 to after
388         output rounding. Check for zero and set zero_flag accordingly. Set
389         width according to zero_flag. Add better comments.
390
391 2011-02-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
392
393         PR libgfortran/47778
394         * io/list_read.c (namelist_read): Intialize the error string buffere.
395         If pprev_nl was used during the previous namelist read and the rank
396         was zero, reset the pointer to NULL for the next namelist read.
397
398 2011-02-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
399
400         PR libfortran/45165
401         * unix.c (fallback_access): Fix file descriptor leaks.
402
403 2011-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
404
405         * acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): Set shell variable
406         tested in configure.host.
407         * configure: Regenerate.
408
409 2011-02-24  Janne Blomqvist  <jb@gcc.gnu.org>
410
411         PR libfortran/47802
412         * config.h.in: Regenerated.
413         * configure: Regenerated.
414         * configure.ac: Remove checks for ctime and ctime_r, add check for
415         strftime.
416         * intrinsics/date_and_time.c (localtime_r): Move fallback
417         implementation to time_1.h.
418         * intrinsics/time_1.h (localtime_r): Fallback implementation.
419         * intrinsics/ctime.c: Include time_1.h.
420         (ctime_r): Remove fallback implementation.
421         (strctime): New function.
422         (fdate): Use strctime instead of ctime_r.
423         (fdate_sub): Likewise.
424         (ctime): Likewise.
425         (ctime_sub): Likewise.
426
427 2011-02-24  Jakub Jelinek  <jakub@redhat.com>
428
429         PR fortran/47878
430         * io/transfer.c (read_sf): Call fbuf_getptr only at the end,
431         and subtract n, dtp->u.p.sf_seen_eor and seen_comma from it.
432
433 2011-02-24  Janne Blomqvist  <jb@gcc.gnu.org>
434
435         PR libfortran/47802
436         * configure.ac: Add test for POSIX getpwuid_r.
437         * intrinsics/getlog.c (getlog): CPP test for
438         HAVE_POSIX_GETPWUID_R.
439         * config.h.in: Regenerated.
440         * configure: Regenerated.
441
442 2011-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
443
444         PR libgfortran/47567
445         * io/write_float.def (output_float): Remove special case handling of
446         zero with width 1.
447
448 2011-02-23  Janne Blomqvist  <jb@gcc.gnu.org>
449             Jerry DeLisle    <jvdelisle@gcc.gnu.org>
450
451         PR libfortran/47694
452         * io/fbuf.h (fbuf_getptr): New inline function.
453         * io/transfer.c (read_sf): Use fbuf_getptr and fbuf_getc to scan
454         through the string instead of fbuf_read.
455
456 2011-02-22  Tobias Burnus  <burnus@net-b.de>
457             Kai-Uwe Eckhardt  <kuehro@gmx.de>
458
459         PR libfortran/47830
460         * intrinsics/c99_functions.c (roundl): Make C valid for
461         HAVE_NEXTAFTERL.
462
463 2011-02-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
464
465         PR libgfortran/47567
466         * io/write_float.def (output_float): Adjust width for F0.d to
467         allow space for negative signs on zero.
468
469 2011-02-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
470
471         PR libgfortran/47667
472         * io/list_read.c (read_logical): Check for end of line before calling
473         eat_line. (read_integer): Likewise. (parse_real): Don't unget the
474         separator. Check for end of line before calling eat_line.
475         (read_complex): Allow line-end before and after parenthesis and comma.
476         Check for end of line before calling eat_line. (read_real): Check for
477         end of line before calling eat_line.
478
479 2011-02-16  Jakub Jelinek  <jakub@redhat.com>
480
481         PR libfortran/47757
482         * gfortran.map (GFORTRAN_1.4): Export
483         _gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and
484         _gfortran_{cshift0,eoshift{0,2}}_16_char4.
485
486 2011-02-15  Tobias Burnus  <burnus@net-b.de>
487
488         PR fortran/47716
489         PR fortran/47648
490         * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Use check from
491         libquadmath, which uses more features.
492         * configure: Regenerate.
493
494 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
495
496         PR fortran/47642
497         * io/write_float.def (DTOAQ): Use quadmath_snprintf instead of
498         quadmath_flt128tostr.
499         * io/transfer128.c (tmp2): Initialize to quadmath_snprintf instead
500         of quadmath_flt128tostr.
501
502 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
503
504         * Makefile.in: Regenerate.
505         * aclocal.m4: Likewise.
506         * configure: Likewise.
507
508 2011-02-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
509
510         PR libgfortran/47567
511         * io/write_float.def (output_float): Eliminate some redundant code.
512         Adjust width for case of F0.X for values of zero and all other values.
513         Expand cases where '*' is set to give cleaner results.
514
515 2011-02-05  Janne Blomqvist  <jb@gcc.gnu.org>
516
517         PR libfortran/47571
518         * intrinsics/time_1.h (GF_CLOCK_MONOTONIC): Move to system_clock.c.
519         (weak_gettime): Likewise.
520         (gf_gettime): Change API, move weak_gettime() usage to
521         system_clock.c
522         * intrinsics/system_clock.c (GTHREAD_USE_WEAK): Define.
523         (gf_gettime_mono): New function.
524         (system_clock_4): Use gf_gettime_mono().
525         (system_clock_8): Likewise.
526         * intrinsics/date_and_time.c (date_and_time): Update gf_gettime()
527         usage.
528
529 2011-02-02  Janne Blomqvist  <jb@gcc.gnu.org>
530
531         PR libfortran/47571
532         * configure: Regenerated.
533         * configure.ac: Don't add librt to LIBS.
534         * intrinsics/time_1.h (weak_gettime): Weakref trickery for
535         clock_gettime().
536         (gf_gettime): Use weak_gettime() instead of clock_gettime().
537
538 2011-02-01  Janne Blomqvist  <jb@gcc.gnu.org>
539
540         * intrinsics/time_1.h: Include errno.h needed by fallbacks.
541
542 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
543
544         * intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
545
546 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
547
548         * configure.ac: Check for clock_gettime().
549         * configure: Regenerated.
550         * config.h.in: Regenerated.
551         * intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
552         times() fallback.
553         (gf_gettime): New function.
554         * intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
555         * intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
556         * intrinsics/dtime.c (dtime_sub): Use gf_cputime.
557         * intrinsics/etime.c (etime_sub): Use gf_cputime.
558         * intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
559         (system_clock_8): Use gf_gettime, increase count rate to allow
560         nanosecond precision, remove overflow prone branch.
561
562 2011-01-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
563
564         PR libgfortran/47434
565         * io/write_float.def (write_infnan): Use calculate_sign to determine
566         if the sign should be given and check field widths accordingly.
567
568 2011-01-29  Kai Tietz  <kai.tietz@onevision.com>
569
570         * intrinsics/ctime.c (ctime_r): Improve implementation.
571
572 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
573
574         PR libfortran/47431
575         * config.h.in: Regenerated.
576         * configure: Regenerated.
577         * configure.ac: Add check for ctime_r().
578         * intrinsics/ctime.c (ctime_r): Fallback implementation.
579         (fdate): Use ctime_r() instead of ctime().
580         (fdate_sub): Likewise.
581         (ctime): Likewise.
582         (ctime_sub): Likewise.
583
584 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
585
586         PR libfortran/47432
587         * config.h.in: Regenerated.
588         * configure: Regenerated.
589         * configure.ac: Add check for ttyname_r.
590         * io/unix.h: Add TTY_NAME_MAX, change stream_ttyname prototype.
591         * io/unix.c (stream_ttyname): Use ttyname_r if available, conform
592         to new prototype.
593         * io/inquire.c (inquire_via_unit): Use changed stream_ttyname.
594         * io/intrinsics.c (ttynam_sub): Likewise.
595         (ttynam): Likewise.
596
597 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
598
599         PR libfortran/47491
600         * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS to enable common
601         extensions.
602         * config.h.in: Regenerate.
603         * configure: Regenerate.
604
605 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
606
607         PR libgfortran/47285
608         * io/write_float.def (write_infnan): Adjust processor selected width
609         to 3 if NaN.
610
611 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
612
613         PR libgfortran/47285
614         * io/write_float.def (output_float): Return SUCCESS or FAILURE and use
615         the result to set the padding.
616
617 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
618
619         * intrinsics/getlog.c (getlog): Fix label/statement issue.
620
621 2011-01-25  Janne Blomqvist  <jb@gcc.gnu.org>
622
623         PR libfortran/47375
624         * config.h.in: Regenerated.
625         * configure: Regenerated.
626         * configure.ac: Add check for getpwuid_r.
627         * intrinsics/getlog.c (getlog): Use getpwuid_r() if available.
628
629 2011-01-22  Janne Blomqvist  <jb@gcc.gnu.org>
630
631         PR libfortran/46267
632         * config.h.in: Regenerated.
633         * configure: Regenerated.
634         * configure.ac: Check presence of strerror_r.
635         * intrinsics/gerror.c (gerror): Use gf_strerror, modify logic.
636         * io/unix.c (get_oserror): Remove.
637         * libgfortran.h (gf_strerror): Add prototype.
638         (get_oserror): Remove prototype.
639         * runtime/error.c (gf_strerror): New function.
640         (os_error): Use gf_strerror instead of get_oserror.
641         (generate_errror): Likewise.
642
643 2011-01-17  Janne Blomqvist  <jb@gcc.gnu.org>
644
645         PR libfortran/47296
646         * io/unix.c (tempfile): Set opp->file and opp->file_len also if an
647         error occurs.
648
649 2011-01-16  Jakub Jelinek  <jakub@redhat.com>
650
651         PR fortran/46625
652         * io/write_float.def (DTOAQ): Use quadmath_flt128tostr
653         instead of quadmath_dtoa.
654         * io/transfer128.c (tmp1, tmp2): New variables, bring in
655         strtoflt128 and quadmath_flt128tostr.
656         (transfer_real128, transfer_real128_write, transfer_complex128,
657         transfer_complex128_write): Remove tmp1/tmp2 variables.
658         * io/read.c (convert_real): Use strtoflt128 instead of
659         quadmath_strtopQ, adjust for the changed arguments and return
660         value.
661
662 2011-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
663
664         PR libgfortran/47296
665         * io/unix.c (unpack_filename): Return non-zero if the filename passed
666         in is NULL.
667
668 2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
669
670         PR libgfortran/47154
671         * io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
672         duplicate calls via next_record.
673
674 \f
675 Copyright (C) 2011 Free Software Foundation, Inc.
676
677 Copying and distribution of this file, with or without modification,
678 are permitted in any medium without royalty provided the copyright
679 notice and this notice are preserved.