OSDN Git Service

PR 46686 Fix incorrect comment.
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2011-11-09  Janne Blomqvist  <jb@gcc.gnu.org>
2
3         PR fortran/46686
4         * runtime/backtrace.c (show_backtrace): Fix incorrect comment.
5
6 2011-11-09  Tobias Burnus  <burnus@net-b.de>
7
8         * configure.ac: Make more cross-compile friendly.
9         * Makefile.in: Regenerate.
10         * aclocal.m4: Regenerate.
11         * config.h.in: Regenerate.
12         * configure: Regenerate.
13
14 2011-11-09  Janne Blomqvist  <jb@gcc.gnu.org>
15
16         PR fortran/46686
17         * configure.ac: Don't check execinfo.h, backtrace,
18         backtrace_symbols_fd. Check execve instead of execvp. Call
19         GCC_CHECK_UNWIND_GETIPINFO.
20         * runtime/backtrace.c: Don't include unused headers, include
21         limits.h and unwind.h.
22         (CAN_FORK): Check execve instead of execvp.
23         (GLIBC_BACKTRACE): Remove.
24         (bt_header): Conform to gdb backtrace format.
25         (struct bt_state): New struct.
26         (trace_function): New function.
27         (show_backtrace): Use _Unwind_Backtrace from libgcc instead of
28         glibc backtrace functions.
29         * Makefile.in: Regenerated.
30         * aclocal.m4: Regenerated.
31         * config.h.in: Regenerated.
32         * configure: Regenerated.
33
34 2011-11-09  Janne Blomqvist  <jb@gcc.gnu.org>
35
36         PR libfortran/50016
37         * io/inquire.c (inquire_via_unit): Flush the unit and use ssize.
38         * io/unix.c (buf_flush): Don't call _commit.
39
40 2011-11-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
41
42         PR libfortran/47972
43         * runtime/error.c (gf_strerror): Silence warning.
44
45 2011-11-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
46
47         PR libfortran/47970
48         * intrinsics/c99_functions.c (round): Move higher in the file.
49
50 2011-11-07  Janne Blomqvist  <jb@gcc.gnu.org>
51
52         PR libfortran/45723
53         * io/open.c (new_unit): Don't check file size before attempting
54         seek.
55
56 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
57
58         * Makefile.am (AM_CPPFLAGS): Add
59         -I$(srcdir)/$(MULTISRCTOP)../libgcc, -I$(MULTIBUILDTOP)../libgcc.
60         * Makefile.in: Regenerate.
61         * acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Remove.
62         * configure.ac (LIBGFOR_CHECK_GTHR_DEFAULT): Likewise.
63         * configure: Regenerate.
64         * config.h.in: Regenerate.
65
66 2011-11-01  Janne Blomqvist  <jb@gcc.gnu.org>
67
68         * io/io.h (next_available_newunit): Remove prototype.
69         * io/unit.h (next_available_newunit): Make variable static,
70         initialize it.
71         (init_units): Don't initialize next_available_newunit.
72         (get_unique_unit_number): Use atomic builtin if available.
73
74 2011-10-31  Janne Blomqvist  <jb@gcc.gnu.org>
75
76         * io/inquire.c (inquire_via_unit): Check whether we're at the
77         beginning or end if the position is unspecified. If the position
78         is not one of the 3 standard ones, return unspecified.
79         * io/io.h (update_position): Remove prototype.
80         * io/transfer.c (next_record): Set the position to unspecified,
81         letting inquire figure it out more exactly when needed.
82         * io/unit.c (update_position): Remove function.
83
84 2011-10-31  Janne Blomqvist  <jb@gcc.gnu.org>
85
86         * io/unix.h (struct stream): Add size function pointer.
87         (ssize): New inline function.
88         (file_length): Remove prototype.
89         * io/unix.c (raw_size): New function.
90         (raw_init): Initialize st.size pointer.
91         (buf_size): New function.
92         (buf_init): Initialize st.size pointer.
93         (open_internal): Likewise.
94         (open_internal4): Likewise.
95         (file_length): Remove function.
96         * io/file_pos.c (st_rewind): Use ssize instead of file_length.
97         * io/open.c (test_endfile): Likewise.
98         * io/transfer.c (data_transfer_init): Likewise.
99         (next_record_r): Likewise.
100         (next_record_w): Likewise.
101         * io/unit.c (update_position): Likewise.
102
103 2011-10-31  Janne Blomqvist  <jb@gcc.gnu.org>
104
105         * io/file_pos.c (st_rewind): Handle regular and special files
106         identically.
107         * io/intrinsics.c (fseek_sub): Don't check whether we think the
108         file is seekable, just do what the caller says.
109         * io/transfer.c (skip_record): First try to seek, then fallback to
110         reading and throwing away what we read.
111         * io/unit.c (update_position): Don't check whether file is
112         seekable, just try to do what we're told.
113         (unit_truncate): Likewise.
114         * io/unix.c (struct unix_stream): Remove special_file flag.
115         (buf_flush): Remove code for handling unseekable files.
116         (buf_seek): Likewise.
117         (fd_to_stream): Use buffered IO only for regular files.
118         (file_length): Remove is_seekable() call.
119         (is_seekable): Remove function.
120         (is_special): Likewise.
121         * io/unix.h: Remove prototypes for is_seekable and is_special.
122
123 2011-09-10  Thomas Koenig  <tkoenig@gcc.gnu.org>
124
125         PR fortran/49479
126         * generated/m4/ifunction.m4:  Always call internal_malloc_size
127         even when there is a zero-sized return array.
128         * generated/generated/maxloc1_16_i16.c: Regenerated.
129         * generated/generated/maxloc1_16_i1.c: Regenerated.
130         * generated/generated/maxloc1_16_i2.c: Regenerated.
131         * generated/generated/maxloc1_16_i4.c: Regenerated.
132         * generated/generated/maxloc1_16_i8.c: Regenerated.
133         * generated/generated/maxloc1_16_r10.c: Regenerated.
134         * generated/generated/maxloc1_16_r16.c: Regenerated.
135         * generated/generated/maxloc1_16_r4.c: Regenerated.
136         * generated/generated/maxloc1_16_r8.c: Regenerated.
137         * generated/generated/maxloc1_4_i16.c: Regenerated.
138         * generated/generated/maxloc1_4_i1.c: Regenerated.
139         * generated/generated/maxloc1_4_i2.c: Regenerated.
140         * generated/generated/maxloc1_4_i4.c: Regenerated.
141         * generated/generated/maxloc1_4_i8.c: Regenerated.
142         * generated/generated/maxloc1_4_r10.c: Regenerated.
143         * generated/generated/maxloc1_4_r16.c: Regenerated.
144         * generated/generated/maxloc1_4_r4.c: Regenerated.
145         * generated/generated/maxloc1_4_r8.c: Regenerated.
146         * generated/generated/maxloc1_8_i16.c: Regenerated.
147         * generated/generated/maxloc1_8_i1.c: Regenerated.
148         * generated/generated/maxloc1_8_i2.c: Regenerated.
149         * generated/generated/maxloc1_8_i4.c: Regenerated.
150         * generated/generated/maxloc1_8_i8.c: Regenerated.
151         * generated/generated/maxloc1_8_r10.c: Regenerated.
152         * generated/generated/maxloc1_8_r16.c: Regenerated.
153         * generated/generated/maxloc1_8_r4.c: Regenerated.
154         * generated/generated/maxloc1_8_r8.c: Regenerated.
155         * generated/generated/maxval_i16.c: Regenerated.
156         * generated/generated/maxval_i1.c: Regenerated.
157         * generated/generated/maxval_i2.c: Regenerated.
158         * generated/generated/maxval_i4.c: Regenerated.
159         * generated/generated/maxval_i8.c: Regenerated.
160         * generated/generated/maxval_r10.c: Regenerated.
161         * generated/generated/maxval_r16.c: Regenerated.
162         * generated/generated/maxval_r4.c: Regenerated.
163         * generated/generated/maxval_r8.c: Regenerated.
164         * generated/generated/minloc1_16_i16.c: Regenerated.
165         * generated/generated/minloc1_16_i1.c: Regenerated.
166         * generated/generated/minloc1_16_i2.c: Regenerated.
167         * generated/generated/minloc1_16_i4.c: Regenerated.
168         * generated/generated/minloc1_16_i8.c: Regenerated.
169         * generated/generated/minloc1_16_r10.c: Regenerated.
170         * generated/generated/minloc1_16_r16.c: Regenerated.
171         * generated/generated/minloc1_16_r4.c: Regenerated.
172         * generated/generated/minloc1_16_r8.c: Regenerated.
173         * generated/generated/minloc1_4_i16.c: Regenerated.
174         * generated/generated/minloc1_4_i1.c: Regenerated.
175         * generated/generated/minloc1_4_i2.c: Regenerated.
176         * generated/generated/minloc1_4_i4.c: Regenerated.
177         * generated/generated/minloc1_4_i8.c: Regenerated.
178         * generated/generated/minloc1_4_r10.c: Regenerated.
179         * generated/generated/minloc1_4_r16.c: Regenerated.
180         * generated/generated/minloc1_4_r4.c: Regenerated.
181         * generated/generated/minloc1_4_r8.c: Regenerated.
182         * generated/generated/minloc1_8_i16.c: Regenerated.
183         * generated/generated/minloc1_8_i1.c: Regenerated.
184         * generated/generated/minloc1_8_i2.c: Regenerated.
185         * generated/generated/minloc1_8_i4.c: Regenerated.
186         * generated/generated/minloc1_8_i8.c: Regenerated.
187         * generated/generated/minloc1_8_r10.c: Regenerated.
188         * generated/generated/minloc1_8_r16.c: Regenerated.
189         * generated/generated/minloc1_8_r4.c: Regenerated.
190         * generated/generated/minloc1_8_r8.c: Regenerated.
191         * generated/generated/minval_i16.c: Regenerated.
192         * generated/generated/minval_i1.c: Regenerated.
193         * generated/generated/minval_i2.c: Regenerated.
194         * generated/generated/minval_i4.c: Regenerated.
195         * generated/generated/minval_i8.c: Regenerated.
196         * generated/generated/minval_r10.c: Regenerated.
197         * generated/generated/minval_r16.c: Regenerated.
198         * generated/generated/minval_r4.c: Regenerated.
199         * generated/generated/minval_r8.c: Regenerated.
200         * generated/generated/product_c10.c: Regenerated.
201         * generated/generated/product_c16.c: Regenerated.
202         * generated/generated/product_c4.c: Regenerated.
203         * generated/generated/product_c8.c: Regenerated.
204         * generated/generated/product_i16.c: Regenerated.
205         * generated/generated/product_i1.c: Regenerated.
206         * generated/generated/product_i2.c: Regenerated.
207         * generated/generated/product_i4.c: Regenerated.
208         * generated/generated/product_i8.c: Regenerated.
209         * generated/generated/product_r10.c: Regenerated.
210         * generated/generated/product_r16.c: Regenerated.
211         * generated/generated/product_r4.c: Regenerated.
212         * generated/generated/product_r8.c: Regenerated.
213         * generated/generated/sum_c10.c: Regenerated.
214         * generated/generated/sum_c16.c: Regenerated.
215         * generated/generated/sum_c4.c: Regenerated.
216         * generated/generated/sum_c8.c: Regenerated.
217         * generated/generated/sum_i16.c: Regenerated.
218         * generated/generated/sum_i1.c: Regenerated.
219         * generated/generated/sum_i2.c: Regenerated.
220         * generated/generated/sum_i4.c: Regenerated.
221         * generated/generated/sum_i8.c: Regenerated.
222         * generated/generated/sum_r10.c: Regenerated.
223         * generated/generated/sum_r16.c: Regenerated.
224         * generated/generated/sum_r4.c: Regenerated.
225         * generated/generated/sum_r8.c: Regenerated.
226
227 2011-09-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
228
229         * generated/bessel_r4.c: Regenerated.
230         * generated/bessel_r8.c: Regenerated.
231         * generated/bessel_r10.c: Regenerated.
232         * generated/bessel_r16.c: Regenerated.
233
234 2011-08-29  Tobias Burnus  <burnus@net-b.de>
235
236         * caf/libcaf.h (_gfortran_caf_deregister): Update prototype.
237         * caf/mpi.c (_gfortran_caf_deregister): Modify prototype,
238         actually free memory and add error diagnostic.
239         (_gfortran_caf_finalize): Add additional free calls.
240         * caf/single.c (_gfortran_caf_deregister): Modify prototype,
241         actually free memory and add error diagnostic.
242         (_gfortran_caf_finalize): Add additional free calls.
243
244 2011-08-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
245
246         PR libfortran/50192
247         * intrinsics/string_intrinsics.c (memcmp_char4):  New function.
248         * intrinsics/string_intrinsics_inc.c:  New macro MEMCMP, either
249         set to memcmp or memcmp_char4.
250         (compare_string):  Use MEMCMP, with correct size for it.
251         * libgfortran.h:  Add prototype for memcmp_char4.
252
253 2011-08-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
254
255         PR fortran/40866
256         * generated/iall_i1.c: Regenerated.
257         * generated/iall_i16.c: Regenerated.
258         * generated/iall_i2.c: Regenerated.
259         * generated/iall_i4.c: Regenerated.
260         * generated/iall_i8.c: Regenerated.
261         * generated/iany_i1.c: Regenerated.
262         * generated/iany_i16.c: Regenerated.
263         * generated/iany_i2.c: Regenerated.
264         * generated/iany_i4.c: Regenerated.
265         * generated/iany_i8.c: Regenerated.
266         * generated/iparity_i1.c: Regenerated.
267         * generated/iparity_i16.c: Regenerated.
268         * generated/iparity_i2.c: Regenerated.
269         * generated/iparity_i4.c: Regenerated.
270         * generated/iparity_i8.c: Regenerated.
271         * generated/norm2_r10.c: Regenerated.
272         * generated/norm2_r16.c: Regenerated.
273         * generated/norm2_r4.c: Regenerated.
274         * generated/norm2_r8.c: Regenerated.
275         * generated/parity_l1.c: Regenerated.
276         * generated/parity_l16.c: Regenerated.
277         * generated/parity_l2.c: Regenerated.
278         * generated/parity_l4.c: Regenerated.
279         * generated/parity_l8.c: Regenerated.
280         * generated/misc_specifics.F90: Regenerated (comment change).
281         * generated/_abs_c10.F90: Regenerated (comment change).
282         * generated/_abs_c16.F90: Regenerated (comment change).
283         * generated/_abs_c4.F90: Regenerated (comment change).
284         * generated/_abs_c8.F90: Regenerated (comment change).
285         * generated/_abs_i16.F90: Regenerated (comment change).
286         * generated/_abs_i4.F90: Regenerated (comment change).
287         * generated/_abs_i8.F90: Regenerated (comment change).
288         * generated/_abs_r10.F90: Regenerated (comment change).
289         * generated/_abs_r16.F90: Regenerated (comment change).
290         * generated/_abs_r4.F90: Regenerated (comment change).
291         * generated/_abs_r8.F90: Regenerated (comment change).
292         * generated/_acosh_r10.F90: Regenerated (comment change).
293         * generated/_acosh_r16.F90: Regenerated (comment change).
294         * generated/_acosh_r4.F90: Regenerated (comment change).
295         * generated/_acosh_r8.F90: Regenerated (comment change).
296         * generated/_acos_r10.F90: Regenerated (comment change).
297         * generated/_acos_r16.F90: Regenerated (comment change).
298         * generated/_acos_r4.F90: Regenerated (comment change).
299         * generated/_acos_r8.F90: Regenerated (comment change).
300         * generated/_aimag_c10.F90: Regenerated (comment change).
301         * generated/_aimag_c16.F90: Regenerated (comment change).
302         * generated/_aimag_c4.F90: Regenerated (comment change).
303         * generated/_aimag_c8.F90: Regenerated (comment change).
304         * generated/_aint_r10.F90: Regenerated (comment change).
305         * generated/_aint_r16.F90: Regenerated (comment change).
306         * generated/_aint_r4.F90: Regenerated (comment change).
307         * generated/_aint_r8.F90: Regenerated (comment change).
308         * generated/_anint_r10.F90: Regenerated (comment change).
309         * generated/_anint_r16.F90: Regenerated (comment change).
310         * generated/_anint_r4.F90: Regenerated (comment change).
311         * generated/_anint_r8.F90: Regenerated (comment change).
312         * generated/_asinh_r10.F90: Regenerated (comment change).
313         * generated/_asinh_r16.F90: Regenerated (comment change).
314         * generated/_asinh_r4.F90: Regenerated (comment change).
315         * generated/_asinh_r8.F90: Regenerated (comment change).
316         * generated/_asin_r10.F90: Regenerated (comment change).
317         * generated/_asin_r16.F90: Regenerated (comment change).
318         * generated/_asin_r4.F90: Regenerated (comment change).
319         * generated/_asin_r8.F90: Regenerated (comment change).
320         * generated/_atan2_r10.F90: Regenerated (comment change).
321         * generated/_atan2_r16.F90: Regenerated (comment change).
322         * generated/_atan2_r4.F90: Regenerated (comment change).
323         * generated/_atan2_r8.F90: Regenerated (comment change).
324         * generated/_atanh_r10.F90: Regenerated (comment change).
325         * generated/_atanh_r16.F90: Regenerated (comment change).
326         * generated/_atanh_r4.F90: Regenerated (comment change).
327         * generated/_atanh_r8.F90: Regenerated (comment change).
328         * generated/_atan_r10.F90: Regenerated (comment change).
329         * generated/_atan_r16.F90: Regenerated (comment change).
330         * generated/_atan_r4.F90: Regenerated (comment change).
331         * generated/_atan_r8.F90: Regenerated (comment change).
332         * generated/_conjg_c10.F90: Regenerated (comment change).
333         * generated/_conjg_c16.F90: Regenerated (comment change).
334         * generated/_conjg_c4.F90: Regenerated (comment change).
335         * generated/_conjg_c8.F90: Regenerated (comment change).
336         * generated/_cosh_r10.F90: Regenerated (comment change).
337         * generated/_cosh_r16.F90: Regenerated (comment change).
338         * generated/_cosh_r4.F90: Regenerated (comment change).
339         * generated/_cosh_r8.F90: Regenerated (comment change).
340         * generated/_cos_c10.F90: Regenerated (comment change).
341         * generated/_cos_c16.F90: Regenerated (comment change).
342         * generated/_cos_c4.F90: Regenerated (comment change).
343         * generated/_cos_c8.F90: Regenerated (comment change).
344         * generated/_cos_r10.F90: Regenerated (comment change).
345         * generated/_cos_r16.F90: Regenerated (comment change).
346         * generated/_cos_r4.F90: Regenerated (comment change).
347         * generated/_cos_r8.F90: Regenerated (comment change).
348         * generated/_dim_i16.F90: Regenerated (comment change).
349         * generated/_dim_i4.F90: Regenerated (comment change).
350         * generated/_dim_i8.F90: Regenerated (comment change).
351         * generated/_dim_r10.F90: Regenerated (comment change).
352         * generated/_dim_r16.F90: Regenerated (comment change).
353         * generated/_dim_r4.F90: Regenerated (comment change).
354         * generated/_dim_r8.F90: Regenerated (comment change).
355         * generated/_exp_c10.F90: Regenerated (comment change).
356         * generated/_exp_c16.F90: Regenerated (comment change).
357         * generated/_exp_c4.F90: Regenerated (comment change).
358         * generated/_exp_c8.F90: Regenerated (comment change).
359         * generated/_exp_r10.F90: Regenerated (comment change).
360         * generated/_exp_r16.F90: Regenerated (comment change).
361         * generated/_exp_r4.F90: Regenerated (comment change).
362         * generated/_exp_r8.F90: Regenerated (comment change).
363         * generated/_log10_r10.F90: Regenerated (comment change).
364         * generated/_log10_r16.F90: Regenerated (comment change).
365         * generated/_log10_r4.F90: Regenerated (comment change).
366         * generated/_log10_r8.F90: Regenerated (comment change).
367         * generated/_log_c10.F90: Regenerated (comment change).
368         * generated/_log_c16.F90: Regenerated (comment change).
369         * generated/_log_c4.F90: Regenerated (comment change).
370         * generated/_log_c8.F90: Regenerated (comment change).
371         * generated/_log_r10.F90: Regenerated (comment change).
372         * generated/_log_r16.F90: Regenerated (comment change).
373         * generated/_log_r4.F90: Regenerated (comment change).
374         * generated/_log_r8.F90: Regenerated (comment change).
375         * generated/_mod_i16.F90: Regenerated (comment change).
376         * generated/_mod_i4.F90: Regenerated (comment change).
377         * generated/_mod_i8.F90: Regenerated (comment change).
378         * generated/_mod_r10.F90: Regenerated (comment change).
379         * generated/_mod_r16.F90: Regenerated (comment change).
380         * generated/_mod_r4.F90: Regenerated (comment change).
381         * generated/_mod_r8.F90: Regenerated (comment change).
382         * generated/_sign_i16.F90: Regenerated (comment change).
383         * generated/_sign_i4.F90: Regenerated (comment change).
384         * generated/_sign_i8.F90: Regenerated (comment change).
385         * generated/_sign_r10.F90: Regenerated (comment change).
386         * generated/_sign_r16.F90: Regenerated (comment change).
387         * generated/_sign_r4.F90: Regenerated (comment change).
388         * generated/_sign_r8.F90: Regenerated (comment change).
389         * generated/_sinh_r10.F90: Regenerated (comment change).
390         * generated/_sinh_r16.F90: Regenerated (comment change).
391         * generated/_sinh_r4.F90: Regenerated (comment change).
392         * generated/_sinh_r8.F90: Regenerated (comment change).
393         * generated/_sin_c10.F90: Regenerated (comment change).
394         * generated/_sin_c16.F90: Regenerated (comment change).
395         * generated/_sin_c4.F90: Regenerated (comment change).
396         * generated/_sin_c8.F90: Regenerated (comment change).
397         * generated/_sin_r10.F90: Regenerated (comment change).
398         * generated/_sin_r16.F90: Regenerated (comment change).
399         * generated/_sin_r4.F90: Regenerated (comment change).
400         * generated/_sin_r8.F90: Regenerated (comment change).
401         * generated/_sqrt_c10.F90: Regenerated (comment change).
402         * generated/_sqrt_c16.F90: Regenerated (comment change).
403         * generated/_sqrt_c4.F90: Regenerated (comment change).
404         * generated/_sqrt_c8.F90: Regenerated (comment change).
405         * generated/_sqrt_r10.F90: Regenerated (comment change).
406         * generated/_sqrt_r16.F90: Regenerated (comment change).
407         * generated/_sqrt_r4.F90: Regenerated (comment change).
408         * generated/_sqrt_r8.F90: Regenerated (comment change).
409         * generated/_tanh_r10.F90: Regenerated (comment change).
410         * generated/_tanh_r16.F90: Regenerated (comment change).
411         * generated/_tanh_r4.F90: Regenerated (comment change).
412         * generated/_tanh_r8.F90: Regenerated (comment change).
413         * generated/_tan_r10.F90: Regenerated (comment change).
414         * generated/_tan_r16.F90: Regenerated (comment change).
415         * generated/_tan_r4.F90: Regenerated (comment change).
416         * generated/_tan_r8.F90: Regenerated (comment change).
417
418 2011-08-18  Tobias Burnus  <burnus@net-b.de>
419
420         PR fortran/50109
421         * io/list_read.c (eat_separator): Fix skipping over "!" lines.
422
423 2011-07-23  Andreas Schwab  <schwab@linux-m68k.org>
424
425         * intrinsics/ctime.c: Include <stdlib.h>.
426         * intrinsics/getlog.c: Likewise.
427         * runtime/stop.c: Likewise.
428
429 2011-07-23  Tobias Burnus  <burnus@net-b.de>
430
431         PR fortran/49791
432         * io/list_read.c (nml_parse_qualifier): Remove check to
433         enabled extended read for another case.
434
435 2011-07-15  Daniel Carrera  <dcarrera@gmail.com>
436
437         * caf/mpi.c (caf_runtime_error): Change fprintf to vfprintf.
438         * caf/single.c (caf_runtime_error): Ditto.
439
440 2011-07-14  Daniel Carrera  <dcarrera@gmail.com>
441
442         * caf/single.c:  Include stdarg.h header.
443         (caf_runtime_error): New function. Use "exit(EXIT_FAILURE)".
444         (_gfortran_caf_register): Use caf_runtime_error.
445         (_gfortran_caf_sync_images): Use "exit(EXIT_FAILURE)".
446         * caf/mpi.c (caf_runtime_error): Remove "error" parameter.
447         Return EXIT_FAILURE instead.
448         (_gfortran_caf_register): Update call to caf_runtime_error.
449         (_gfortran_caf_sync_all): Ditto.
450         (_gfortran_caf_sync_images): Ditto.
451         (_gfortran_caf_error_stop_str): Use "exit(EXIT_FAILURE)".
452
453 2011-07-13  Janne Blomqvist  <jb@gcc.gnu.org>
454
455         PR libfortran/49296
456         * io/list_read.c (read_logical): Don't error out if a valid value
457         is followed by EOF instead of a normal separator.
458         (read_integer): Likewise.
459
460 2011-07-09  Tobias Burnus  <burnus@net-b.de>
461
462         * runtime/error.c (sys_abort): Change argument list
463         from "()" to "(void)".
464
465 2011-07-09  Tobias Burnus  <burnus@net-b.de>
466             Daniel Carrera  <dcarrera@gmail.com>
467
468         * caf/mpi.c (runtime_error): New function.
469         (_gfortran_caf_register): Use it.
470         (_gfortran_caf_sync_all): Use it, add STAT_STOPPED_IMAGE
471         as possible status value.
472         (_gfortran_caf_sync_images): Ditto.
473
474 2011-07-07  Tobias Burnus  <burnus@net-b.de>
475
476         * libcaf.h (__attribute__, unlikely, likely): New macros.
477         (caf_register_t): Update comment.
478         (_gfortran_caf_register): Add stat, errmsg, errmsg_len arguments.
479         * single.c (_gfortran_caf_register): Ditto; add error diagnostics.
480         * mpi.c (_gfortran_caf_register): Ditto.
481         (caf_is_finalized): New global variable.
482         (_gfortran_caf_finalize): Use it.
483
484 2011-07-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
485
486         * runtime/memory.c (internal_malloc_size):  If size is zero,
487         allocate a single byte.
488         * m4/pack.m4 (pack_'rtype_code`):  Don't check for zero size
489         for the argument of internal_malloc_size.
490         * m4/spread.m4 (spread_'rtype_code`):  Likewise.
491         * m4/eoshift1.m4 (eoshift1):  Don't allocate twice.  Don't check
492         for zero size for the argument of internal_malloc_size.
493         * m4/eoshift3.m4: Don't check for zero size for the argument of
494         internal_malloc_size.
495         * intrinsics/pack_generic.c (pack_internal):  Likewise.
496         (pack_s_internal):  Likewise.
497         * intrinsics/cshift0.c (cshift0):  Likewise.
498         * intrinsics/spread_generic.c (spread_internal):  Likewise.
499         * intrinsics/eoshift0.c (eoshift0):  Likewise.
500         * intrinsics/eoshift2.c (eoshift2):  Likewise.
501         * generated/eoshift1_16.c: Regenerated.
502         * generated/eoshift1_4.c: Regenerated.
503         * generated/eoshift1_8.c: Regenerated.
504         * generated/eoshift3_16.c: Regenerated.
505         * generated/eoshift3_4.c: Regenerated.
506         * generated/eoshift3_8.c: Regenerated.
507         * generated/pack_c10.c: Regenerated.
508         * generated/pack_c16.c: Regenerated.
509         * generated/pack_c4.c: Regenerated.
510         * generated/pack_c8.c: Regenerated.
511         * generated/pack_i16.c: Regenerated.
512         * generated/pack_i1.c: Regenerated.
513         * generated/pack_i2.c: Regenerated.
514         * generated/pack_i4.c: Regenerated.
515         * generated/pack_i8.c: Regenerated.
516         * generated/pack_r10.c: Regenerated.
517         * generated/pack_r16.c: Regenerated.
518         * generated/pack_r4.c: Regenerated.
519         * generated/pack_r8.c: Regenerated.
520         * generated/spread_c10.c: Regenerated.
521         * generated/spread_c16.c: Regenerated.
522         * generated/spread_c4.c: Regenerated.
523         * generated/spread_c8.c: Regenerated.
524         * generated/spread_i16.c: Regenerated.
525         * generated/spread_i1.c: Regenerated.
526         * generated/spread_i2.c: Regenerated.
527         * generated/spread_i4.c: Regenerated.
528         * generated/spread_i8.c: Regenerated.
529         * generated/spread_r10.c: Regenerated.
530         * generated/spread_r16.c: Regenerated.
531         * generated/spread_r4.c: Regenerated.
532         * generated/spread_r8.c: Regenerated.
533
534 2011-06-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
535
536         PR fortran/49479
537         * m4/reshape.m4: If source allocation is smaller than one, set it
538         to one.
539         * intrinsics/reshape_generic.c:  Likewise.
540         * generated/reshape_r16.c: Regenerated.
541         * generated/reshape_c4.c: Regenerated.
542         * generated/reshape_c16.c: Regenerated.
543         * generated/reshape_c8.c: Regenerated.
544         * generated/reshape_r4.c: Regenerated.
545         * generated/reshape_i4.c: Regenerated.
546         * generated/reshape_r10.c: Regenerated.
547         * generated/reshape_r8.c: Regenerated.
548         * generated/reshape_c10.c: Regenerated.
549         * generated/reshape_i8.c: Regenerated.
550         * generated/reshape_i16.c: Regenerated.
551
552 2011-06-18  Janne Blomqvist  <jb@gcc.gnu.org>
553
554         PR libfortran/49296
555         * io/list_read.c (read_character): Accept EOF as a separator when
556         reading string.
557
558 2011-06-17  Daniel Carrera  <dcarrera@gmail.com>
559
560         * caf/single.c (_gfortran_caf_register): Store the address
561         of all static coarrays in a linked list.
562         (_gfortran_caf_finalize): Free memory of staic coarrays.
563         * caf/mpi.c (_gfortran_caf_register): Store the address
564         of all static coarrays in a linked list. Initialize MPI
565         if necessary.
566         (_gfortran_caf_finalize): Free memory of staic coarrays.
567         (_gfortran_caf_init): Check if MPI is already initialized
568         before initializing again.
569         * caf/libcaf.h: Add a type to caf_register_t to distinguish
570         static coarrays and add the type caf_static_t to make the
571         linked list of static coarrays.
572
573 2011-06-11  Janne Blomqvist  <jb@gcc.gnu.org>
574
575         * io/unix.c (buf_seek): Return error if file is not seekable.
576         (buf_tell): Call buf_seek.
577
578 2011-06-11  Janne Blomqvist  <jb@gcc.gnu.org>
579
580         * io/unix.c (fd_to_stream): Figure out if a fd is seekable by
581         trying lseek().
582
583 2011-06-10  Daniel Carrera  <dcarrera@gmail.com>
584
585         * caf/mpi.c (_gfortran_caf_sync_all,
586         _gfortran_caf_sync_images): Functions have void return type
587         and move status into parameter list.
588         * caf/single.c (_gfortran_caf_sync_all,
589         _gfortran_caf_sync_images): Functions have void return type
590         and move status into parameter list.
591         * caf/libcaf.h (_gfortran_caf_sync_all,
592         _gfortran_caf_sync_images): Functions have void return type
593         and move status into parameter list.
594
595 2011-06-03  Richard Henderson  <rth@redhat.com>
596             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
597
598         * config/fpu-387.h [__sun__ && __svr4__] (sigill_hdlr): Correct
599         insn, insn size.
600         (has_sse) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
601
602 2011-05-29  Janne Blomqvist  <jb@gcc.gnu.org>
603
604         PR libfortran/48931
605         * libgfortran.h (find_addr2line): New prototype.
606         * runtime/backtrace.c (show_backtrace): Use async-signal-safe
607         execve and stored path of addr2line.
608         * runtime/compile_options.c (maybe_find_addr2line): New function.
609         (set_options): Call maybe_find_addr2line if backtracing is enabled.
610         * runtime/main.c (find_addr2line): New function.
611         (init): Call find_addr2line if backtracing is enabled.
612         (cleanup): Free addr2line_path.
613
614 2011-05-29  Janne Blomqvist  <jb@gcc.gnu.org>
615
616         PR libfortran/49214
617         * runtime/backtrace.c (fd_gets): Return NULL if nothing was read.
618
619 2011-05-29  Janne Blomqvist  <jb@gcc.gnu.org>
620
621         PR libfortran/19155
622         * io/read.c (convert_real): Check for invalid input by comparing
623         endptr instead of EINVAL.
624         (read_f): Fixup floating point input without significand.
625
626 2011-05-22  Tobias Burnus  <burnus@net-b.de>
627
628         * runtime/stop.c (stop_string,error_stop_string): Minor cleanup.
629
630 2011-05-22  Janne Blomqvist  <jb@gcc.gnu.org>
631
632         PR libfortran/48931
633         * configure.ac: Check for backtrace_symbols_fd instead of
634         backtrace_symbols, check for readlink.
635         * config.h.in: Regenerated.
636         * configure: Regenerated.
637         * runtime/backtrace.c (local_strcasestr): Remove.
638         (bt_header): New function.
639         (dump_glibc_backtrace): Remove.
640         (fd_gets): New function.
641         (show_backtrace): Rework to use backtrace_symbols_fd and pipes
642         avoiding functions that are not async-signal-safe, reformat
643         output.
644         * runtime/main.c (store_exe_path): Try to check /proc/self/exe
645         first.
646
647 2011-05-20  Janne Blomqvist  <jb@gcc.gnu.org>
648             Uros Bizjak  <ubizjak@gmail.com>
649
650         PR libfortran/48977
651         * configure.host: Swap order of glibc and x86 tests.
652
653 2011-05-20  Janne Blomqvist  <jb@gcc.gnu.org>
654
655         * config/fpu-387.h (set_fpu): Use renamed inexact macro.
656         * config/fpu-aix.h (set_fpu): Clarify error messages, use renamed
657         inexact macro, set TRP_INEXACT for inexact exception instead of
658         TRP_UNDERFLOW.
659         * config/fpu-generic.h (set_fpu): Clarify error messages, use
660         renamed inexact macro.
661         * config/fpu-glibc.h (set_fpu): Likewise.
662         * config/fpu-sysv.h (set_fpu): Likewise.
663
664 2011-05-14  Tobias Burnus  <burnus@net-b.de>
665
666         * runtime/stop.c (error_stop_string, error_stop_numeric):
667         Do not backtrace for ERROR STOP.
668
669 2011-05-14  Janne Blomqvist  <jb@gcc.gnu.org>
670
671         PR libfortran/48915
672         * intrinsics/abort.c (abort): Call sys_abort().
673         * io/unix.c (st_vprintf): Call sys_abort().
674         * libgfortran.h (options_t): Remove dump_core member.
675         (handler): Rename to backtrace_handler.
676         (compile_options_t): Remove dump_core member.
677         (sys_exit): Remove.
678         (sys_abort): New function.
679         * runtime/backtrace.c (show_backtrace): Print a message if
680         backtrace is not available on target, update filter symbol name
681         due to backtrace_handler renaming.
682         * runtime/compile_options.c (backtrace_handler): New
683         implementation based on example in Glibc manual.
684         (set_options): Remove dump_core handling, make signal handler
685         handle more signals.
686         (init_compile_options): Remove dump_core.
687         * runtime/environ.c (variable_table[]): Remove
688         GFORTRAN_ERROR_DUMPCORE element.
689         (show_variables): Update name, call exit().
690         * runtime/error.c (sys_exit): Remove.
691         (sys_abort): New function.
692         (recursion_check): Call sys_abort().
693         (os_error): Call exit().
694         (runtime_error): Likewise.
695         (runtime_error_at): Likewise.
696         (internal_error): Likewise.
697         (generate_error): Likewise.
698         (notify_std): Likewise.
699         * runtime/stop.c (stop_numeric): Call exit().
700         (stop_numeric_f08): Likewise.
701         (stop_string): Likewise.
702         (error_stop_string): Call sys_abort().
703         (error_stop_numeric): Print backtrace, exit with provided code.
704
705 2011-05-14  Janne Blomqvist  <jb@gcc.gnu.org>
706
707         * io/unix.c (st_vprintf,st_printf): Move to runtime/error.c.
708         * libgfortran.h (struct options_t): Remove use_stderr field.
709         (st_vprintf,st_printf): Move prototypes.
710         (estr_write): New prototype.
711         * runtime/error.c (sys_exit): Use estr_write instead of st_printf.
712         (estr_write): New function.
713         (st_vprintf): Move from io/unix.c, use stack allocated buffer,
714         always output to stderr.
715         (st_printf): Move from io/unix.c.
716         (show_locus): Use a local variable instead of static.
717         (os_error): Use estr_write instead of st_printf.
718         (runtime_error): Likewise.
719         (runtime_error_at): Likewise.
720         (runtime_warning_at): Likewise.
721         (internal_error): Likewise.
722         (generate_error): Likewise.
723         (generate_warning): Likewise.
724         (notify_std): Likewise.
725         * runtime/pause.c (do_pause): Likewise.
726         (pause_string): Likewise.
727         * runtime/stop.c (stop_string): Likewise.
728         (error_stop_string): Likewise.
729         * config/fpu_aix.h (set_fpu): Likewise.
730         * config/fpu_generic.h (set_fpu): Likewise.
731         * config/fpu_glibc.h (set_fpu): Likewise.
732         * config/fpu-sysv.h (set_fpu): Likewise.
733         * runtime/backtrace.c (dump_glibc_backtrace): Likewise.
734         (show_backtrace): Likewise.
735         * runtime/environ.c (print_spaces): Likewise.
736         (show_string): Likewise.
737         (show_variables): Likewise.
738         (variable_table[]): Remove GFORTRAN_USE_STDERR entry.
739
740 2011-05-14  Tobias Burnus  <burnus@net-b.de>
741
742         PR fortran/48961
743         * intrinsics/execute_command_line.c (set_cmdstat): Don't abort if
744         synchronously executing with WAIT=.false.
745         (execute_command_line): Fix setting of cmdstat and exitstat.
746
747 2011-05-06  Tobias Burnus  <burnus@net-b.de>
748
749         PR fortran/18918
750         * caf/libcaf.h: Cleanup headers.
751         (_gfortran_caf_critical, _gfortran_caf_end_critical): Make stub.
752         (caf_register_t): New enum.
753         (_gfortran_caf_register, _gfortran_caf_deregister): New prototype.
754         * caf/single.c (_gfortran_caf_critical,
755         _gfortran_caf_end_critical): Remove.
756         (_gfortran_caf_register, _gfortran_caf_deregister): New functions.
757         * caf/mpi.c (_gfortran_caf_critical,
758         _gfortran_caf_end_critical): Remove.
759         (_gfortran_caf_register, _gfortran_caf_deregister): New functions.
760         (caf_world_window): Remove global variable.
761         (_gfortran_caf_init): Fix off-by-one error of this_image.
762
763 2011-05-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
764
765         PR libgfortran/48787
766         * io/write_float.def (output_float): Adjust up and down rounding for
767         cases where 'd' = 0. Gather common code to one location.
768
769 2011-05-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
770
771         PR libgfortran/48787
772         * io/write_float.def (output_float): Gather up integer declarations and
773         add new 'p' for scale factor. Use 'p' in place of the 'dtp' reference
774         everywhere. For ROUND_UP scan the digit string and only perform
775         rounding if something other than '0' is found.
776
777 2011-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
778
779         * io/unix.c (min): New macro.
780         (unpack_filename): Return errno number for errors.
781         (regular_file): Use appropriately sized buffer for path.
782         (compare_file_filename): Likewise.
783         (find_file): Likewise.
784         (delete_file): Likewise.
785         (file_exists): Likewise.
786         (file_size): Likewise.
787         (inquire_sequential): Likewise.
788         (inquire_direct): Likewise.
789         (inquire_formatted): Likewise.
790         (inquire_access): Likewise.
791
792 2011-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
793
794         PR libfortran/48488
795         * io/write.c (write_real, write_real_g0): Update comments.
796
797 2011-04-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
798             Janne Blomqvist  <jb@gcc.gnu.org>
799
800         PR libgfortran/48488
801         PR libgfortran/48602
802         PR libgfortran/48615
803         PR libgfortran/48684
804         PR libgfortran/48787
805         * io/write.c (write_d, write_e, write_f, write_en,
806         write_es): Add precision compemsation parameter to call.
807         (set_fnode_default): Adjust default widths to assure
808         round trip on write and read. (write_real): Adjust call to write_float.
809         (write_real_g0): Calculate compensation for extra precision and adjust
810         call to write_float.
811         * io/write_float.def (output_float_FMT_G_): Use volatile rather than
812         asm volatile to avoid optimization issue. Correctly calculate the
813         number of blanks (nb) to be appended and simplify calculation logic.
814         (write_float): Increase MIN_FIELD_WIDTH by one to accomodate the new
815         default widths. Eliminate the code that attempted to reduce the
816         the precision used in later sprintf functions.  Add call parameter to
817         compensate for extra precision.
818
819 2011-04-20  Jim Meyering  <meyering@redhat.com>
820
821         * intrinsics/move_alloc.c (move_alloc): Remove useless
822         if-before-free test.
823         * io/fbuf.c (fbuf_destroy): Likewise.
824         * io/format.c (save_parsed_format): Likewise.
825         * io/open.c (already_open): Likewise.
826         * io/unit.c (free_internal_unit, close_unit_1): Likewise.
827         * io/unix.c (mem_close): Likewise.
828
829 2011-04-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
830
831         PR libgfortran/48602
832         * io/write_float.def (output_float_FMT_G): Fix reversal in conditional.
833         Use asm volatile to mark temp variable, avoiding optimization errors.
834
835 2011-04-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
836
837         PR libgfortran/48602
838         * io/write_float.def (output_float_FMT_G): Use current rounding mode
839         to set the rounding parameters. (output_float): Skip rounding
840         if value is zero.
841
842 2011-04-16  Janne Blomqvist  <jb@gcc.gnu.org>
843
844         * intrinsics/date_and_time.c (date_and_time): Remove sprintf CPP
845         branch.
846         * io/format.c (format_error): Use snprintf instead of sprintf.
847         * io/list_read.c: Move snprintf fallback macro to libgfortran.h.
848         (convert_integer): Use snprintf instead of sprintf.
849         (parse_repeat): Likewise.
850         (read_logical): Likewise.
851         (read_integer): Likewise.
852         (read_character): Likewise.
853         (parse_real): Likewise.
854         (read_complex): Likewise.
855         (read_real): Likewise.
856         (check_type): Likewise.
857         (nml_parse_qualifier): Add string length argument, use snprintf
858         instead of sprintf.
859         (nml_get_obj_data): Use snprintf instead of sprintf.
860         * io/open.c (new_unit): Remove sprintf CPP branch, use snprintf
861         instead of sprintf.
862         * io/transfer.c (require_type): Use snprintf instead of sprintf.
863         * io/unix.c (tempfile): Likewise.
864         * io/write.c (nml_write_obj): Likewise.
865         * io/write_float.def (output_float): Remove sprintf CPP branch,
866         use snprintf instead of sprintf.
867         * libgfortran.h: Add fallback snprintf macro from io/list_read.c.
868         * runtime/backtrace.c (show_backtrace): Remove sprintf CPP branch.
869         * runtime/main.c (store_exe_path): Use snprintf instead of
870         sprintf.
871
872 2011-04-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
873
874         PR libgfortran/48589
875         * io/write_float.def (write_infnan): Set width properly for G0.
876
877 2011-04-15  Tobias Burnus  <burnus@net-b.de>
878
879         PR fortran/18918
880         * Makefile.am: Build and install caf/single.c as
881         libcaf_single.a.
882         * Makefile.in: Regenerate.
883
884 2011-04-15  Janne Blomqvist  <jb@gcc.gnu.org>
885
886         PR libfortran/47571
887         * configure: Regenerated.
888         * config.h.in: Regenerated.
889         * acinclude.m4: Add alpha*-dec-osf* to gthread blacklist.
890         * configure.ac: Use separate symbol for clock_gettime in librt.
891         * intrinsics/system_clock.c: Use weakrefs only when needed and
892         supported.
893
894 2011-04-12  Janne Blomqvist  <jb@gcc.gnu.org>
895
896         * configure.ac: Use AC_TYPE_* to make sure we have (u)intptr_t,
897         check for ptrdiff_t.
898         * libgfortran.h: Remove (u)intptr_t definitions, use ptrdiff_t for
899         index_type, change cshift0* prototypes.
900         * config.h.in: Regenerated.
901         * configure: Regenerated.
902         * intrinsics/cshift0.c (cshift0): Use ptrdiff_t instead of ssize_t.
903         * io/io.h (array_loop_spec): Use index_type instead of ssize_t.
904         * io/list_read.c (nml_parse_qualifier): Likewise.
905         * io/write.c (nml_write_obj): Likewise.
906         * m4/cshift0.c (cshift0_'rtype_code`): Likewise.
907         * generated/cshift0_*.c: Regenerated.
908
909 2011-04-12  Janne Blomqvist  <jb@gcc.gnu.org>
910
911         * Makefile.am: Remove _GNU_SOURCE from AM_CPPFLAGS.
912         * Makefile.in: Regenerated.
913
914 2011-04-06  Tobias Burnus  <burnus@net-b.de>
915
916         PR fortran/18918
917         * caf/mpi.c (_gfortran_caf_init, _gfortran_caf_finalize):
918         Add global variable caf_mpi_initialized and use it for when
919         finalizing.
920
921 2011-04-04  Tobias Burnus  <burnus@net-b.de>
922
923         * unix.c: Adapt stat DEFINEs since MinGW64 supports LFS.
924         (fallback_access, open_internal4, compare_file_filename,
925         find_file, file_size, inquire_sequential, inquire_direct,
926         inquire_formatted): Use "struct stat" instead of gfstat_t.
927
928 2011-03-27  Tobias Burnus  <burnus@net-b.de>
929
930         PR fortran/18918
931         * caf/libcaf.h: New - coarray communication library.
932         * caf/mpi.c: New.
933         * caf/single.c: New.
934
935 2011-03-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
936
937         PR libgfortran/48030
938         * io/read.c (read_x): Re-implement using fbuf_getc.
939
940 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
941
942         PR bootstrap/48135
943         * configure.ac (gfortran_use_symver): Handle --disable-symvers.
944         * configure: Regenerate.
945
946 2011-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
947
948         PR fortran/35667
949         * io/io.h (convert_infnan): Declare.
950         * io/read.c (convert_infnan): New.
951         (read_f): Use convert_infnan to convert INFs and NANs.
952         * list_read.c (parse_real, read_real): Likewise.
953
954 2011-03-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
955
956         PR libfortran/47439
957         * io/unix.c (tempfile): Work around poor mktemp() implementations.
958
959 2011-03-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
960
961         PR libfortran/47883
962         * acinclude.m4: Don't use AC_TRY_ macros.
963         * configure.ac: Likewise.
964         * configure: Regenerate.
965
966 2011-03-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
967
968         PR libfortran/48066
969         * m4/ifunction.m4:  If return array is empty, return.
970         * m4/ifunction_logical.m4:  Likewise.
971         * generated/all_l16.c: Regenerated.
972         * generated/all_l1.c: Regenerated.
973         * generated/all_l2.c: Regenerated.
974         * generated/all_l4.c: Regenerated.
975         * generated/all_l8.c: Regenerated.
976         * generated/any_l16.c: Regenerated.
977         * generated/any_l1.c: Regenerated.
978         * generated/any_l2.c: Regenerated.
979         * generated/any_l4.c: Regenerated.
980         * generated/any_l8.c: Regenerated.
981         * generated/count_16_l.c: Regenerated.
982         * generated/count_1_l.c: Regenerated.
983         * generated/count_2_l.c: Regenerated.
984         * generated/count_4_l.c: Regenerated.
985         * generated/count_8_l.c: Regenerated.
986         * generated/maxloc1_16_i16.c: Regenerated.
987         * generated/maxloc1_16_i1.c: Regenerated.
988         * generated/maxloc1_16_i2.c: Regenerated.
989         * generated/maxloc1_16_i4.c: Regenerated.
990         * generated/maxloc1_16_i8.c: Regenerated.
991         * generated/maxloc1_16_r10.c: Regenerated.
992         * generated/maxloc1_16_r16.c: Regenerated.
993         * generated/maxloc1_16_r4.c: Regenerated.
994         * generated/maxloc1_16_r8.c: Regenerated.
995         * generated/maxloc1_4_i16.c: Regenerated.
996         * generated/maxloc1_4_i1.c: Regenerated.
997         * generated/maxloc1_4_i2.c: Regenerated.
998         * generated/maxloc1_4_i4.c: Regenerated.
999         * generated/maxloc1_4_i8.c: Regenerated.
1000         * generated/maxloc1_4_r10.c: Regenerated.
1001         * generated/maxloc1_4_r16.c: Regenerated.
1002         * generated/maxloc1_4_r4.c: Regenerated.
1003         * generated/maxloc1_4_r8.c: Regenerated.
1004         * generated/maxloc1_8_i16.c: Regenerated.
1005         * generated/maxloc1_8_i1.c: Regenerated.
1006         * generated/maxloc1_8_i2.c: Regenerated.
1007         * generated/maxloc1_8_i4.c: Regenerated.
1008         * generated/maxloc1_8_i8.c: Regenerated.
1009         * generated/maxloc1_8_r10.c: Regenerated.
1010         * generated/maxloc1_8_r16.c: Regenerated.
1011         * generated/maxloc1_8_r4.c: Regenerated.
1012         * generated/maxloc1_8_r8.c: Regenerated.
1013         * generated/maxval_i16.c: Regenerated.
1014         * generated/maxval_i1.c: Regenerated.
1015         * generated/maxval_i2.c: Regenerated.
1016         * generated/maxval_i4.c: Regenerated.
1017         * generated/maxval_i8.c: Regenerated.
1018         * generated/maxval_r10.c: Regenerated.
1019         * generated/maxval_r16.c: Regenerated.
1020         * generated/maxval_r4.c: Regenerated.
1021         * generated/maxval_r8.c: Regenerated.
1022         * generated/minloc1_16_i16.c: Regenerated.
1023         * generated/minloc1_16_i1.c: Regenerated.
1024         * generated/minloc1_16_i2.c: Regenerated.
1025         * generated/minloc1_16_i4.c: Regenerated.
1026         * generated/minloc1_16_i8.c: Regenerated.
1027         * generated/minloc1_16_r10.c: Regenerated.
1028         * generated/minloc1_16_r16.c: Regenerated.
1029         * generated/minloc1_16_r4.c: Regenerated.
1030         * generated/minloc1_16_r8.c: Regenerated.
1031         * generated/minloc1_4_i16.c: Regenerated.
1032         * generated/minloc1_4_i1.c: Regenerated.
1033         * generated/minloc1_4_i2.c: Regenerated.
1034         * generated/minloc1_4_i4.c: Regenerated.
1035         * generated/minloc1_4_i8.c: Regenerated.
1036         * generated/minloc1_4_r10.c: Regenerated.
1037         * generated/minloc1_4_r16.c: Regenerated.
1038         * generated/minloc1_4_r4.c: Regenerated.
1039         * generated/minloc1_4_r8.c: Regenerated.
1040         * generated/minloc1_8_i16.c: Regenerated.
1041         * generated/minloc1_8_i1.c: Regenerated.
1042         * generated/minloc1_8_i2.c: Regenerated.
1043         * generated/minloc1_8_i4.c: Regenerated.
1044         * generated/minloc1_8_i8.c: Regenerated.
1045         * generated/minloc1_8_r10.c: Regenerated.
1046         * generated/minloc1_8_r16.c: Regenerated.
1047         * generated/minloc1_8_r4.c: Regenerated.
1048         * generated/minloc1_8_r8.c: Regenerated.
1049         * generated/minval_i16.c: Regenerated.
1050         * generated/minval_i1.c: Regenerated.
1051         * generated/minval_i2.c: Regenerated.
1052         * generated/minval_i4.c: Regenerated.
1053         * generated/minval_i8.c: Regenerated.
1054         * generated/minval_r10.c: Regenerated.
1055         * generated/minval_r16.c: Regenerated.
1056         * generated/minval_r4.c: Regenerated.
1057         * generated/minval_r8.c: Regenerated.
1058         * generated/product_c10.c: Regenerated.
1059         * generated/product_c16.c: Regenerated.
1060         * generated/product_c4.c: Regenerated.
1061         * generated/product_c8.c: Regenerated.
1062         * generated/product_i16.c: Regenerated.
1063         * generated/product_i1.c: Regenerated.
1064         * generated/product_i2.c: Regenerated.
1065         * generated/product_i4.c: Regenerated.
1066         * generated/product_i8.c: Regenerated.
1067         * generated/product_r10.c: Regenerated.
1068         * generated/product_r16.c: Regenerated.
1069         * generated/product_r4.c: Regenerated.
1070         * generated/product_r8.c: Regenerated.
1071         * generated/sum_c10.c: Regenerated.
1072         * generated/sum_c16.c: Regenerated.
1073         * generated/sum_c4.c: Regenerated.
1074         * generated/sum_c8.c: Regenerated.
1075         * generated/sum_i16.c: Regenerated.
1076         * generated/sum_i1.c: Regenerated.
1077         * generated/sum_i2.c: Regenerated.
1078         * generated/sum_i4.c: Regenerated.
1079         * generated/sum_i8.c: Regenerated.
1080         * generated/sum_r10.c: Regenerated.
1081         * generated/sum_r16.c: Regenerated.
1082         * generated/sum_r4.c: Regenerated.
1083         * generated/sum_r8.c: Regenerated.
1084
1085 2011-03-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1086
1087         PR libgfortran/48047
1088         * io/write_float.def (write_float): Change MIN_FIELD_WIDTH to 48.
1089
1090 2011-03-04  Janne Blomqvist  <jb@gcc.gnu.org>
1091
1092         PR libfortran/47802
1093         * intrinsics/ctime.c (strctime): Use builtins to check localtime_r
1094         return type.
1095
1096 2011-03-04  Janne Blomqvist  <jb@gcc.gnu.org>
1097
1098         PR libfortran/47802
1099         * intrinsics/ctime.c (strctime): Don't use return value of
1100         localtime_r.
1101
1102 2011-02-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1103
1104         PR libgfortran/47567
1105         * io/write_float.def (output_float): Move handling of w = 0 to after
1106         output rounding. Check for zero and set zero_flag accordingly. Set
1107         width according to zero_flag. Add better comments.
1108
1109 2011-02-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1110
1111         PR libgfortran/47778
1112         * io/list_read.c (namelist_read): Intialize the error string buffere.
1113         If pprev_nl was used during the previous namelist read and the rank
1114         was zero, reset the pointer to NULL for the next namelist read.
1115
1116 2011-02-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1117
1118         PR libfortran/45165
1119         * unix.c (fallback_access): Fix file descriptor leaks.
1120
1121 2011-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1122
1123         * acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): Set shell variable
1124         tested in configure.host.
1125         * configure: Regenerate.
1126
1127 2011-02-24  Janne Blomqvist  <jb@gcc.gnu.org>
1128
1129         PR libfortran/47802
1130         * config.h.in: Regenerated.
1131         * configure: Regenerated.
1132         * configure.ac: Remove checks for ctime and ctime_r, add check for
1133         strftime.
1134         * intrinsics/date_and_time.c (localtime_r): Move fallback
1135         implementation to time_1.h.
1136         * intrinsics/time_1.h (localtime_r): Fallback implementation.
1137         * intrinsics/ctime.c: Include time_1.h.
1138         (ctime_r): Remove fallback implementation.
1139         (strctime): New function.
1140         (fdate): Use strctime instead of ctime_r.
1141         (fdate_sub): Likewise.
1142         (ctime): Likewise.
1143         (ctime_sub): Likewise.
1144
1145 2011-02-24  Jakub Jelinek  <jakub@redhat.com>
1146
1147         PR fortran/47878
1148         * io/transfer.c (read_sf): Call fbuf_getptr only at the end,
1149         and subtract n, dtp->u.p.sf_seen_eor and seen_comma from it.
1150
1151 2011-02-24  Janne Blomqvist  <jb@gcc.gnu.org>
1152
1153         PR libfortran/47802
1154         * configure.ac: Add test for POSIX getpwuid_r.
1155         * intrinsics/getlog.c (getlog): CPP test for
1156         HAVE_POSIX_GETPWUID_R.
1157         * config.h.in: Regenerated.
1158         * configure: Regenerated.
1159
1160 2011-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1161
1162         PR libgfortran/47567
1163         * io/write_float.def (output_float): Remove special case handling of
1164         zero with width 1.
1165
1166 2011-02-23  Janne Blomqvist  <jb@gcc.gnu.org>
1167             Jerry DeLisle    <jvdelisle@gcc.gnu.org>
1168
1169         PR libfortran/47694
1170         * io/fbuf.h (fbuf_getptr): New inline function.
1171         * io/transfer.c (read_sf): Use fbuf_getptr and fbuf_getc to scan
1172         through the string instead of fbuf_read.
1173
1174 2011-02-22  Tobias Burnus  <burnus@net-b.de>
1175             Kai-Uwe Eckhardt  <kuehro@gmx.de>
1176
1177         PR libfortran/47830
1178         * intrinsics/c99_functions.c (roundl): Make C valid for
1179         HAVE_NEXTAFTERL.
1180
1181 2011-02-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1182
1183         PR libgfortran/47567
1184         * io/write_float.def (output_float): Adjust width for F0.d to
1185         allow space for negative signs on zero.
1186
1187 2011-02-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1188
1189         PR libgfortran/47667
1190         * io/list_read.c (read_logical): Check for end of line before calling
1191         eat_line. (read_integer): Likewise. (parse_real): Don't unget the
1192         separator. Check for end of line before calling eat_line.
1193         (read_complex): Allow line-end before and after parenthesis and comma.
1194         Check for end of line before calling eat_line. (read_real): Check for
1195         end of line before calling eat_line.
1196
1197 2011-02-16  Jakub Jelinek  <jakub@redhat.com>
1198
1199         PR libfortran/47757
1200         * gfortran.map (GFORTRAN_1.4): Export
1201         _gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and
1202         _gfortran_{cshift0,eoshift{0,2}}_16_char4.
1203
1204 2011-02-15  Tobias Burnus  <burnus@net-b.de>
1205
1206         PR fortran/47716
1207         PR fortran/47648
1208         * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Use check from
1209         libquadmath, which uses more features.
1210         * configure: Regenerate.
1211
1212 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
1213
1214         PR fortran/47642
1215         * io/write_float.def (DTOAQ): Use quadmath_snprintf instead of
1216         quadmath_flt128tostr.
1217         * io/transfer128.c (tmp2): Initialize to quadmath_snprintf instead
1218         of quadmath_flt128tostr.
1219
1220 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1221
1222         * Makefile.in: Regenerate.
1223         * aclocal.m4: Likewise.
1224         * configure: Likewise.
1225
1226 2011-02-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1227
1228         PR libgfortran/47567
1229         * io/write_float.def (output_float): Eliminate some redundant code.
1230         Adjust width for case of F0.X for values of zero and all other values.
1231         Expand cases where '*' is set to give cleaner results.
1232
1233 2011-02-05  Janne Blomqvist  <jb@gcc.gnu.org>
1234
1235         PR libfortran/47571
1236         * intrinsics/time_1.h (GF_CLOCK_MONOTONIC): Move to system_clock.c.
1237         (weak_gettime): Likewise.
1238         (gf_gettime): Change API, move weak_gettime() usage to
1239         system_clock.c
1240         * intrinsics/system_clock.c (GTHREAD_USE_WEAK): Define.
1241         (gf_gettime_mono): New function.
1242         (system_clock_4): Use gf_gettime_mono().
1243         (system_clock_8): Likewise.
1244         * intrinsics/date_and_time.c (date_and_time): Update gf_gettime()
1245         usage.
1246
1247 2011-02-02  Janne Blomqvist  <jb@gcc.gnu.org>
1248
1249         PR libfortran/47571
1250         * configure: Regenerated.
1251         * configure.ac: Don't add librt to LIBS.
1252         * intrinsics/time_1.h (weak_gettime): Weakref trickery for
1253         clock_gettime().
1254         (gf_gettime): Use weak_gettime() instead of clock_gettime().
1255
1256 2011-02-01  Janne Blomqvist  <jb@gcc.gnu.org>
1257
1258         * intrinsics/time_1.h: Include errno.h needed by fallbacks.
1259
1260 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
1261
1262         * intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
1263
1264 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
1265
1266         * configure.ac: Check for clock_gettime().
1267         * configure: Regenerated.
1268         * config.h.in: Regenerated.
1269         * intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
1270         times() fallback.
1271         (gf_gettime): New function.
1272         * intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
1273         * intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
1274         * intrinsics/dtime.c (dtime_sub): Use gf_cputime.
1275         * intrinsics/etime.c (etime_sub): Use gf_cputime.
1276         * intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
1277         (system_clock_8): Use gf_gettime, increase count rate to allow
1278         nanosecond precision, remove overflow prone branch.
1279
1280 2011-01-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1281
1282         PR libgfortran/47434
1283         * io/write_float.def (write_infnan): Use calculate_sign to determine
1284         if the sign should be given and check field widths accordingly.
1285
1286 2011-01-29  Kai Tietz  <kai.tietz@onevision.com>
1287
1288         * intrinsics/ctime.c (ctime_r): Improve implementation.
1289
1290 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
1291
1292         PR libfortran/47431
1293         * config.h.in: Regenerated.
1294         * configure: Regenerated.
1295         * configure.ac: Add check for ctime_r().
1296         * intrinsics/ctime.c (ctime_r): Fallback implementation.
1297         (fdate): Use ctime_r() instead of ctime().
1298         (fdate_sub): Likewise.
1299         (ctime): Likewise.
1300         (ctime_sub): Likewise.
1301
1302 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
1303
1304         PR libfortran/47432
1305         * config.h.in: Regenerated.
1306         * configure: Regenerated.
1307         * configure.ac: Add check for ttyname_r.
1308         * io/unix.h: Add TTY_NAME_MAX, change stream_ttyname prototype.
1309         * io/unix.c (stream_ttyname): Use ttyname_r if available, conform
1310         to new prototype.
1311         * io/inquire.c (inquire_via_unit): Use changed stream_ttyname.
1312         * io/intrinsics.c (ttynam_sub): Likewise.
1313         (ttynam): Likewise.
1314
1315 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
1316
1317         PR libfortran/47491
1318         * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS to enable common
1319         extensions.
1320         * config.h.in: Regenerate.
1321         * configure: Regenerate.
1322
1323 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1324
1325         PR libgfortran/47285
1326         * io/write_float.def (write_infnan): Adjust processor selected width
1327         to 3 if NaN.
1328
1329 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1330
1331         PR libgfortran/47285
1332         * io/write_float.def (output_float): Return SUCCESS or FAILURE and use
1333         the result to set the padding.
1334
1335 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
1336
1337         * intrinsics/getlog.c (getlog): Fix label/statement issue.
1338
1339 2011-01-25  Janne Blomqvist  <jb@gcc.gnu.org>
1340
1341         PR libfortran/47375
1342         * config.h.in: Regenerated.
1343         * configure: Regenerated.
1344         * configure.ac: Add check for getpwuid_r.
1345         * intrinsics/getlog.c (getlog): Use getpwuid_r() if available.
1346
1347 2011-01-22  Janne Blomqvist  <jb@gcc.gnu.org>
1348
1349         PR libfortran/46267
1350         * config.h.in: Regenerated.
1351         * configure: Regenerated.
1352         * configure.ac: Check presence of strerror_r.
1353         * intrinsics/gerror.c (gerror): Use gf_strerror, modify logic.
1354         * io/unix.c (get_oserror): Remove.
1355         * libgfortran.h (gf_strerror): Add prototype.
1356         (get_oserror): Remove prototype.
1357         * runtime/error.c (gf_strerror): New function.
1358         (os_error): Use gf_strerror instead of get_oserror.
1359         (generate_errror): Likewise.
1360
1361 2011-01-17  Janne Blomqvist  <jb@gcc.gnu.org>
1362
1363         PR libfortran/47296
1364         * io/unix.c (tempfile): Set opp->file and opp->file_len also if an
1365         error occurs.
1366
1367 2011-01-16  Jakub Jelinek  <jakub@redhat.com>
1368
1369         PR fortran/46625
1370         * io/write_float.def (DTOAQ): Use quadmath_flt128tostr
1371         instead of quadmath_dtoa.
1372         * io/transfer128.c (tmp1, tmp2): New variables, bring in
1373         strtoflt128 and quadmath_flt128tostr.
1374         (transfer_real128, transfer_real128_write, transfer_complex128,
1375         transfer_complex128_write): Remove tmp1/tmp2 variables.
1376         * io/read.c (convert_real): Use strtoflt128 instead of
1377         quadmath_strtopQ, adjust for the changed arguments and return
1378         value.
1379
1380 2011-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1381
1382         PR libgfortran/47296
1383         * io/unix.c (unpack_filename): Return non-zero if the filename passed
1384         in is NULL.
1385
1386 2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1387
1388         PR libgfortran/47154
1389         * io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
1390         duplicate calls via next_record.
1391
1392 \f
1393 Copyright (C) 2011 Free Software Foundation, Inc.
1394
1395 Copying and distribution of this file, with or without modification,
1396 are permitted in any medium without royalty provided the copyright
1397 notice and this notice are preserved.