OSDN Git Service

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