Revert
[official-gcc.git] / libgfortran / ChangeLog
blob553cd1a93a1b389827b03262a49ddb9a84b74c01
1 2006-11-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3         * io/io.h (unit_flags): Add new flag has_recl.
4         * io.open.c (new_unit): Set flag if RECL= was specified.
5         * io/transfer.c (us_write): If flag set, leave recl as initialized by
6         new_unit.
8 2006-11-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
10         * io/open.c (new_unit): Format %d expects an int variable.
11         * runtime/error.c (show_locus): Format %d expects an int variable.
13 2006-11-08  Steven G. Kargl <kargl@gcc.gnu.org>
15         * io/read.c (max_value): Hide "int n" in an #ifdef.
17 2006-11-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
19         PR libgfortran/29752
20         * io/transfer.c (finalize_transfer): Flush on ADVANCE_NO.
22 2006-11-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
24         * io/transfer.c (next_record_w): Fix indentation.
26 2006-11-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
28         PR libgfortran/25545
29         * io/transfer.c (write_block): Cleanup code paths between
30         stream and non-stream I/O.
31         (write_buf):  Cleanup.
32         (read_block): Cleanup.
33         (finalize_transfer): Call next_record for '$' edit descriptor handling
34         of internal unit. Cleanup code for readability.
36 2006-11-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
38         PR libfortran/27895
39         * intrinsics/reshape_generic.c (reshape_internal): Fix so that it
40         works correctly for zero-sized arrays.
41         * m4/reshape.m4: Likewise.
42         * generated/reshape_r16.c: Regenerate.
43         * generated/reshape_c4.c: Regenerate.
44         * generated/reshape_i4.c: Regenerate.
45         * generated/reshape_c16.c: Regenerate.
46         * generated/reshape_r10.c: Regenerate.
47         * generated/reshape_r8.c: Regenerate.
48         * generated/reshape_c10.c: Regenerate.
49         * generated/reshape_c8.c: Regenerate.
50         * generated/reshape_i8.c: Regenerate.
51         * generated/reshape_i16.c: Regenerate.
52         * generated/reshape_r4.c: Regenerate.
54 2006-10-31  Thomas Koenig  <Thomas.Koenig@online.de>
56         PR libfortran/29627
57         * libgfortran.h: Add ERROR_SHORT_RECORD
58         * runtime/error.c (translate_error): Add case
59         for ERROR_SHORT_RECORD.
60         * io/transfer.c (read_block_direct):  Separate codepaths
61         for stream and record unformatted I/O.  Remove unneeded
62         tests for standard input, padding and formatted I/O.
63         If the record is short, read in as much data as possible,
64         then raise the error.
66 2006-10-30  Tobias Burnus  <burnus@net-b.de>
68         PR fortran/29452
69         * runtime/string.c (compare0): Check whether string lengths match.
71 2006-10-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
73         * configure: Regenerate.
74         * Makefile.in: Regenerate.
75         * aclocal.m4: Regenerate.
77 2006-10-28  Tobias Burnus <burnus@net-b.de>
79         PR fortran/29625
80         * io/transfer.c (formatted_transfer_scalar): Allow binary edit
81           descriptors for real variables; give error for BOZ edit
82           descriptor for non-integers when using -std=f*.
84 2006-10-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
86         PR libgfortran/29563
87         * io/list_read.c (next_char): Fix an error in previous commit.
89 2006-10-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
91         PR libgfortran/29563
92         * io/io.h (st_parameter_dt): Add new flag at_eof.
93         * io/list_read.c (next_char): Set flag when EOF and return '\n' to
94         signal EOR.  Check flag on next call and jump out.
95         * io/unit.c (get_internal_unit): Initialize new flag.
97 2006-10-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
99         PR fortran/26025
100         * m4/matmul.m4: Add possible call to gemm routine.
101         * generated/matmul_r8.c: Regenerate.
102         * generated/matmul_r16.c: Regenerate.
103         * generated/matmul_c8.c: Regenerate.
104         * generated/matmul_i8.c: Regenerate.
105         * generated/matmul_c16.c: Regenerate.
106         * generated/matmul_r10.c: Regenerate.
107         * generated/matmul_r4.c: Regenerate.
108         * generated/matmul_c10.c: Regenerate.
109         * generated/matmul_c4.c: Regenerate.
110         * generated/matmul_i4.c: Regenerate.
111         * generated/matmul_i16.c: Regenerate.
113 2006-10-21  Steven G. Kargl  <kargl@gcc.gnu.org>
115         * runtime/error.c: Add errno.h
116         (generate_error): Set iostat to errno on OS error.
117         * libgfortran.h: Set ERROR_OS to 5000
119 2006-10-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
121         * generated/minval_r8.c: Regenerate.
122         * generated/maxloc1_4_r8.c: Regenerate.
123         * generated/minloc1_16_r16.c: Regenerate.
124         * generated/sum_i8.c: Regenerate.
125         * generated/eoshift3_4.c: Regenerate.
126         * generated/any_l16.c: Regenerate.
127         * generated/eoshift1_8.c: Regenerate.
128         * generated/reshape_r16.c: Regenerate.
129         * generated/product_r4.c: Regenerate.
130         * generated/maxloc1_8_i4.c: Regenerate.
131         * generated/maxloc0_4_r4.c: Regenerate.
132         * generated/in_unpack_i8.c: Regenerate.
133         * generated/minloc0_4_r16.c: Regenerate.
134         * generated/reshape_c4.c: Regenerate.
135         * generated/maxloc0_4_r16.c: Regenerate.
136         * generated/minloc1_8_r16.c: Regenerate.
137         * generated/maxloc1_8_r16.c: Regenerate.
138         * generated/in_unpack_i16.c: Regenerate.
139         * generated/maxloc0_8_i8.c: Regenerate.
140         * generated/sum_r16.c: Regenerate.
141         * generated/minloc1_4_r8.c: Regenerate.
142         * generated/maxloc1_16_r16.c: Regenerate.
143         * generated/minloc1_16_i4.c: Regenerate.
144         * generated/maxloc1_16_i4.c: Regenerate.
145         * generated/minloc0_16_i8.c: Regenerate.
146         * generated/maxloc0_16_i8.c: Regenerate.
147         * generated/maxval_r16.c: Regenerate.
148         * generated/count_16_l16.c: Regenerate.
149         * generated/count_8_l8.c: Regenerate.
150         * generated/product_c10.c: Regenerate.
151         * generated/minloc1_8_i4.c: Regenerate.
152         * generated/minloc0_16_i16.c: Regenerate.
153         * generated/eoshift1_16.c: Regenerate.
154         * generated/minloc0_4_r4.c: Regenerate.
155         * generated/product_c4.c: Regenerate.
156         * generated/sum_r4.c: Regenerate.
157         * generated/in_pack_c16.c: Regenerate.
158         * generated/reshape_i4.c: Regenerate.
159         * generated/minloc0_8_i8.c: Regenerate.
160         * generated/minloc1_16_r10.c: Regenerate.
161         * generated/in_pack_c4.c: Regenerate.
162         * generated/all_l16.c: Regenerate.
163         * generated/reshape_c16.c: Regenerate.
164         * generated/maxloc1_8_r8.c: Regenerate.
165         * generated/minval_i16.c: Regenerate.
166         * generated/reshape_r10.c: Regenerate.
167         * generated/maxval_i4.c: Regenerate.
168         * generated/any_l4.c: Regenerate.
169         * generated/minval_i8.c: Regenerate.
170         * generated/maxloc1_4_i8.c: Regenerate.
171         * generated/maxloc0_16_i16.c: Regenerate.
172         * generated/maxloc0_8_r4.c: Regenerate.
173         * generated/minloc1_4_i16.c: Regenerate.
174         * generated/minloc0_4_r10.c: Regenerate.
175         * generated/maxloc1_4_i16.c: Regenerate.
176         * generated/minloc0_8_i16.c: Regenerate.
177         * generated/maxloc0_4_r10.c: Regenerate.
178         * generated/maxloc0_8_i16.c: Regenerate.
179         * generated/minloc1_8_r10.c: Regenerate.
180         * generated/product_i4.c: Regenerate.
181         * generated/minloc0_16_r4.c: Regenerate.
182         * generated/sum_c16.c: Regenerate.
183         * generated/maxloc1_8_r10.c: Regenerate.
184         * generated/maxloc0_16_r4.c: Regenerate.
185         * generated/minloc1_16_r8.c: Regenerate.
186         * generated/maxloc0_4_i4.c: Regenerate.
187         * generated/maxloc1_16_r8.c: Regenerate.
188         * generated/cshift1_4.c: Regenerate.
189         * generated/sum_r10.c: Regenerate.
190         * generated/sum_c4.c: Regenerate.
191         * generated/maxloc1_16_r10.c: Regenerate.
192         * generated/count_4_l16.c: Regenerate.
193         * generated/in_pack_i4.c: Regenerate.
194         * generated/minloc1_8_r8.c: Regenerate.
195         * generated/count_4_l4.c: Regenerate.
196         * generated/maxval_r10.c: Regenerate.
197         * generated/minloc1_4_i8.c: Regenerate.
198         * generated/in_unpack_c4.c: Regenerate.
199         * generated/minloc0_8_r4.c: Regenerate.
200         * generated/product_i16.c: Regenerate.
201         * generated/minloc0_16_r16.c: Regenerate.
202         * generated/reshape_r8.c: Regenerate.
203         * generated/all_l4.c: Regenerate.
204         * generated/in_pack_c10.c: Regenerate.
205         * generated/minloc0_4_i4.c: Regenerate.
206         * generated/reshape_c10.c: Regenerate.
207         * generated/minval_r4.c: Regenerate.
208         * generated/maxloc1_4_r4.c: Regenerate.
209         * generated/sum_i4.c: Regenerate.
210         * generated/count_16_l8.c: Regenerate.
211         * generated/maxval_r8.c: Regenerate.
212         * generated/eoshift1_4.c: Regenerate.
213         * generated/eoshift3_8.c: Regenerate.
214         * generated/minval_r16.c: Regenerate.
215         * generated/product_r8.c: Regenerate.
216         * generated/maxloc1_8_i8.c: Regenerate.
217         * generated/maxloc0_4_r8.c: Regenerate.
218         * generated/maxloc0_16_r16.c: Regenerate.
219         * generated/in_unpack_i4.c: Regenerate.
220         * generated/sum_c10.c: Regenerate.
221         * generated/minloc1_4_r16.c: Regenerate.
222         * generated/maxloc1_4_r16.c: Regenerate.
223         * generated/in_unpack_c16.c: Regenerate.
224         * generated/minloc0_8_r16.c: Regenerate.
225         * generated/reshape_c8.c: Regenerate.
226         * generated/maxloc0_8_r16.c: Regenerate.
227         * generated/maxloc0_8_i4.c: Regenerate.
228         * generated/minloc1_4_r4.c: Regenerate.
229         * generated/minloc0_16_i4.c: Regenerate.
230         * generated/maxloc0_16_i4.c: Regenerate.
231         * generated/minloc1_16_i8.c: Regenerate.
232         * generated/maxloc1_16_i8.c: Regenerate.
233         * generated/count_8_l4.c: Regenerate.
234         * generated/minloc0_16_r10.c: Regenerate.
235         * generated/minloc1_8_i8.c: Regenerate.
236         * generated/minloc0_4_r8.c: Regenerate.
237         * generated/product_r16.c: Regenerate.
238         * generated/product_c8.c: Regenerate.
239         * generated/sum_r8.c: Regenerate.
240         * generated/in_pack_i16.c: Regenerate.
241         * generated/minloc0_8_i4.c: Regenerate.
242         * generated/minloc1_16_i16.c: Regenerate.
243         * generated/reshape_i8.c: Regenerate.
244         * generated/in_pack_c8.c: Regenerate.
245         * generated/maxloc1_8_r4.c: Regenerate.
246         * generated/reshape_i16.c: Regenerate.
247         * generated/minval_r10.c: Regenerate.
248         * generated/minval_i4.c: Regenerate.
249         * generated/maxloc1_4_i4.c: Regenerate.
250         * generated/maxval_i8.c: Regenerate.
251         * generated/eoshift3_16.c: Regenerate.
252         * generated/any_l8.c: Regenerate.
253         * generated/maxloc0_16_r10.c: Regenerate.
254         * generated/minloc0_4_i16.c: Regenerate.
255         * generated/maxloc0_8_r8.c: Regenerate.
256         * generated/maxloc0_4_i16.c: Regenerate.
257         * generated/minloc1_4_r10.c: Regenerate.
258         * generated/minloc1_8_i16.c: Regenerate.
259         * generated/maxloc1_4_r10.c: Regenerate.
260         * generated/minloc0_8_r10.c: Regenerate.
261         * generated/maxloc1_8_i16.c: Regenerate.
262         * generated/in_unpack_c10.c: Regenerate.
263         * generated/maxloc0_8_r10.c: Regenerate.
264         * generated/minloc1_16_r4.c: Regenerate.
265         * generated/maxloc1_16_r4.c: Regenerate.
266         * generated/minloc0_16_r8.c: Regenerate.
267         * generated/product_i8.c: Regenerate.
268         * generated/maxloc0_16_r8.c: Regenerate.
269         * generated/sum_i16.c: Regenerate.
270         * generated/maxloc0_4_i8.c: Regenerate.
271         * generated/cshift1_8.c: Regenerate.
272         * generated/maxloc1_16_i16.c: Regenerate.
273         * generated/minloc1_8_r4.c: Regenerate.
274         * generated/sum_c8.c: Regenerate.
275         * generated/count_8_l16.c: Regenerate.
276         * generated/in_pack_i8.c: Regenerate.
277         * generated/maxval_i16.c: Regenerate.
278         * generated/count_4_l8.c: Regenerate.
279         * generated/minloc1_4_i4.c: Regenerate.
280         * generated/product_c16.c: Regenerate.
281         * generated/reshape_r4.c: Regenerate.
282         * generated/minloc0_8_r8.c: Regenerate.
283         * generated/in_unpack_c8.c: Regenerate.
284         * generated/product_r10.c: Regenerate.
285         * generated/cshift1_16.c: Regenerate.
286         * generated/all_l8.c: Regenerate.
287         * generated/minloc0_4_i8.c: Regenerate.
288         * generated/maxval_r4.c: Regenerate.
289         * generated/count_16_l4.c: Regenerate.
291 2006-10-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
293         PR libfortran/27895
294         * intrinsics/cshift0.c: Special cases for zero-sized arrays.
295         * intrinsics/pack_generic.c: Likewise.
296         * intrinsics/spread_generic.c: Likewise.
298 2006-10-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
300         PR libgfortran/29277
301         * io/write.c (write_a): Add conversion of LF to CR-LF for systems with
302         #define HAVE_CRLF.
304 2006-10-18  Tobias Burnus  <burnus@net-b.de>
306         * m4/in_pack.m4: Fixed a typo.
307         * m4/iforeach.m4: Fixed a typo.
308         * m4/eoshift1.m4: Fixed a typo.
309         * m4/eoshift3.m4: Fixed a typo.
310         * m4/cshift1.m4: Fixed a typo.
311         * m4/in_unpack.m4: Fixed a typo.
312         * m4/reshape.m4: Fixed a typo.
313         * m4/ifunction.m4: Fixed a typo.
314         * runtime/environ.c: Fixed a typo.
315         * runtime/in_pack_generic.c: Fixed a typo.
316         * runtime/in_unpack_generic.c: Fixed a typo.
317         * runtime/memory.c: Fixed a typo.
318         * intrinsics/cshift0.c: Fixed a typo.
319         * intrinsics/cpu_time.c: Fixed a typo.
320         * intrinsics/pack_generic.c: Fixed a typo.
321         * intrinsics/unpack_generic.c: Fixed a typo.
322         * intrinsics/eoshift0.c: Fixed a typo.
323         * intrinsics/eoshift2.c: Fixed a typo.
324         * intrinsics/reshape_generic.c: Fixed a typo.
325         * io/open.c: Fixed a typo.
326         * io/list_read.c: Fixed a typo.
327         * io/io.h: Fixed a typo.
328         * io/transfer.c: Fixed a typo.
329         * io/write.c: Fixed a typo.
331 2006-10-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
333         PR libgfortran/29277
334         * io/list_read.c (next_char): Update strm_pos.
335         (eat_separator): Delete extra call to unget_char.
336         * io/transfer.c (read_block): Use read_sf for formatted stream I/O.
337         (next_record_r): Update strm_pos for formatted stream I/O and handle
338         end-of-record correctly.
339         (next_record_w): Ditto.
340         (next_record): Enable next record (r/w) functions and update strm_pos.
341         (finalize_transfer): Call next_record to finish the record.
343 2006-10-13  Steven G. Kargl  <kargl@gcc.gnu.org>
345         * m4/spacing.m4: Use scalbn[f,l] if ldexp[f,l] is unavailable.
346         * m4/rrspacing.m4: Ditto.
347         * generated/spacing_r4.c: Regenerated.
348         * generated/spacing_r8.c: Ditto.
349         * generated/spacing_r10.c: Ditto.
350         * generated/spacing_r16.c: Ditto.
351         * generated/rrspacing_r4.c: Ditto.
352         * generated/rrspacing_r8.c: Ditto.
353         * generated/rrspacing_r10.c: Ditto.
354         * generated/rrspacing_r16.c: Ditto.
356 2006-10-06  Steven G. Kargl  <kargl@gcc.gnu.org>
358         PR fortran/15441
359         PR fortran/29312
360         * configure.ac: Add HAVE_LDEXPF, HAVE_LDEXP, and HAVE_LDEXPL
361         * m4/spacing.m4: New file.  Use new HAVE_* defines.
362         * m4/rrspacing.m4: Ditto.
363         * Makefile.am: Handle new files.
364         * configure: Regenerated.
365         * Makefile.in: Ditto.
366         * config.h.in: Ditto.
367         * generated/spacing_r4.c: Generated.
368         * generated/spacing_r8.c: Ditto.
369         * generated/spacing_r10.c: Ditto.
370         * generated/spacing_r16.c: Ditto.
371         * generated/rrspacing_r4.c: Ditto.
372         * generated/rrspacing_r8.c: Ditto.
373         * generated/rrspacing_r10.c: Ditto.
374         * generated/rrspacing_r16.c: Ditto.
376 2006-10-08  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
378         * intrinsics/hyper.c: Remove file.
379         * intrinsics/c99_functions.c: Add fallback functions asinhf,
380         acoshf and atanhf.
381         * Makefile.am: Remove file intrinsics/hyper.c.
382         * Makefile.in: Regenerate.
384 2006-10-08  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
386         * c99_protos.h: Correctly protect definitions of prototypes for
387         asinhf, acoshf and atanhf to be the same as in intrinsics/hyper.c.
389 2006-10-08  Paul Thomas  <pault@gcc.gnu.org>
390             Erik Edelmann  <edelmann@gcc.gnu.org>
392         PR libgfortran/20541
393         * Makefile.in : Add move_alloc.
394         * intrinsics/move_alloc.c: New function.
395         * Makefile.am : Add move_alloc.
397 2006-10-08  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
399         PR libfortran/26540
400         * intrinsics/signal.c (signal_sub, signal_sub_int): Use intptr_t
401         if available to cast function pointers to int and back.
402         * configure.ac: Check for intptr_t.
403         * config.h.in: Regenerate.
404         * configure: Regenerate.
406 2006-10-01  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
408         PR fortran/16580
409         PR fortran/29288
410         * libgfortran/Makefile.am: Add the new files to the build
411         process, and rules to build them.
412         * libgfortran/Makefile.in: Regenerate.
413         * libgfortran/m4/misc_specifics.m4: New file.
414         * libgfortran/m4/specific.m4: Add new special cases for function
415         with complex argument and real result, like abs_c* and aimag_c*.
416         * libgfortran/intrinsics/f2c_specifics.F90: Add specifics for
417         AIMAG, ASINH, ACOSH and ATANH.
418         * libgfortran/generated/_aimag_c4.F90: New file.
419         * libgfortran/generated/_aimag_c8.F90: New file.
420         * libgfortran/generated/_asinh_r10.F90: New file.
421         * libgfortran/generated/_acosh_r16.F90: New file.
422         * libgfortran/generated/_aimag_c10.F90: New file.
423         * libgfortran/generated/_atanh_r16.F90: New file.
424         * libgfortran/generated/_acosh_r4.F90: New file.
425         * libgfortran/generated/_acosh_r8.F90: New file.
426         * libgfortran/generated/_asinh_r4.F90: New file.
427         * libgfortran/generated/_asinh_r8.F90: New file.
428         * libgfortran/generated/_asinh_r16.F90: New file.
429         * libgfortran/generated/_atanh_r4.F90: New file.
430         * libgfortran/generated/_atanh_r8.F90: New file.
431         * libgfortran/generated/_acosh_r10.F90: New file.
432         * libgfortran/generated/misc_specifics.F90: New file.
433         * libgfortran/generated/_aimag_c16.F90: New file.
434         * libgfortran/generated/_atanh_r10.F90: New file.
436 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
438         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__
439         from test.
440         * configure: Regenerate.
442 2006-10-05  Steven G. Kargl  <kargl@gcc.gnu.org>
444         * Makefile.am: Use $(M4) instead of m4.
445         * Makefile.in: Regenerated.
447 2006-10-01  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
449         * libgfortran.h: Add prototype for internal_unpack_c16.
451 2006-09-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
453         PR libfortran/18791
454         * m4/specific.m4: Special-case cabs so that its return type is
455         real. Special-case conjg so that their suffices are _4, _8, _10 and
456         _16 instead of _c4, _c8, _c10 and _c16.
457         * intrinsics/f2c_specifics.F90: Special-case conjg functions so
458         that their suffices are _4 and _8 instead of _c4 and _c8.
459         * generated/_conjg_c4.F90: Regenerate.
460         * generated/_conjg_c8.F90: Regenerate.
461         * generated/_conjg_c10.F90: Regenerate.
462         * generated/_conjg_c16.F90: Regenerate.
463         * generated/_abs_c4.F90: Regenerate.
464         * generated/_abs_c8.F90: Regenerate.
465         * generated/_abs_c10.F90: Regenerate.
466         * generated/_abs_c16.F90: Regenerate.
468 2006-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>
470         * intrinsics/cpu_time.c:  Add cpu_time_10 and cpu_time_16 routines.
472 2006-09-28  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
474         * Makefile.am: Install libgfortranbegin inside compiler libraries
475         directory instead of system libraries directory.
476         * Makefile.in: Regenerate.
478 2006-09-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
480         * Makefile.am: Remove dependency on gfortypes.h.
481         * Makefile.in: Regenerate.
483 2006-09-22  Danny Smith  <dannysmith@users.sourceforge.net>
485         PR libfortran/27964
486         * configure.ac: Check for setmode() function.
487         * configure: Regenerate.
488         * config.h.in: Regenerate.
489         * io/unix.c (output_stream): Force stdout to binary mode. 
490         (error_stream): Force stderr to binary mode.
492 2006-09-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
494         PR libgfortran/29099
495         * intrinsics/date_and_time.c (secnds): Fix case of zero time.
497 2006-09-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
499         PR libgfortran/29053
500         * io.h (gfc_unit): Add variable, strm_pos, to track
501         STREAM I/O file position.
502         * file_pos.c (st_rewind): Set strm_pos to beginning.
503         * open.c (new_unit): Initialize strm_pos.
504         * read.c (read_x): Bump strm_pos.
505         * inquire.c (inquire_via_unit): Return strm_pos value.
506         * transfer.c (read_block),(read_block_direct),(write_block)
507         (write_buf): Seek to strm_pos - 1.  Update strm_pos when done.
508         (pre_position): Initialize strm_pos.
509         (data_transfer_init): Set strm_pos if DT_HAS_REC.
510         (finalize_transfer): Flush file, no need to update strm_pos.
512 2006-09-10  Paul Thomas  <pault@gcc.gnu.org>
514         PR libfortran/28947
515         * m4/matmul.m4: For the case where the second input argument is
516         transposed, ensure that the case with rank (a) == 1 is
517         correctly calculated.
518         * generated/matmul_r4.c: Regenerate.
519         * generated/matmul_r8.c: Regenerate.
520         * generated/matmul_r10.c: Regenerate.
521         * generated/matmul_r16.c: Regenerate.
522         * generated/matmul_c4.c: Regenerate.
523         * generated/matmul_c8.c: Regenerate.
524         * generated/matmul_c10.c: Regenerate.
525         * generated/matmul_c16.c: Regenerate.
526         * generated/matmul_i4.c: Regenerate.
527         * generated/matmul_i8.c: Regenerate.
528         * generated/matmul_i16.c: Regenerate.
530 2006-08-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
532         PR libgfortran/28354
533         * io/write.c: Check for special case of zero precision in format
534         and pre-round the real value.
536 2006-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
538         PR libgfortran/25828
539         * libgfortran.h: Rename GFC_LARGE_IO_INT to GFC_IO_INT.
540         * io/file_pos.c (st_backspace): Ignore if access=STREAM.
541         (st_rewind): Handle case of access=STREAM.
542         * io/open.c (access_opt): Add STREAM_ACCESS.
543         (edit_modes): Set current_record to zero only if not STREAM.
544         (new_unit): Initialize maxrec, recl, and last_record for STREAM.
545         * io/read.c (read_x): Advance file position for STREAM.
546         * io/io.h (enum unit_access): Align IOPARM flags with frontend.
547         Add ACCESS_STREAM. Add prototype for is_stream_io () function.
548         Use GFC_IO_INT.
549         * io/inquire.c (inquire_via_unit): Add text for access = "STREAM".
550         * io/unit.c (is_stream_io): New function to return true if access =
551         STREAM.
552         * io/transfer.c (file_mode): Add modes for unformatted stream and
553         formatted stream. (current_mode): Return appropriate file mode based
554         on access flags.
555         (read_block): Handle formatted stream reads.
556         (read_block_direct): Handle unformatted stream reads.
557         (write_block): Handle formatted stream writes.
558         (write_buf): Handle unformatted stream writes.
559         (unformatted_read): Fix up, use temporary for size.
560         (pre_position): Position file for STREAM access.
561         (data_transfer_init): Initialize for stream access, skip irrelevent
562         error checks.
563         (next_record_r),(next_record_w), and (next_record): Do nothing for
564         stream I/O.
565         (finalize_transfer): Flush when all done if stream I/O.
567 2006-08-12  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
569         * intrinsics/bessel.c: Add prototypes for all functions.
571 2006-08-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
573         * intrinsics/access.c (access_func): Remove export directive.
575 2006-08-02  Thomas Koenig  <Thomas.Koenig@online.de>
577         * Makefile.in:  Regenerate using automake 1.9.6.
578         * aclocal.m4:  Revert to previous version.
580 2006-08-01  Thomas Koenig  <Thomas.Koenig@online.de>
582         PR libfortran/28452
583         * Makefile.am:  Remove normalize.c.
584         * aclocal.m4:  Regenerate using aclocal 1.9.3.
585         * Makefile.in:  Regenerate using automake 1.9.3.
586         * libgfortran.h:  #include <float.h>.
587         Define GFC_REAL_*_DIGITS and GFC_REAL_*_RADIX.
588         Remove prototypes for normalize_r4_i4 and normalize_r8_i8.
589         * intrinsics/random.c (top level): Add prototypes for
590         random_r10, arandom_r10, random_r16 and arandom_r16.
591         (rnumber_4):  New static function.
592         (rnumber_8):  New static function.
593         (rnumber_10): New static function.
594         (rnumber_16): New static function.
595         (top level):  Set to kiss_size to 12 if we have
596         REAL(KIND=16), to 8 otherwise.
597         Define KISS_DEFAULT_SEED_1, KISS_DEFAULT_SEED_2 and
598         KISS_DEFAULT_SEED_3.
599         (kiss_random_kernel):  Take argument to differentiate
600         between different random number generators.
601         (random_r4):  Add argument to call to kiss_random_kernel,
602         use rnumber_*.
603         (random_r8):  Likewise.
604         (random_r10):  New function.
605         (random_r16):  New function.
606         (arandom_r4):  Add argument to call to kiss_random_kernel,
607         use_rnumber_*.
608         (arandom_r8):  Likewise.
609         (arandom_r10):  New function.
610         (arandom_r16):  New function.
611         * intrinsics/rand.c (rand):  Use shift and mask.
612         * runtime/normalize.c:  Remove.
614 2006-07-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
616         PR libgfortran/28335
617         * file_position.c (st_flush): Add clearer error when UNIT does not
618         exist. Add reference to standard in comment.
620 2006-07-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
622         PR libgfortran/28335
623         * close.c (st_close): Revert previous patch and add comment.
624         * file_position.c (st_flush): Revert previous patch and add comment.
626 2006-07-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
628         * intrinsics/date_and_time.c: Add functions for GMTIME and LTIME.
629         * intrinsics/access.c: New file.
630         * intrinsics/chmod.c: New file.
631         * configure.ac: Add checks for <sys/wait.h>, access, fork,execl
632         and wait.
633         * Makefile.am: Add new files intrinsics/access.c and
634         intrinsics/chmod.c.
635         * configure: Regenerate.
636         * config.h.in: Regenerate.
637         * Makefile.in: Regenerate.
639 2006-07-30  Janne Blomqvist  <jb@gcc.gnu.org>
641         * io/transfer.c (transfer_array): Remove stride0 fix.
642         
643 2006-07-26  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
645         * configure.ac: Check for function clock.
646         * Makefile.am: Compile new file intrinsics/clock.c.
647         * intrinsics/clock.c: New file.
648         * Makefile.in: Regenerate.
649         * configure: Regenerate.
650         * config.h.in: Regenerate.
651         * intrinsics/stat.c: Rename the old stat_i?_sub functions to
652         helper functions stat_i?_sub_0, and use them for both STAT and
653         LSTAT.
655 2006-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
657         PR libgfortran/28335
658         * close.c (st_close): Add error when UNIT does not exist.
659         * file_position.c (st_flush): Add error when UNIT does not exist.
661 2006-07-25  Paolo Bonzini  <bonzini@gnu.org>
663         PR build/26188
664         * configure: Regenerate.
666 2006-07-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
668         PR libgfortran/25289
669         * libgfortran.h: Add conditional definition of GFC_LARGE_IO_INT type.
670         * io/io.h (st_parameter_dt): Define rec as type GFC_LARGE_IO_INT.
672 2006-07-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
674         PR libgfortran/28339
675         * io/transfer.c (next_record_w): Use next_array_record result to set
676         END_FILE. (write_block): Test for END_FILE before the next write occurs.
677         * io/unit.c (get_internal_unit): Initialize iunit->endfile for internal
678         unit.
680 2006-07-19  Janne Blomqvist  <jb@gcc.gnu.org>
682         PR fortran/27919
683         * m4/dotprodc.m4: Remove.
684         * m4/dotprodl.m4: Remove.
685         * m4/dotprod.m4: Remove.
686         * generated/dotprod_*.c: Remove.
687         * Makefile.am: Remove any references to dot_product
688         implementation.
689         * Makefile.in: Regenerated.
690         
691 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
693         * configure: Regenerate.
695 2006-07-15  Steven G. Kargl  <kargls@comcast.net>
697         * intrinsics/etime.c: Remove etime_
698         * libtool-version: Bump from libgfortran.so.1 to libgfortran.so.2
700 2006-07-12  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
702         PR fortran/28163
703         * intrinsics/string_intrinsics.c (copy_string): Remove function.
705 2006-07-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
707         * intrinsics/date_and_time.c (itime0,idate0,itime_i4,itime_i8,
708         idate_i4,idate_i8): New functions.
710 2006-07-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
712         PR libgfortran/27704
713         * runtime/error.c (notify_std): Pass common flags into function. Use
714         flags to show locus of error or warning.
715         * libgfortran.h: Add enum try.  Add prototype for notify_std.
716         * io/open.c (edit_modes): Allow status="old" and add extension to
717         allow status="scratch"
718         *io/list_read.c (nml_read_obj): Update call to notify_std.
719         *io/io.h: Remove enum try and prototype for notify_std.
720         *io/transfer.c (read_sf): Update call to notify_std.
721         *io/format.c (parse_format_list): Update call to notify_std.
723 2006-06-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
725         * io/io.h: Move proto for unit_to_fd...
726         * libgfortran.h: ...here.
728 2006-06-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
730         * intrinsics/ierrno.c: Don't include "io/io.h".
731         * intrinsics/sleep.c: Likewise.
732         * intrinsics/perror.c: Likewise.
733         * intrinsics/stat.c: Likewise.
734         * intrinsics/kill.c: Likewise.
735         * intrinsics/time.c: Likewise.
736         * intrinsics/fnum.c: Likewise.
737         * intrinsics/rename.c: Likewise.
738         * intrinsics/symlnk.c: Likewise.
739         * intrinsics/chdir.c: Likewise.
740         * intrinsics/link.c: Likewise.
741         * intrinsics/random.c: Don't include "io/io.h". Include <gthr.h>.
742         * intrinsics/rand.c: Likewise.
744 2006-06-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
746         PR fortran/28094
747         * Makefile.am: Add _mod_r10.F90 and _mod_r16.F90.
748         * Makefile.in: Regenerate.
749         * generated/_mod_r10.F90: New file.
750         * generated/_mod_r16.F90: New file.
752 2006-06-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
754         PR libfortran/26769
755         * Makefile.am: Add r4 and r8 versions of reshape and transpose.
756         * Makefile.in: Regenerate.
757         * generated/reshape_r4.c: New file.
758         * generated/reshape_r8.c: New file.
759         * generated/transpose_r4.c: New file.
760         * generated/transpose_r8.c: New file.
762 2006-06-20  Paul Thomas  <pault@gcc.gnu.org>
764         PR libfortran/28005
765         * m4/matmul.m4: aystride = 1 does not uniquely detect the
766         presence of a temporary transpose; an array element in the
767         first dimension produces the same signature.  Detect this
768         using the rank of a and add specific code.
769         * generated/matmul_r4.c: Regenerate.
770         * generated/matmul_r8.c: Regenerate.
771         * generated/matmul_r10.c: Regenerate.
772         * generated/matmul_r16.c: Regenerate.
773         * generated/matmul_c4.c: Regenerate.
774         * generated/matmul_c8.c: Regenerate.
775         * generated/matmul_c10.c: Regenerate.
776         * generated/matmul_c16.c: Regenerate.
777         * generated/matmul_i4.c: Regenerate.
778         * generated/matmul_i8.c: Regenerate.
779         * generated/matmul_i16.c: Regenerate.
781 2006-06-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
783         PR libgomp/27254
784         * io/unit.c (get_internal_unit): Initialize and lock thread mutex
785         for internal units.
787 2006-06-06  Janne Blomqvist  <jb@gcc.gnu.org>
789         * m4/in_pack.m4: Add TODO comment about detecting temporaries,
790         remove test for stride 0, update copyright year.
791         * m4/transpose.m4: Remove test for stride 0, update copyright
792         year.
793         * m4/iforeach.m4: Likewise.
794         * m4/shape.m4: Likewise.
795         * m4/in_unpack.m4: Likewise.
796         * m4/reshape.m4: Likewise.
797         * m4/ifunction.m4: Likewise.
798         * m4/matmul.m4: Likewise.
799         * m4/matmull.m4: Likewise.
800         * intrinsics/etime.c: Likewise.
801         * intrinsics/transpose_generic.c: Likewise.
802         * intrinsics/spread_generic.c: Likewise.
803         * intrinsics/stat.c: Likewise.
804         * intrinsics/reshape_generic.c: Likewise.
805         * intrinsics/random.c: Likewise.
806         * generated/*: Regenerated from above changed m4 files.
807         
808 2006-05-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
810         PR libgfortran/27757
811         * io/unix.c (fd_seek): Set active to zero.
813 2006-05-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
815         PR libgfortran/27634
816         * io/format.c (parse_format_list): Allow missing period in format only
817         if -std=legacy.
819 2006-05-28  Thomas Koenig  <Thomas.Koenig@online.de>
821         * intrinsics/string_intrinsics.c (compare_string):
822         Use memcmp instead of strncmp to avoid tripping over
823         CHAR(0) in a string.
825 2006-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
827         * io/io.h (find_or_create_unit): Correct export declaration.
828         
829 2006-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
831         * intrinsics/abort.c (abort_): Remove.
833 2006-05-26  Janne Blomqvist  <jb@gcc.gnu.org>
835         * configure.ac: Remove AC_FUNC_MMAP.
836         * configure: Regenerated.
837         * Makefile.in: Regenerated.
838         * config.h.in: Regenerated.
839         * aclocal.m4: Regenerated.
841 2006-05-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
843         * intrinsics/associated.c (associated): Zero-sized arrays should
844         not be reported as ASSOCIATED.
846 2006-05-24  Carlos O'Donell  <carlos@codesourcery.com>
848         * Makefile.am: Add install-html target. Add install-html to .PHONY
849         * Makefile.in: Regenerate.
850         * aclocal.m4: Regenerate.
851         
852 2006-05-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
854         PR libgfortran/24459
855         * io/list_read.c (nml_parse_qualifier): Leave loop spec end value
856         at default value unless -std=f95 or if an array section
857         is specified in namelist input.  Warn if -pedantic.
858         * io/io.h (st_parameter_dt): Add expanded_read flag.
860 2006-05-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
862         PR libgfortran/22423
863         * io/transfer.c (read_block): Return NULL instead of nothing.
864         
865 2006-05-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
867         PR libgfortran/27575
868         * io/transfer.c (read_block):  Add check for end file condition.
869         (read_block_direct): Add check for end file condition.
871 2006-05-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
873         PR libfortran/26985
874         * m4/matmul.m4: Correct the condition for the memset call,
875         and remove the unneeded call to size0.
876         * generated/matmul_r4.c: Regenerate.
877         * generated/matmul_r8.c: Regenerate.
878         * generated/matmul_r10.c: Regenerate.
879         * generated/matmul_r16.c: Regenerate.
880         * generated/matmul_c4.c: Regenerate.
881         * generated/matmul_c8.c: Regenerate.
882         * generated/matmul_c10.c: Regenerate.
883         * generated/matmul_c16.c: Regenerate.
884         * generated/matmul_i4.c: Regenerate.
885         * generated/matmul_i8.c: Regenerate.
886         * generated/matmul_i16.c: Regenerate.
888 2006-04-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
890         PR libgfortran/27360
891         * io/list_read.c (read_logical):  Free line_buffer and free saved.
893 2006-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
895         PR libgfortran/27304
896         * io/transfer.c (formatted_transfer_scalar):  Generate error if data
897         descriptors are exhausted.
898         * io/format.c (next_format0): Fix comment.
900 2006-04-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
902         PR libgfortran/20257
903         * io/io.h: Add prototypes for get_internal_unit and free_internal_unit.
904         * io/unit.c (get_internal_unit): Initialize unit number, not zero.
905         (free_internal_unit): New function to consolidate freeing memory.
906         (get_unit): Initialize internal_unit_desc to NULL when unit is
907         external.
908         * io/unix.c (mem_close): Check for not NULL before freeing memory.
909         * io/transfer.c (read_block): Reset bytes_left and skip error if unit
910         is preconnected and default record length is reached.
911         (read_block_direct): Ditto.
912         (write_block): Ditto.
913         (write_buf): Ditto.
914         (data_transfer_init): Only flush if not internal unit.
915         (finalize_transfer): Ditto and delete code to free memory used by
916         internal units.
917         (st_read_done): Use new function - free_internal_unit.
918         (st_write_done): Use new function - free_internal unit.
920 2006-04-22  Jakub Jelinek  <jakub@redhat.com>
922         PR fortran/26769
923         * Makefile.am (i_transpose_c): Add generated/transpose_r16.c.
924         (i_reshape_c): Add generated/reshape_r16.c.
925         * Makefile.in: Regenerated.
926         * generated/transpose_r16.c: Generated new file.
927         * generated/redhape_r16.c: Generated new file.
929 2006-04-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
931         PR libgfortran/27138
932         * io/list_read.c (eat_line): New function.
933         (parse_repeat): Use new function and free_saved.
934         (read_logical): Same.
935         (read_integer): Use new function.
936         (parse_real): Use nml_bad_return and new function.
937         (read_complex): Use new function and free_saved.
938         (read_real): Same.
940 2006-04-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
942         PR libgfortran/26766
943         * io/io.h: Add bit to identify associated unit as internal.
944         * io/unit.c (get_external_unit): Renamed the find_unit_1 function to
945         reflect the external unit functionality vs internal unit.
946         (get_internal_unit): New function to allocate and initialize an internal
947         unit structure.
948         (get_unit): Use get_internal_unit and get_external_unit.
949         (is_internal_unit): Revised to use new bit added in io.h.
950         * io/transfer.c (data_transfer_init): Fix line width.
951         (st_read_done): Free memory allocated for internal unit.
952         (st_write_done): Add test to only flush and truncate when not an
953         internal unit.  Free memory allocated for internal unit.
955 2006-04-11  Jakub Jelinek  <jakub@redhat.com>
957         * io/io.h (st_parameter_dt): Revert 2005-12-10 change to
958         u.pad, fix comment.
959         (check_st_parameter_dt): New compile time assert.
961 2006-04-10  Jakub Jelinek  <jakub@redhat.com>
963         PR libgfortran/24685
964         * io/write.c (MIN_FIELD_WIDTH, STR, STR1): Define.
965         (output_float): Increase buffer sizes for IEEE quad and IBM extended
966         long double.
967         (write_real): Output REAL(16) as 1PG43.34E4 rather than 1PG40.31E4.
969 2006-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
971         PR libgfortran/26890
972         * io/io.h: Revert change to pad size made on 2006-03-30.
973         Add comment explaining dependency with fortran/trans-io.c.
974         
975 2006-04-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
977         * io/write.c (output_float): Update condition to not error when
978         decimal precision in format specifier is zero.
980 2006-04-01  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
982         * config/fpu-387.h: Use previously added SSE code in all
983         cases, as it really is the right thing to do.
985 2006-03-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
987         PR libgfortran/26890
988         * io/io.h: Add size_used to st_parameter_dt, adjust pad size.
989         *io/transfer.c (data_transfer_init): Initialize size_used to zero.
990         (read_sf): Use size_used.
991         (read_block): Likewise.
992         (read_block_direct): Likewise.
993         (write_block): Likewise.
994         (write_buf): Likewise and eliminate erroneous FAILURE return.
995         (finalize_transfer): Assign value of size_used to *dtp->size.
997 2006-03-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
999         PR libfortran/26712
1000         * config/fpu-387.h: Add special case for handling of SSE
1001         control bit on i386-darwin.
1003 2006-03-30  Thomas Koenig  <Thomas.Koenig@online.de>
1005         PR fortran/25031
1006         * runtime/memory.c (allocate_array):  If stat is present and
1007         the variable is already allocated, free the variable, do
1008         the allocation and set stat.
1009         (allocate_array_64):  Likewise.  Whitespace fix.
1011 2006-03-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1013         PR libgfortran/26880
1014         * io/file_pos.c (st_rewind): Clear read_bad flag.
1016 2006-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1018         PR libgfortran/26661
1019         * io/io.h: Add read_sf so it can be used by read_x.
1020         * io/transfer.c (read_sf): Pass no_error flag to read_sf.  Use it to
1021         break out rather than error on EOF or EOR conditions.
1022         (read_block): Update call to read_sf.
1023         (read_block_direct): Ditto.
1024         * io/read.c (read_x): Use the modified read_sf instead of read_block.
1026 2006-03-25  Thomas Koenig  <Thomas.Koenig@online.de>
1028         PR libfortran/26735
1029         * io/transfer.c (data_transfer_init):  Set u_flags.convert
1030         on an unopened unit if specified by environment variable
1031         (via get_unformatted_convert) or by compile-time option.
1033 2006-03-25  Thomas Koenig  <Thomas.Koenig@online.de>
1035         PR fortran/26769
1036         * Makefile.am:  Add transpose_r10.c and reshape_r10.c.
1037         * aclocal.m4:  Regenerate using aclocal 1.9.3.
1038         * Makefile.in:  Regenerate using automake 1.9.3.
1039         * m4/iparm.m4 (rtype_ccode):  If rtype_letter is `i',
1040         evaluate to rtype_kind, otherwise to rtype_code.
1041         * generated/transpose_r10.c:  Add.
1042         * generated/reshape_r10.c:  Add.
1044 2006-03-22  Thomas Koenig  <Thomas.Koenig@online.de>
1046         PR fortran/19303
1047         * libgfortran.h (compile_options_t):  Add record_marker.
1048         * runtime/compile_options.c (set_record_marker):
1049         New function.
1050         * io/open.c:  If we have four-byte record markers, use
1051         GFC_INTEGER_4_HUGE as default record length.
1052         * io/file_pos.c (unformatted_backspace):  Handle
1053         different size record markers.
1054         * io/transfer.c (us_read):  Likewise.
1055         (us_write):  Likewise.
1056         (next_record_r):  Likewise.
1057         (write_us_marker):  Likewise.
1058         (next_record_w):  Likewise.
1060 2006-03-20  Thomas Koenig  <Thomas.Koenig@online.de>
1062         PR fortran/20935
1063         * m4/iforeach.m4:  Add SCALAR_FOREACH_FUNCTION macro.
1064         * m4/ifunction.m4:  Add SCALAR_ARRAY_FUNCTION macro.
1065         * m4/minloc0.m4:  Use SCALAR_FOREACH_FUNCTION.
1066         * m4/minloc1.m4:  Use SCALAR_ARRAY_FUNCTION.
1067         * m4/maxloc0.m4:  Use SCALAR_FOREACH_FUNCTION.
1068         * m4/maxloc1.m4:  Use SCALAR_ARRAY_FUNCTION.
1069         * m4/minval.m4:  Likewise.
1070         * m4/maxval.m4:  Likewise.
1071         * m4/product.m4:  Likewise.
1072         * m4/sum.m4:  Likewise.
1073         * minloc0_16_i16.c : Regenerated.
1074         * minloc0_16_i4.c : Regenerated.
1075         * minloc0_16_i8.c : Regenerated.
1076         * minloc0_16_r10.c : Regenerated.
1077         * minloc0_16_r16.c : Regenerated.
1078         * minloc0_16_r4.c : Regenerated.
1079         * minloc0_16_r8.c : Regenerated.
1080         * minloc0_4_i16.c : Regenerated.
1081         * minloc0_4_i4.c : Regenerated.
1082         * minloc0_4_i8.c : Regenerated.
1083         * minloc0_4_r10.c : Regenerated.
1084         * minloc0_4_r16.c : Regenerated.
1085         * minloc0_4_r4.c : Regenerated.
1086         * minloc0_4_r8.c : Regenerated.
1087         * minloc0_8_i16.c : Regenerated.
1088         * minloc0_8_i4.c : Regenerated.
1089         * minloc0_8_i8.c : Regenerated.
1090         * minloc0_8_r10.c : Regenerated.
1091         * minloc0_8_r16.c : Regenerated.
1092         * minloc0_8_r4.c : Regenerated.
1093         * minloc0_8_r8.c : Regenerated.
1094         * minloc1_16_i16.c : Regenerated.
1095         * minloc1_16_i4.c : Regenerated.
1096         * minloc1_16_i8.c : Regenerated.
1097         * minloc1_16_r10.c : Regenerated.
1098         * minloc1_16_r16.c : Regenerated.
1099         * minloc1_16_r4.c : Regenerated.
1100         * minloc1_16_r8.c : Regenerated.
1101         * minloc1_4_i16.c : Regenerated.
1102         * minloc1_4_i4.c : Regenerated.
1103         * minloc1_4_i8.c : Regenerated.
1104         * minloc1_4_r10.c : Regenerated.
1105         * minloc1_4_r16.c : Regenerated.
1106         * minloc1_4_r4.c : Regenerated.
1107         * minloc1_4_r8.c : Regenerated.
1108         * minloc1_8_i16.c : Regenerated.
1109         * minloc1_8_i4.c : Regenerated.
1110         * minloc1_8_i8.c : Regenerated.
1111         * minloc1_8_r10.c : Regenerated.
1112         * minloc1_8_r16.c : Regenerated.
1113         * minloc1_8_r4.c : Regenerated.
1114         * minloc1_8_r8.c : Regenerated.
1115         * maxloc0_16_i16.c : Regenerated.
1116         * maxloc0_16_i4.c : Regenerated.
1117         * maxloc0_16_i8.c : Regenerated.
1118         * maxloc0_16_r10.c : Regenerated.
1119         * maxloc0_16_r16.c : Regenerated.
1120         * maxloc0_16_r4.c : Regenerated.
1121         * maxloc0_16_r8.c : Regenerated.
1122         * maxloc0_4_i16.c : Regenerated.
1123         * maxloc0_4_i4.c : Regenerated.
1124         * maxloc0_4_i8.c : Regenerated.
1125         * maxloc0_4_r10.c : Regenerated.
1126         * maxloc0_4_r16.c : Regenerated.
1127         * maxloc0_4_r4.c : Regenerated.
1128         * maxloc0_4_r8.c : Regenerated.
1129         * maxloc0_8_i16.c : Regenerated.
1130         * maxloc0_8_i4.c : Regenerated.
1131         * maxloc0_8_i8.c : Regenerated.
1132         * maxloc0_8_r10.c : Regenerated.
1133         * maxloc0_8_r16.c : Regenerated.
1134         * maxloc0_8_r4.c : Regenerated.
1135         * maxloc0_8_r8.c : Regenerated.
1136         * maxloc1_16_i16.c : Regenerated.
1137         * maxloc1_16_i4.c : Regenerated.
1138         * maxloc1_16_i8.c : Regenerated.
1139         * maxloc1_16_r10.c : Regenerated.
1140         * maxloc1_16_r16.c : Regenerated.
1141         * maxloc1_16_r4.c : Regenerated.
1142         * maxloc1_16_r8.c : Regenerated.
1143         * maxloc1_4_i16.c : Regenerated.
1144         * maxloc1_4_i4.c : Regenerated.
1145         * maxloc1_4_i8.c : Regenerated.
1146         * maxloc1_4_r10.c : Regenerated.
1147         * maxloc1_4_r16.c : Regenerated.
1148         * maxloc1_4_r4.c : Regenerated.
1149         * maxloc1_4_r8.c : Regenerated.
1150         * maxloc1_8_i16.c : Regenerated.
1151         * maxloc1_8_i4.c : Regenerated.
1152         * maxloc1_8_i8.c : Regenerated.
1153         * maxloc1_8_r10.c : Regenerated.
1154         * maxloc1_8_r16.c : Regenerated.
1155         * maxloc1_8_r4.c : Regenerated.
1156         * maxloc1_8_r8.c : Regenerated.
1157         * maxval_i16.c : Regenerated.
1158         * maxval_i4.c : Regenerated.
1159         * maxval_i8.c : Regenerated.
1160         * maxval_r10.c : Regenerated.
1161         * maxval_r16.c : Regenerated.
1162         * maxval_r4.c : Regenerated.
1163         * maxval_r8.c : Regenerated.
1164         * minval_i16.c : Regenerated.
1165         * minval_i4.c : Regenerated.
1166         * minval_i8.c : Regenerated.
1167         * minval_r10.c : Regenerated.
1168         * minval_r16.c : Regenerated.
1169         * minval_r4.c : Regenerated.
1170         * minval_r8.c : Regenerated.
1171         * sum_c10.c : Regenerated.
1172         * sum_c16.c : Regenerated.
1173         * sum_c4.c : Regenerated.
1174         * sum_c8.c : Regenerated.
1175         * sum_i16.c : Regenerated.
1176         * sum_i4.c : Regenerated.
1177         * sum_i8.c : Regenerated.
1178         * sum_r10.c : Regenerated.
1179         * sum_r16.c : Regenerated.
1180         * sum_r4.c : Regenerated.
1181         * sum_r8.c : Regenerated.
1182         * product_c10.c : Regenerated.
1183         * product_c16.c : Regenerated.
1184         * product_c4.c : Regenerated.
1185         * product_c8.c : Regenerated.
1186         * product_i16.c : Regenerated.
1187         * product_i4.c : Regenerated.
1188         * product_i8.c : Regenerated.
1189         * product_r10.c : Regenerated.
1190         * product_r16.c : Regenerated.
1191         * product_r4.c : Regenerated.
1192         * product_r8.c : Regenerated.
1194 2006-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1196         PR libgfortran/26509
1197         * libgfortran.h: Add ERROR_DIRECT_EOR.
1198         * runtime/error.c (translate_error): Add translation for new error.
1199         * io/transfer.c (write_buf): Add check for EOR when mode is 
1200         direct access.
1202 2006-03-13  Paul Thomas  <pault@gcc.gnu.org>
1204         PR fortran/25378
1205         * libgfortran/m4/minloc1.m4: Set the initial position to zero and
1206         modify the condition for updating it, to implement the F2003
1207         requirement for all(mask).eq.false.
1208         * libgfortran/m4/maxloc1.m4: The same.
1209         * libgfortran/m4/iforeach.m4: The same.
1210         * libgfortran/m4/minloc0.m4: The same.
1211         * libgfortran/m4/maxloc0.m4: The same.
1212         * libgfortran/generated/maxloc0_16_i16.c: Regenerated, together
1213         with 41 others.
1214         * libgfortran/generated/minloc0_16_i16.c: Regenerated, together
1215         with 41 others.
1217 2006-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1219         PR libgfortran/26499
1220         * io/file_pos (st_rewind): Flush always.
1221         * io/unix.c (fd_truncate): Return SUCCESS rather than FAILURE for
1222         special files like /dev/null.
1223         * io/transfer.c (st_write_done): Remove broken logic that
1224         prevented calling fd_truncate.
1226 2006-03-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1228         PR libgfortran/26554
1229         * io/list_read.c (read_logical): Return the value if not in namelist
1230         mode.
1232 2006-03-03  Thomas Koenig  <Thomas.Koenig@online.de>
1234         PR fortran/25031
1235         * runtime/memory.c:  Adjust copyright years.
1236         (allocate_array):  New function.
1237         (allocate64_array):  New function.
1238         * libgfortran.h (error_codes):  Add ERROR_ALLOCATION.
1240 2006-02-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1242         PR libgfortran/26136
1243         * io/io.h: Add flag for reading from line_buffer.
1244         * io/list_read.c (l_push_char): New function to save namelist
1245         input when reading logicals.
1246         (free_line): New function to free line_buffer memory.
1247         (next_char): Added feature to read from line_buffer.
1248         (read_logical): Use new functions to test for '=' after reading a
1249         logical value, checking for possible variable name.
1250         (namelist_read): Use free_line when all done.
1252 2006-02-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1254         PR libgfortran/26464
1255         * io/file_pos.c (st_backspace): Flush and truncate file
1256         when in AFTER_ENDFILE condition.
1257         * io/transfer.c (st_read_done): Remove flush, no longer needed.
1259 2006-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1261         PR libgfortran/26423
1262         * io/unix.c (fd_seek): Revert change from 25949.
1263         (fd_read): Same.
1264         (fd_write): Same.
1266 2006-02-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1268         * io/open.c (edit_modes): Correct abusive copy-pasting.
1270 2006-02-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1272         PR libfortran/24903
1273         * m4/dotprodc.m4: Use __builtin_conj instead of assigning real
1274         and imaginary parts separately.
1275         * generated/dotprod_c4.c: Regenerated.
1276         * generated/dotprod_c8.c: Regenerated.
1277         * generated/dotprod_c10.c: Regenerated.
1278         * generated/dotprod_c16.c: Regenerated.
1280 2006-02-12  Janne Blomqvist  <jb@gcc.gnu.org>
1282         PR libgfortran/25949
1283         * io/io.h: Add set function pointer to struct stream.  
1284         * io/unix.c (fd_seek): Only update offset, don't seek.
1285         (fd_sset): New function.
1286         (fd_read): Call lseek directly if necessary.
1287         (fd_write): Likewise.
1288         (fd_open): Set pointer to fd_sset.
1289         (mem_set): New function.
1290         (open_internal): Set pointer to mem_set.
1291         * io/transfer.c (write_block_direct): Rename to write_buf, add
1292         error return, non-pointer length argument.
1293         (unformatted_write): Update to use write_buf.
1294         (us_write): Simplify by using swrite instead of salloc_w.
1295         (write_us_marker): New function.
1296         (new_record_w): Use sset instead of memset, use write_us_marker,
1297         simplify by using swrite instead of salloc_w.
1299 2006-02-08  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1301         PR libfortran/25425
1302         * libgfortran.h: Add pedantic field to compile_options struct.
1303         * io/write.c (calculate_G_format): Depending on the standard,
1304         choose E or F format for list-directed output of 0.0.
1305         * runtime/error.c (notify_std): Make warning and error dependent
1306         on pedanticity.
1307         * runtime/compile_options.c (set_std): Use new pedantic argument.
1309 2006-02-07  Dale Ranta  <dir@lanl.gov>
1311         PR fortran/25577
1312         * intrinsics/mvbits.c: Shift '(TYPE)1' type when building 'lenmask'.
1314 2006-02-07  Rainer Emrich <r.emrich@de.tecosim.com>
1316         * intrinsics/c99_functions.c: Work around incompatible
1317         declarations of cabs{,f,l} on pre-C99 IRIX systems.
1319 2005-02-06  Thomas Koenig  <Thomas.Koenig@online.de>
1321         PR libfortran/23815
1322         * runtime/environ.c (init_unformatted):  Add GFORTRAN_CONVERT_UNIT
1323         environment variable.
1324         (top level):  Add defines, type and static variables for
1325         GFORTRAN_CONVERT_UNIT handling.
1326         (search_unit):  New function.
1327         (match_word): New function.
1328         (match_integer): New function.
1329         (next_token): New function.
1330         (push_token): New function.
1331         (mark_single): New function.
1332         (mark_range): New funciton.
1333         (do_parse): New function.
1334         (init_unformatted): New function.
1335         (get_unformatted_convert): New function.
1336         * runtime/compile_options.c:  Add set_convert().
1337         * libgfortran.h:  Add convert to compile_options_t.
1338         * io/open.c (st_open): Call get_unformatted_convert to get
1339         unit default; if CONVERT_NONE is returned, check for
1340         the presence of a CONVERT specifier and use it.
1341         As default, use compile_options.convert.
1342         * io/io.h (top level): Add CONVERT_NONE to unit_convert, to signal
1343         "nothing has been set".
1344         (top level): Add prototype for get_unformatted_convert.
1346 2006-02-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1348         PR libfortran/24685
1349         * io/write.c (write_real): Widen the default format for real(10)
1350         variables output.
1352 2006-01-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1354         PR libgfortran/25835
1355         * io/transfer.c (st_read_done): Flush buffers when read is done.
1357 2006-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1359         PR libgfortran/25697
1360         * io/transfer.c (us_read): Detect end of file condition from previous
1361         operations and bail out (no need to pre-position).
1363 2006-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1365         PR libgfortran/25631
1366         * io/transfer.c (formatted_transfer_scalar): Adjust pending_spaces and
1367         skips so that TL works correctly when no bytes_used yet.  
1369 2006-01-16  Roger Sayle  <roger@eyesopen.com>
1371         * configure.ac (CFLAGS): Update to include -std=gnu99 so that
1372         the configure tests will be run with the same environment as
1373         used to compile the libgfortran source code.
1374         * configure: Regenerate.
1376 2006-01-12  Roger Sayle  <roger@eyesopen.com>
1378         * intrinsics/c99_functions.c: Add function prototypes to avoid
1379         warnings from -Wstrict-prototypes -Wmissing-prototypes.  On Tru64
1380         work around a brain-dead libm by redirecting calls to cabs{,f,l}
1381         to a local __gfc_cabs{,f,l}.
1383 2006-01-07  Janne Blomqvist  <jb@gcc.gnu.org>
1385         * configure.ac: Remove check for sys/mman.h.
1386         * configure: Regenerated.
1387         * Makefile.in: Regenerated.
1388         * config.h.in: Regenerated.
1389         * aclocal.m4: Regenerated.
1390         
1391 2006-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1393         PR libgfortran/25598
1394         * io/file_pos.c (unformatted_backspace): Assure the new file position
1395         to seek is not less than zero.
1396         (st_backspace): Set unit bytes_left to zero.
1397         * io/transfer.c (next_record_r): Fix line lengths, no functional change.
1399 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
1401         PR target/25259
1402         * configure.ac: Use GCC_HEADER_STDINT.
1403         * libgfortran.h: Include gstdint.h.
1404         * aclocal.m4: Regenerate.
1405         * configure: Regenerate.
1407 2006-01-01  Steven G. Kargl  <kargls@comcast.net>
1409         * ChangeLog: Split into years ...
1410         * ChangeLog-2002: here.
1411         * ChangeLog-2003: here.
1412         * ChangeLog-2004: here.
1413         * ChangeLog-2005: here.