OSDN Git Service

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