OSDN Git Service

* acinclude.m4 (LIBGFOR_CHECK_UNLINK_OPEN_FILE): Add check to see
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2005-08-27  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2
3         * acinclude.m4 (LIBGFOR_CHECK_UNLINK_OPEN_FILE): Add check to see
4         if target can unlink open files.
5         * configure.ac: Use this new test.
6         * config.h.in: Regenerate.
7         * configure: Regenerate.
8         * Makefile.in: Regenerate.
9         * aclocal.ac: Regenerate.
10         * io/io.h: Add prototype for unpack_filename.
11         * io/close.c (st_close): Delete file after closing unit if
12         HAVE_UNLINK_OPEN_FILE is not defined. 
13         * io/unix.c (unpack_filename): Unlink scratch file after opening
14         it only if HAVE_UNLINK_OPEN_FILE is defined.
15
16 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
17
18         * All files: Update FSF address.
19
20 2005-08-16  Thomas Koenig  <Thomas.Koenig@online.de>
21
22         PR libfortran/23428
23         * io/transfer.c (iolength_transfer):  Remove __attribute__ ((unused))
24         from type.  Return correct length for inquire(iolength=)
25         for complex variables.
26
27 2005-08-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
28             Steven Bosscher  <stevenb@suse.de>
29
30         PR libfortran/20006
31         * Makefile.am: Add file runtime/compile_options.c.
32         * Makefile.in: Regenerate.
33         * libgfortran.h: Create structure compile_options_t. Define the
34         compile_options variable and GFC_STD_ macros.
35         * runtime/compile_options.c: New file.
36         * runtime/error.c (notify_std): New function.
37         * runtime/main.c (init): Call init_compile_options during
38         initialization.
39         * io/format.c: Use the new notify_std function for the $
40         descriptor extension.
41
42 2005-08-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
43         * Makefile.am: Add file intrinsics/tty.c to Makefile process.
44         * Makefile.in: Regenerate.
45         * io/io.h: Prototypes for new functions stream_isatty and
46         stream_ttyname.
47         * io/unix (stream_isatty, stream_ttyname): New functions to call
48         isatty() and ttyname() on a given unit.
49         * intrinsics/tty.c: New file to implement g77 intrinsics TTYNAM
50         and ISATTY.
51
52 2005-08-08  Jerry DeLisle  <jvdelisle@verizon.net>
53
54         PR libfortran/23154
55         * io/transfer.c (data_transfer_init): Initialize
56         current_unit->bytes_left for a read.
57
58 2005-08-07  Janne Blomqvist  <jblomqvi@cc.hut.fi>
59
60         PR fortran/22390
61         * io/backspace.c: File removed, contents moved to ...
62         * io/endfile.c: Ditto.
63         * io/rewind.c: Ditto.
64         * io/file_pos.c: New file, ... here.
65         * Makefile.am: Add file_pos.c to list, remove obsolete files.
66         * Makefile.in: Regenerated.
67
68 2005-08-07  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
69
70         * io/io.h: Change DEFAULT_TEMPDIR to /tmp instead of /var/tmp.
71         * io/unix.c (tempfile): Look at the TEMP environment variable
72         to find the temporary files directory. Whitespace correction.
73
74 2005-08-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
75
76         * io/unix.c: Add O_RDWR to open() call.
77
78 2005-08-04 Paul Thomas  <pault@gcc.gnu.org>
79
80         * transfer.c (data_transfer_init): Truncate file in
81         sequential WRITE when last_record == 0, rather than
82         current_record.  Cures problem on RH9.
83
84 2005-08-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
85
86         * libgfortran.h: When isfinite is not provided by the system,
87         define it as a macro, so that it can accept any floating point
88         type.
89
90 2005-08-01  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
91
92         PR libfortran/23178
93         * intrinsics/flush.c (flush_i8): Add function flush_i8. Update
94         copyright years.
95
96 2005-07-31  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
97
98         PR libfortran/21787
99         * intrinsics/abort.c (abort): Close units before aborting.
100         Updated copyright years.
101
102 2005-07-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
103
104         PR libfortran/22436
105         * io/write.c (write_real): Add default formats for real(10) and
106         real(16).
107
108 2005-07-30 Paul Thomas  <pault@gcc.gnu.org>
109
110         PR fortran/22570 and related issues.
111         * transfer.c (formatted_transfer): Make sure that there
112         really is data present before X- or T- editing. Move all
113         treatment of tabbing during writes to start of next data
114         producing format. Suppress incorrect zeroing of bytes_left
115         in slash formating. Insert int cast for assignment of a
116         difference of two gfc_offsets.
117
118 2005-07-23  Jerry DeLisle  <jvdelisle@verizon.net>
119
120         * io/write.c (write_float): Revise output of IEEE exceptional
121         values to comply with F95 and F2003 standards.
122
123 2005-07-22 Jerry DeLisle <jvdelisle@verizon.net>
124
125         PR libfortran/22570
126         * io/unit.c (init_units): Replace BLANK_ZERO with
127         BLANK_UNSPECIFIED.
128
129 2005-07-22 Jerry DeLisle <jvdelisle@verizon.net>
130
131         PR libfortran/21875  (FM111.f)
132         * io/read.c (next_char): Return a ' ' character when BLANK_ZERO
133         or BLANK_NULL are active.
134         (read_decimal): Interpret ' ' character correctly for BZ or BN.
135         (read_radix): Interpret ' ' character correctly for BZ or BN.
136         (read_f): Interpret ' ' character correctly for BZ or BN.
137
138 2005-07-22 Paul Thomas  <pault@gcc.gnu.org>
139
140         PR libfortran/22570
141         * read.c (read_x): Correct the condition for doing the
142         x-editing during formatted input.
143         * transfer.c (formatted_transfer): Cast offset difference
144         as int, clean-up arithmetic with new variable, bytes_used,
145         zero counters for FMT_SLASH,
146         (data_transfer_init) Zero X- and T-editing counters
147         unconditionally.
148         (next_record_w) Zero X- and T-editing counters.
149         unconditionally.
150
151 2005-07-17  Jerry DeLisle  <jvdelisle@verizon.net>
152
153         * io/write.c (write_float): Fix field width checks for
154         printing 'Infinity' or 'Inf'.
155         (output_float): Fix typo in comment.
156
157 2005-07-12 Paul Thomas  <pault@gcc.gnu.org>
158
159         PR libfortran/16435
160         * transfer.c (formatted_transfer): Correct the problems
161         with X- and T-editting that caused TLs followed by TRs
162         to overwrite data, which caused NIST FM908.FOR to fail
163         on many tests.
164         (data_transfer_init): Zero X- and T-editting counters at
165         the start of formatted IO.
166         * write.c (write_x): Write specified number of skips with
167         specified number of spaces at the end.
168
169 2005-07-13 Paul Thomas  <pault@gcc.gnu.org>
170
171         * io/read.c (read_complex): Prevent X formatting during reads
172         from going beyond EOR to fix NIST fm908.FOR failure.
173         * io/list_read.c (read_complex): Allow complex data in list-
174         directed reads to have eols either side of the comma to
175         fix NIST FM906.FOR failure.
176
177 2005-07-12  Thomas Koenig  <Thomas.Koenig@online.de>
178
179         PR libfortran/21593
180         * io/unix.c:  Add member special_file to type unix_stream.
181         (fd_truncate):  Don't call ftruncate or chsize if
182         s refers to a special file.
183         (fd_to_stream):  initialize s->special_file.
184
185 2005-07-11  David Edelsohn  <edelsohn@gnu.org>
186
187         PR libgfortran/22412
188         * io/write.c (otoa): Bias p by SCRATCH_SIZE, not
189         sizeof (SCRATCH_SIZE).
190         (btoa): Same.
191
192 2005-07-09  Jerry DeLisle  <jvdelisle@verizon.net>
193
194         PR libfortran/21875  (FM111.f)
195         * io/read.c (next_char): Return a ' ' character when BLANK_ZERO or
196         BLANK_NULL are active.
197         (read_decimal): Interpret ' ' character correctly for BZ or BN.
198         (read_radix): Interpret ' ' character correctly for BZ or BN.
199         (read_f): Interpret ' ' character correctly for BZ or BN.
200         * gfortran.dg/test (fmt_read_bz_bn.f90): New test case.
201
202 2005-07-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
203             Thomas Koenig  <Thomas.Koenig@online.de>
204
205         PR libfortran/22217
206         * io/write.c (extract_unit):  New function; extract
207         ints as unsigned signed int of the correct size.
208         (write_int):  Use it.
209         * runtime/error.c:  Adjust copyright years.
210         Adjust size of buffer to maximum that can occur.
211
212 2005-07-07  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
213
214         * libgfortran.h (GFC_ARRAY_DESCRIPTOR): Replace 'type *base' by
215         'size_t offset'.
216         * intrinsics/cshift0.c, intrinsics/eoshift0.c,
217         intrinsics/eoshift2.c,intrinsics/pack_generic.c,
218         intrinsics/reshape_generic.c, intrinsics/spread_generic.c,
219         intrinsics/transpose_generic.c, intrinsics/unpack_generic,
220         m4/cshift1.m4, m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4,
221         m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/reshape.m4,
222         m4,transpose.m4: Set renamed field 'offset' to zero instead of
223         'base'.
224         * generated/all_l4.c, generated/all_l8.c,
225         generated/any_l4.c, generated/any_l8.c, generated/count_4_l4.c,
226         generated/count_4_l8.c, generated/count_8_l4.c,
227         generated/count_8_l8.c, generated/chift1_4.c,
228         generated/cshift1_8.c, generated/eoshift1_4.c,
229         generated/eoshift1_8.c, generated/eoshift3_4.c,
230         generated/eoshift3_8.c, generated/matmul_c4.c,
231         generated/matmul_c8.c, generated/matmul_i4.c, matmul_i8.c,
232         generated/matmul_l4.c, generated/matmul_l8.c,
233         generated/matmul_r4.c, generated/matmul_r8.c,
234         generated/maxloc0_4_i4.c, generated/maxloc0_4_i8.c,
235         generated/maxloc0_4_r4.c, generated/maxloc0_4_r8.c,
236         generated/maxloc0_8_i4.c, generated/maxloc0_8_i8.c,
237         generated/maxloc0_8_r4.c, generated/maxloc0_8_r8.c,
238         generated/maxloc1_4_i4.c, generated/maxloc1_4_i8.c,
239         generated/maxloc1_4_r4.c, generated/maxloc1_4_r8.c,
240         generated/maxloc1_8_i4.c, generated/maxloc1_8_i8.c,
241         generated/maxloc1_8_r4.c, generated/maxloc1_8_r8.c,
242         generated/maxval_i4.c, generated/maxval_i8.c,
243         generated/maxval_r4.c, generated/maxval_r8.c,
244         generated/minloc0_4_i4.c, generated/minloc0_4_i8.c,
245         generated/minloc0_4_r4.c, generated/minloc0_4_r8.c,
246         generated/minloc0_8_i4.c, generated/minloc0_8_i8.c,
247         generated/minloc0_8_r4.c, generated/minloc0_8_r8.c,
248         generated/minloc1_4_i4.c, generated/minloc1_4_i8.c,
249         generated/minloc1_4_r4.c, generated/minloc1_4_r8.c,
250         generated/minloc1_8_i4.c, generated/minloc1_8_i8.c,
251         generated/minloc1_8_r4.c, generated/minloc1_8_r8.c,
252         generated/minval_i4.c, generated/minval_i8.c,
253         generated/minval_r4.c, generated/minval_r8.c,
254         generated/product_c4.c, generated/product_c8.c,
255         generated/product_i4.c, generated/product_i8.c,
256         generated/product_r4.c, generated/product_r8.c,
257         generated/reshape_c4.c, generated/reshape_c8.c,
258         generated/reshape_i4.c, generated/reshape_i8.c,
259         generated/sum_c4.c, generated/sum_c8.c, generated/sum_i4.c,
260         generated/sum_i8.c, generated/sum_r4.c, generated/sum_r8.c,
261         generated/transpose_c4.c, generated/transpose_c8.c,
262         generated/transpose_i4.c, generated/transpose_i8.c: Regenerate:
263
264 2005-07-07  Thomas Koenig  <Thomas.Koenig@online.de>
265
266         PR libfortran/21594
267         * intrinsics/eoshift0.c:  If abs(shift) > len, fill the
268         the whole array with the boundary value, but don't overrun it.
269         * intrinsics/eoshift2.c:  Likewise.
270         * m4/eoshift1.m4:  Likewise.
271         * m4/eoshift3.m4:  Likewise.
272         * generated/eoshift1_4.c:  Regenerated.
273         * generated/eoshift1_8.c:  Regenerated.
274         * generated/eoshift3_4.c:  Regenerated.
275         * generated/eoshift3_8.c:  Regenerated.
276
277 2005-07-07  Feng Wang  <fengwang@nudt.edu.cn>
278
279         PR fortran/16531
280         * io/transfer.c (formatted_transfer): Enable FMT_A on other types to
281         support Hollerith constants.
282
283 2005-07-01  Andreas Jaeger  <aj@suse.de>
284
285         * intrinsics/unpack_generic.c: Remove const from parameter.
286
287         * io/transfer.c (formatted_transfer): Remove unused variable.
288
289 2005-06-28  Thomas Koenig  <Thomas.Koenig@online.de>
290
291         PR libfortran/22142
292         * m4/eoshift1.m4:  Correct bstride (it needs to be multiplied
293         by size since it's a char pointer).
294         * m4/eoshift1_4.c:  Regenerated.
295         * m4/eoshift1_8.c:  Regenerated.
296
297 2005-06-28  Thomas Koenig  <Thomas.Koenig@online.de>
298
299         PR libfortran/22142
300         * m4/eoshift3.m4:  Correct bstride (it needs to be multiplied
301         by size since it's a char pointer).
302         * m4/eoshift3_4.c:  Regenerated.
303         * m4/eoshift3_8.c:  Regenerated.
304
305 2005-06-28  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
306
307         PR libfortran/22170
308         * io/transfer.c (formatted_transfer): Do not iterate on the
309         repeat count of a FMT_SLASH, since this is already done in
310         next_format().
311
312 2005-06-25  Thomas Koenig  <Thomas.Koenig@online.de>
313
314         PR libfortran/22144
315         * m4/cshift1.m4: Remove const from argument ret.
316         Populate return array descriptor if ret->data is NULL.
317         * m4/eoshift1.m4: Likewise.
318         * m4/eoshift3.m4: Likewise.
319         * generated/cshift1_4.c:  Regenerated.
320         * generated/cshift1_8.c:  Regenerated.
321         * generated/eoshift1_4.c:  Regenerated.
322         * generated/eoshift1_8.c:  Regenerated.
323         * generated/eoshift3_4.c:  Regenerated.
324         * generated/eoshift3_8.c:  Regenerated.
325
326 2005-06-24  Jerry DeLisle <jvdelisle@verizon.net>
327
328         PR libfortran/21915
329         * Makefile.am: Include intrinsics/hyper.c.
330         * c99_protos.h: Add prototypes for single precision versions of
331         acosh, asinh, and atanh for platforms that do not have these.
332         * config.h.in: Add #undef for wrappers.
333         * configure.ac: Add checks for single precision versions.
334         * aclocal.m4: Regenerated.
335         * Makefile.in: Regenerated.
336         * configure: Regenerated.
337         * intrinsics/hyper.c: New file, adds new wrapper functions.
338
339 2005-06-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
340
341         * intrinsics/c99_functions.c (log10l): New log10l function for
342         systems where this is not available.
343         * c99_protos.h: Prototype for log10l function.
344         * libgfortran.h: Use generated kinds.h to define GFC_INTEGER_*,
345         GFC_UINTEGER_*, GFC_LOGICAL_*, GFC_REAL_*, GFC_COMPLEX_*. Update
346         prototypes for gfc_itoa and xtoa.
347         * io/io.h: Update prototypes for set_integer and max_value.
348         * io/list_read.c (convert_integer): Use new
349         GFC_(INTEGER|REAL)_LARGEST type.
350         * io/read.c (set_integer): Likewise.
351         (max_value): Likewise.
352         (convert_real): Likewise.
353         (real_l): Likewise.
354         (next_char): Likewise.
355         (read_decimal): Likewise.
356         (read_radix): Likewise.
357         (read_f): Likewise.
358         * io/write.c (extract_int): Use new GFC_INTEGER_LARGEST type.
359         (extract_real): Use new GFC_REAL_LARGEST type.
360         (calculate_exp): Likewise.
361         (calculate_G_format): Likewise.
362         (output_float): Likewise. Use log10l for long double values.
363         Add comment for sprintf format. Use GFC_REAL_LARGEST_FORMAT.
364         (write_l): Use new GFC_INTEGER_LARGEST type.
365         (write_float): Use new GFC_REAL_LARGEST type.
366         (write_int): Remove useless special case for (len < 8).
367         (write_decimal): Use GFC_INTEGER_LARGEST.
368         (otoa): Use GFC_UINTEGER_LARGEST as argument.
369         (btoa): Use GFC_UINTEGER_LARGEST as argument.
370         * runtime/error.c (gfc_itoa): Use GFC_INTEGER_LARGEST as
371         argument.
372         (xtoa): Use GFC_UINTEGER_LARGEST as argument.
373         * Makefile.am: Use mk-kinds-h.sh to generate header kinds.h
374         with all Fortran kinds available.
375         * configure.ac: Check for strtold and log10l.
376         * Makefile.in: Regenerate.
377         * aclocal.m4: Regenerate.
378         * configure: Regenerate.
379         * config.h.in: Regenerate.
380         * mk-kinds-h.sh: Configuration script for available integer
381         and real kinds.
382
383
384 2005-06-18  Janne Blomqvist  <jblomqvi@cc.hut.fi>
385
386         * unix.c (stream_at_bof): Don't assume that all non-mmapped files
387         are non-seekable.
388         (stream_at_eof): Likewise.
389
390 2005-06-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
391
392         PR libfortran/19155
393         * io/read.c (convert_real): strtod can set errno to EINVAL on an
394         empty string, but we shouldn't have an error in that case.
395
396 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
397
398         PR libfortran/19216
399         * io/list_read.c (eat_separator): No need to call next_record,
400         even in non-namelist_mode.
401
402 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
403
404         * io/transfer.c (formatted_transfer): Fix typo in error message.
405
406 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
407
408         PR libfortran/16436
409         * io/transfer.c (read_sf): Correct updating of bytes_left field.
410         (formatted_transfer): Correct updating of bytes_left field and
411         reformatting code (comments and whitespace).
412         * io/unix.c (move_pos_offset): "active" field should not be
413         changed here. Whitespace corrections.
414
415 2005-06-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
416
417         PR libfortran/21950
418         * intrinsics/c99_functions.c (scalbn): Provide fallback
419         implementation for scalbn.
420         * c99_protos.h: Prototype for scalbn.
421         * configure.ac: Add check for scalbn.
422         * configure: Regenerate.
423         * config.h.in: Regenerate.
424
425 2005-06-14  Thomas Koenig  <Thomas.Koenig@online.de>
426
427         * intrinsics/eoshift0.c:  Removed prototype for eoshift0.
428         * intrinsics/eoshift2.c:  Removed prototype for eoshift2.
429
430 2005-06-14  Tom Tromey  <tromey@redhat.com>
431
432         PR libgcj/19877:
433         * configure, aclocal.m4, Makefile.in: Rebuilt.
434
435 2005-06-12  Thomas Koenig  <Thomas.Koenig@online.de>
436
437         PR libfortran/21594
438         * intrinsics/eoshift0.c:  Add prototype for eoshift0.
439         * intrinsics/eoshift2.c:  Add prototype for eoshift2.
440
441 2005-06-12  Steven G. Kargl <kargls@comcast.net>
442             Thomas Koenig  <Thomas.Koenig@online.de>
443
444         PR libfortran/PR21797
445         * m4/cexp.m4 (csqrt`'q):  Add type qualifyer to
446         sqrt and fabs.
447         * generated/exp_c4.c:  Regenerated.
448
449 2005-06-12  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
450
451         PR libfortran/19155
452         * io/read.c (read_f): Take care of spaces after initial sign.
453
454 2005-06-11  Thomas Koenig  <Thomas.Koenig@onlinde.de>
455
456         PR libfortran/21333
457         * Makefile.am: Add in_pack_c4.c, in_pack_c8.c, in_unpack_c4.c
458         and in_unpack_c8.c.
459         * Makefile.in: Regenerate.
460         * libgfortran.h:  Declare internal_pack_c4, internal_pack_c8,
461         internal_unpack_c4 and internal_unpack_c8.
462         * m4/in_pack.m4: Use rtype_ccode insteald of rtype_kind
463         in function name.
464         Use sizeof (rtype_name) as size for memory allocation.
465         * m4/in_unpack.m4: Use rtype_ccode insteald of rtype_kind
466         in function name.
467         Use sizeof (rtype_name) for calculation of sizes for memcpy.
468         * runtime/in_pack_generic.c:  For real, integer and logical
469         call internal_pack_4 if size==4 and internal_pack_8 if
470         size==8.
471         For complex, call internal_pack_c4 if size==8 and
472         internal_pack_c8 if size==16.
473         * runtime/in_unpack_generic.c: For real, integer and logical
474         call internal_unpack_4 if size==4 and internal_unpack_8 if
475         size==8.
476         For complex, call internal_unpack_c4 if size==8 and
477         internal_unpack_c8 if size==16.
478         * generated/in_pack_i4.c:  Regenerated.
479         * generated/in_pack_i8.c:  Regenerated.
480         * generated/in_unpack_i4.c:  Regenerated.
481         * generated/in_unpack_i8.c:  Regenerated.
482         * generated/in_pack_c4.c:  New file.
483         * generated/in_pack_c8.c:  New file.
484         * generated/in_unpack_c4.c:  New file.
485         * generated/in_unpack_c8.c:  New file.
486
487 2005-06-09  Thomas Koenig  <Thomas.Koenig@online.de>
488
489         PR libfortran/21480
490         * m4/reshape.m4:  Use sizeof (rtype_name) for sizes to be passed
491         to reshape_packed.
492         * generated/reshape_c4.c:  Regenerated.
493         * generated/reshape_c8.c:  Regenerated.
494         * generated/reshape_i4.c:  Regenerated.
495         * generated/reshape_i8.c:  Regenerated.
496
497 2005-06-07  Thomas Koenig  <Thomas.Koenig@online.de>
498
499         PR libfortran/21926
500         * m4/matmul.m4:  Correct zeroing of result for non-packed
501         arrays with lowest stride is one.
502         * generated/matmul_c4.c:  Regenerated.
503         * generated/matmul_c8.c:  Regenerated.
504         * generated/matmul_i4.c:  Regenerated.
505         * generated/matmul_i8.c:  Regenerated.
506         * generated/matmul_r4.c:  Regenerated.
507         * generated/matmul_r8.c:  Regenerated.
508
509 2005-05-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
510
511         PR libfortran/20179
512         * io/unix.c (fd_close): Add test so that we don't close()
513         stdout and stderr.
514
515 2005-05-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
516
517         PR libfortran/20006
518         * io/format.c (parse_format_list): Set repeat count of $ format
519         node to 1.
520         * io/transfer.c (read_sf): Add g.seen_dollar to the test
521         concerning advancing I/O.
522         (data_transfer_init): Likewise.
523         (finalize_transfer): Likewise.
524
525 2005-05-27  Thomas Koenig  <Thomas.Koenig@online.de>
526
527         * runtime/in_pack_generic.c:  Adjust copyright years.
528         (in_pack_generic):  Change dimension of auxiliary arrays from
529         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
530         * runtime/in_unpack_generic.c:  Adjust copyright years.
531         (in_unpack_generic):  Change dimension of auxiliary arrays from
532         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
533
534 2005-05-26  Thomas Koenig  <Thomas.Koenig@online.de>
535
536         PR libfortran/17283
537         * intrinsics/unpack_generic.c:  Fix name of routine
538         on top.  Update copyright years.
539         (unpack1):  Remove const from return array descriptor.
540         rs:  New variable, for calculating return sizes.
541         Populate return array descriptor if ret->data is NULL.
542
543 2005-05-22  Peter Wainwright  <prw@ceiriog1.demon.co.uk>
544
545         PR libfortran/21376
546         * io/write.c (output_float): Rework logic to avoid call to log10
547         with argument equal to zero.
548
549 2005-05-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
550
551         * configure.ac: Check for trunc and truncf in libm.
552         * configure: Regenerate.
553         * config.h.in: Likewise.
554         * intrinsics/c99_functions.c (trunc, truncf): New functions.
555         * c99_protos.h (trunc, truncf): Declare them.
556
557 2005-05-18  Thomas Koenig  <Thomas.Koenig@online.de>
558
559         PR libfortran/21127
560         * Makefile.am:  Really commit.
561         * Makefile.in:  Really commit.
562
563 2005-05-18  Thomas Koenig  <Thomas.Koenig@online.de>
564
565         PR libfortran/21127
566         * Makefile.am:  Add generated/reshape_c4.c and
567         generated/reshape_c8.c.
568         * Makefile.in:  Regenerated.
569         * m4/iparm.m4:  Define rtype_ccode to be c4 or c8 for
570         complex types, 4 or 8 otherwise.
571         * m4/reshape.m4:  Use rtype_ccode instead of rtype_kind
572         in function name.
573         * generated/reshape_c4.c: New file.
574         * generated/reshape_c8.c: New file.
575
576 2005-05-16  Andreas Jaeger  <aj@suse.de>
577
578         * configure.ac: Add additional warning flags.
579         * configure: Regenerate.
580
581         * io/write.c (calculate_G_format): Remove unused parameter.
582         (output_float): Remove unused parameter.
583         (write_float): Change callers.
584         (nml_write_obj): Avoid signed warning.
585         Make variable const to support -Wwrite-strings.
586
587         * io/unix.c (fd_alloc, mmap_open, mmap_sfree, mem_sfree,
588         mem_truncate): Mark argument as unused.
589
590         * io/unit.c (get_unit): Mark argument as unused.
591         (init_units): Avoid warning about signed comparision.
592
593         * io/transfer.c (next_record_r): Remove unused parameter.
594         (next_record_w): Remove unused parameter.
595         (next_record): Change callers.
596         (iolength_transfer): Mark arguments as unused.
597
598         * io/open.c: Add initializer.
599
600         * io/list_read.c (read_character): Mark argument as unused.
601         (nml_match_name): Add const to make compile with -Wwrite-strings.
602
603         * io/format.c: Add initializer.
604
605 2005-05-15  Andreas Jaeger  <aj@suse.de>
606
607         * m4/eoshift1.m4: Initialize variables to avoid warnings.
608         * m4/eoshift3.m4: Initialize variables to avoid warnings.
609         * generated/eoshift1_4.c, generated/eoshift1_8.c,
610         generated/eoshift3_4.c, generated/eoshift3_8.c: Regenerated.
611
612         * intrinsics/spread_generic.c (spread): Initialize variables to
613         avoid warnings.
614
615         * intrinsics/eoshift0.c (eoshift0): Initialize variables to avoid
616         warnings.
617         * intrinsics/eoshift2.c (eoshift2): Initialize variables to avoid
618         warnings.
619
620         * io/list_read.c (nml_get_obj_data): Initialize variables to avoid
621         warnings.
622
623         * intrinsics/pack_generic.c (pack): Remove unneeded calculation.
624
625         * m4/matmull.m4 (matmul_): Remove unneeded calculations, fix
626         pointer cast to avoid warning.
627         * generated/matmul_l4.c: Regenerated.
628         * generated/matmul_l8.c: Regenerated.
629
630         * Makefile.am: Remove AM_CFLAGS here.
631         * configure.ac: Define AM_CFLAGS and AM_FCFLAGS so that warnings
632         are set.  Set additionally -Wstrict-prototypes for CFLAGS.
633         * Makefile.in: Regenerated.
634         * aclocal.m4: Regenerated.
635         * configure: Regenerated.
636
637         * intrinsics/system_clock.c (system_clock_4, system_clock_8): Add
638         missing returns, reformat a bit.
639
640         * io/write.c (nml_write_obj): Use %d again - and cast to int,
641         st_sprintf does not handle %ld.
642
643         * io/unit.c (is_internal_unit): Add void as parameter list.
644
645         * io/transfer.c: Move prototype declarations before the functions.
646
647         * runtime/normalize.c (almostone_r4, almostone_r8): Fix parameter
648         list.
649
650         * intrinsics/random.c (KISS_DEFAULT_SEED): Remove extra semicolon.
651
652         * io/transfer.c: Do not use empty initializers for global objects.
653         Add missing initializers.
654
655         * io/lock.c: Do not use empty initializers for global objects.
656
657         * io/close.c: Add missing initializers.
658
659         * runtime/environ.c: Add missing initializers. Do not use empty
660         initializers for global object.
661         (init_string): Mark argument as unused.
662
663         * runtime/main.c (cleanup): Fix parameter list.
664
665         * io/io.h: Fix parameter lists.
666
667         * m4/transpose.m4, m4/matmul.m4: Fix pointer cast to avoid
668         warning.
669
670         * generated/transpose_c4.c, generated/transpose_c8.c,
671         generated/transpose_i4.c, generated/transpose_i8.c,
672         generated/matmul_c4.c, generated/matmul_c8.c,
673         generated/matmul_i4.c, generated/matmul_i8.c,
674         generated/matmul_r4.c, generated/matmul_r8.c: Regenerated.
675
676         * io/write.c (nml_write_obj): Fix 64-bit problem.
677
678         * io/list_read.c (nml_get_obj_data): Add missing braces around
679         initializer to avoid warnings.
680
681         * intrinsics/etime.c (etime_sub): Remove unused variable.
682
683         * intrinsics/chdir.c, intrinsics/getlog.c, intrinsics/link.c,
684         intrinsics/symlnk.c, intrinsics/perror.c: Include <string.h> for
685         prototypes.
686
687         * runtime/string.c (compare0): Remove unused variable.
688         * io/unit.c (init_units): Remove unused variables.
689         * intrinsics/getcwd.c (getcwd_i4_sub): Remove unused variable.
690         * intrinsics/unlink.c (unlink_i4_sub): Remove unused variable.
691         * intrinsics/stat.c (stat_i4_sub, fstat_i8_sub, fstat_i4_sub,
692         stat_i8_sub): Remove unused variable.
693
694 2005-05-12  Thomas Koenig  <Thomas.Koenig@online.de>
695
696         PR libfortran/21324
697         * runtime/memory.c:  Don't define GFC_CLEAR_MEMORY (it's a
698         performance hog).
699         * io/open.c (new_unit): Zero freshly allocated memory for
700         unit structure.
701         * io/unit.c (init_units):  Zero freshly allocated memory for
702         STDIN, STDOUT and STDERR.
703         * io/unix.c (open_internal):  Zero freshly allocated memory
704         for unix_stream.
705         (fd_to_stream):  Likewise.
706
707 2005-05-11  Bud Davis  <bdavis@gfortran.org>
708
709         PR fortran/19478
710         * io/unix.c (fd_truncate): update positions when ftruncate
711         fails (like writing to /dev/null).
712
713 2005-05-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
714
715         PR libfortran/21471
716         * open.c (new_unit): Take care of the case where POSITION_APPEND
717         is specified (sseek to the end, and set u>-endfile).
718
719 2005-05-10  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
720
721         PR fortran/20178
722         * Makefile.am (gfor_specific_src): Add 'intrinsics/f2c_intrinsics.F90'
723         to dependencies.
724         * Makefile.in: Regenerate.
725         * intrinsics/f2c_specific.F90: New file.
726
727 2005-05-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
728
729         PR libfortran/20788
730         * io/unix.c (fd_to_stream): Add an avoid_mmap argument indicating
731         we don't we to mmap this stream. Use fd_open instead of mmap_open
732         in that case.
733         (open_external): Call fd_to_stream with avoid_mmap = 0.
734         (input_stream): Call fd_to_stream with avoid_mmap = 1.
735         (output_stream): Likewise.
736         (error_stream): Likewise.
737
738 2005-05-09  Mike Stump  <mrs@apple.com>
739
740         * configure: Regenerate.
741
742 2005-05-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
743
744         PR libfortran/19155
745         * io/read.c (read_f): Accept 'e', 'E', 'd' and 'D' as first
746         non-blank characters of a real number.
747
748 2005-05-04  Thomas Koenig  <Thomas.Koenig@online.de>
749
750         PR libfortran/21354
751         * m4/cshift1.m4: Change dimension of auxiliary arrays from
752         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
753         * m4/eoshift1.m4: Likewise.
754         * m4/eoshift3.m4: Likewise.
755         * m4/ifunction.m4: Likewise.
756         * m4/in_pack.m4: Likewise.
757         * m4/in_unpack.m4: Likewise.
758         * intrinsics/cshift0.c: Likewise.
759         * intrinsics/eoshift0.c: Likewise.
760         * intrinsics/eoshift2.c: Likewise.
761         * intrinsics/random.c: Likewise.
762         * intrinsics/spread_generic.c: Likewise.
763         * intrinsics/stat.c: Likewise.
764         * generated/all_l4.c: Regenerated.
765         * generated/all_l8.c: Regenerated.
766         * generated/any_l4.c: Regenerated.
767         * generated/any_l8.c: Regenerated.
768         * generated/count_4_l4.c: Regenerated.
769         * generated/count_4_l8.c: Regenerated.
770         * generated/count_8_l4.c: Regenerated.
771         * generated/count_8_l8.c: Regenerated.
772         * generated/cshift1_4.c: Regenerated.
773         * generated/cshift1_8.c: Regenerated.
774         * generated/eoshift1_4.c: Regenerated.
775         * generated/eoshift1_8.c: Regenerated.
776         * generated/eoshift3_4.c: Regenerated.
777         * generated/eoshift3_8.c: Regenerated.
778         * generated/in_pack_i4.c: Regenerated.
779         * generated/in_pack_i8.c: Regenerated.
780         * generated/in_unpack_i4.c: Regenerated.
781         * generated/in_unpack_i8.c: Regenerated.
782         * generated/maxloc0_4_i4.c: Regenerated.
783         * generated/maxloc0_4_i8.c: Regenerated.
784         * generated/maxloc0_4_r4.c: Regenerated.
785         * generated/maxloc0_4_r8.c: Regenerated.
786         * generated/maxloc0_8_i4.c: Regenerated.
787         * generated/maxloc0_8_i8.c: Regenerated.
788         * generated/maxloc0_8_r4.c: Regenerated.
789         * generated/maxloc0_8_r8.c: Regenerated.
790         * generated/maxloc1_4_i4.c: Regenerated.
791         * generated/maxloc1_4_i8.c: Regenerated.
792         * generated/maxloc1_4_r4.c: Regenerated.
793         * generated/maxloc1_4_r8.c: Regenerated.
794         * generated/maxloc1_8_i4.c: Regenerated.
795         * generated/maxloc1_8_i8.c: Regenerated.
796         * generated/maxloc1_8_r4.c: Regenerated.
797         * generated/maxloc1_8_r8.c: Regenerated.
798         * generated/maxval_i4.c: Regenerated.
799         * generated/maxval_i8.c: Regenerated.
800         * generated/maxval_r4.c: Regenerated.
801         * generated/maxval_r8.c: Regenerated.
802         * generated/minloc0_4_i4.c: Regenerated.
803         * generated/minloc0_4_i8.c: Regenerated.
804         * generated/minloc0_4_r4.c: Regenerated.
805         * generated/minloc0_4_r8.c: Regenerated.
806         * generated/minloc0_8_i4.c: Regenerated.
807         * generated/minloc0_8_i8.c: Regenerated.
808         * generated/minloc0_8_r4.c: Regenerated.
809         * generated/minloc0_8_r8.c: Regenerated.
810         * generated/minloc1_4_i4.c: Regenerated.
811         * generated/minloc1_4_i8.c: Regenerated.
812         * generated/minloc1_4_r4.c: Regenerated.
813         * generated/minloc1_4_r8.c: Regenerated.
814         * generated/minloc1_8_i4.c: Regenerated.
815         * generated/minloc1_8_i8.c: Regenerated.
816         * generated/minloc1_8_r4.c: Regenerated.
817         * generated/minloc1_8_r8.c: Regenerated.
818         * generated/minval_i4.c: Regenerated.
819         * generated/minval_i8.c: Regenerated.
820         * generated/minval_r4.c: Regenerated.
821         * generated/minval_r8.c: Regenerated.
822         * generated/product_c4.c: Regenerated.
823         * generated/product_c8.c: Regenerated.
824         * generated/product_i4.c: Regenerated.
825         * generated/product_i8.c: Regenerated.
826         * generated/product_r4.c: Regenerated.
827         * generated/product_r8.c: Regenerated.
828         * generated/sum_c4.c: Regenerated.
829         * generated/sum_c8.c: Regenerated.
830         * generated/sum_i4.c: Regenerated.
831         * generated/sum_i8.c: Regenerated.
832         * generated/sum_r4.c: Regenerated.
833         * generated/sum_r8.c: Regenerated.
834
835 2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>
836
837         PR libfortran/18958
838         libgfortran.h:  Change typedef of index_type from size_t
839         to ssize_t.
840
841 2005-04-30  Paul Thomas  <pault@gcc.gnu.org>
842
843         PR libfortran/18857
844         * generated/matmul_r8.c: Remove incorrect assertions.
845         * generated/matmul_c4.c: Regenerate
846         * generated/matmul_c8.c: Regenerate
847         * generated/matmul_i4.c: Regenerate
848         * generated/matmul_i8.c: Regenerate
849         * generated/matmul_r4.c: Regenerate
850         * generated/matmul_r8.c: Regenerate
851
852 2005-04-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
853
854         * configure.ac: Check for ftruncate and chsize.
855         * io/unix.c (fd_truncate): Provide chsize as alternative to
856         ftruncate.
857         * config.h.in: Regenerate.
858         * configure: Regenerate.
859
860 2004-04-29  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
861
862         * intrinsics/rename.c: Add missing #includes.
863
864 2004-04-28  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
865
866         * AUTHORS, COPYING, INSTALL, NEWS, README: Remove.
867
868 2005-04-26  David Edelsohn  <edelsohn@gnu.org>
869
870         PR libfortran/20930
871         * io/rewind.c (st_rewind): Flush the stream when resetting the mode
872         from WRITING to READING.
873
874 2005-04-22  Paul Thomas  <pault@gcc.gnu.org>
875             Jerry DeLisle  <jvdelisle@verizon.net>
876
877         * io/write.c (nml_write_obj): Provide 1 more byte for ext_name.
878         * io/list_read.c (nml_get_obj_data): Put extra brackets in get_mem
879         call for ext_name.  These fix the bug reported by Jerry DeLisle to
880         the fortran list and are based on his suggested fix.
881
882 2005-04-22  Thomas Koenig  <Thomas.Koenig@online.de>
883
884         PR libfortran/20074
885         PR libfortran/20436
886         PR libfortran/21108
887         * m4/reshape.m4 (reshape_`'rtype_kind):  rs, rex:  New
888         variables, to be used in calculation of return array sizes.
889         Populate return array descriptor if ret->data is NULL.
890         Fix condition for early return (it used to test something
891         undefined if order was used).
892         Remove duplicate check wether pad is used.
893         * intrinsics/reshape_generic.c (reshape_generic): Likewise.
894         Fix a few places where the wrong variables were set.
895         * generated/reshape_i4.c: Regenerated.
896         * generated/reshape_i8.c: Regenerated.
897
898 2005-04-18  Paul  Thomas <pault@gcc.gnu.org>
899
900         * io/list_read.c (nml_touch_nodes, nml_read_obj,
901         nml_get_obj_data): Fix memory leaks in code for derived types.
902
903 2005-04-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
904
905         PR libfortran/20950
906         * io/inquire.c (inquire_via_unit): Check for the gfc_unit being
907         NULL when setting ioparm.sequential.
908
909 2005-04-17  Thomas Koenig  <Thomas.Koenig@online.de>
910
911         PR libfortran/21075
912         * m4/reshape.m4 (reshape_`'rtype_kind):  Change dimension
913         of auxiliary arrays from GFC_MAX_DIMENSIONS - 1 to
914         GFC_MAX_DIMENSIONS.
915         * intrinsics/reshape_generic.c (reshape_generic):  Likewise.
916         * generated/reshape_i4.c:  Regenerated.
917         * generated/reshape_i8.c:  Regenerated.
918
919 2005-04-17 Paul Thomas <pault@gcc.gnu.org>
920
921         * io/list_read.c (eat_separator): at_eol = 1 replaced
922         (zapped at some time?).
923
924 2005-04-17 Paul Thomas <pault@gcc.gnu.org>
925
926         PR libgfortran/12884
927         PR libgfortran/17285
928         PR libgfortran/18122
929         PR libgfortran/18210
930         PR libgfortran/18392
931         PR libgfortran/18591
932         PR libgfortran/18879
933         * io/io.h (nml_ls): Declare.
934         (namelist_info): Modify for arrays.
935         * io/list_read.c (namelist_read): Reduced to call to new functions.
936         (match_namelist_name): Simplified.
937         (nml_query): Handles stdin queries ? and =?. New function.
938         (nml_get_obj_data): Parses object name. New function.
939         (touch_nml_nodes): Marks objects for read. New function.
940         (untouch_nml_nodes): Resets objects. New function.
941         (parse_qualifier): Parses and checks qualifiers. New function
942         (nml_read_object): Reads and stores object data. New function.
943         (eat_separator): No new_record on '/' in namelist.
944         (finish_separator): No new_record on '/' in namelist.
945         (read_logical): Error return for namelist.
946         (read_integer): Error return for namelist.
947         (read_complex): Error return for namelist.
948         (read_real): Error return for namelist.
949         * io/lock.c (library_end): Free extended namelist_info types.
950         * io/transfer.c (st_set_nml_var): Modified for arrays.
951         (st_set_nml_var_dim): Dimension descriptors. New function.
952         * io/write.c (namelist_write): Reduced to call to new functions.
953         (nml_write_obj): Writes output for object. New function.
954         (write_integer): Suppress leading blanks for repeat counts.
955         (write_int): Suppress leading blanks for repeat counts.
956         (write_float): Suppress leading blanks for repeat counts.
957         (output_float): Suppress leading blanks for repeat counts.
958
959 2005-04-15  Thomas Koenig  <Thomas.Koenig@online.de>
960
961         PR libfortran/18495
962         * intrinsics/spread_generic.c (spread):  Remove const from
963         return array descriptor.
964         New variables: rrank (rank of return array),  rs (for
965         calculating the size of the return array), srank (rank
966         of the source array).
967         Generate runtime error if the dim= argument is larger than
968         the rank of the return array.
969         Generate runtime error if the needed rank of the return
970         array is larger than 7.
971         If ret->data is null, populate the return array descriptor
972         and initialize the variables for the actual operation.
973         Otherwise, set ret->dim[0].stride to one if it is zero.
974         Change second, independent use of variable dim to srank.
975
976 2005-04-12  Mike Stump  <mrs@apple.com>
977
978         * configure: Regenerate.
979
980 2005-04-13  Thomas Koenig  <Thomas.Koenig@online.de>
981
982         PR libfortran/19106
983         * m4/iforeach.c (name`'rtype_qual`_'atype_code):  Add TODO
984         that setting correct strides is a front end job.
985         (`m'name`'rtype_qual`_'atype_code):  Likewise.  If mask has
986         a lowest stride of 0, adjust to 1.
987         * m4/ifunction.c (name`'rtype_qual`_'atype_code):  Add TODO
988         that setting correct strides is a front end job.
989         (`m'name`'rtype_qual`_'atype_code):  Likewise.  If mask has
990         a lowest stride of 0, adjust to 1.
991         * maxloc0_4_i4.c: Regenerated
992         * maxloc0_4_i8.c: Regenerated
993         * maxloc0_4_r4.c: Regenerated
994         * maxloc0_4_r8.c: Regenerated
995         * maxloc0_8_i4.c: Regenerated
996         * maxloc0_8_i8.c: Regenerated
997         * maxloc0_8_r4.c: Regenerated
998         * maxloc0_8_r8.c: Regenerated
999         * maxloc1_4_i4.c: Regenerated
1000         * maxloc1_4_i8.c: Regenerated
1001         * maxloc1_4_r4.c: Regenerated
1002         * maxloc1_4_r8.c: Regenerated
1003         * maxloc1_8_i4.c: Regenerated
1004         * maxloc1_8_i8.c: Regenerated
1005         * maxloc1_8_r4.c: Regenerated
1006         * maxloc1_8_r8.c: Regenerated
1007         * maxval_i4.c: Regenerated
1008         * maxval_i8.c: Regenerated
1009         * maxval_r4.c: Regenerated
1010         * maxval_r8.c: Regenerated
1011         * minloc0_4_i4.c: Regenerated
1012         * minloc0_4_i8.c: Regenerated
1013         * minloc0_4_r4.c: Regenerated
1014         * minloc0_4_r8.c: Regenerated
1015         * minloc0_8_i4.c: Regenerated
1016         * minloc0_8_i8.c: Regenerated
1017         * minloc0_8_r4.c: Regenerated
1018         * minloc0_8_r8.c: Regenerated
1019         * minloc1_4_i4.c: Regenerated
1020         * minloc1_4_i8.c: Regenerated
1021         * minloc1_4_r4.c: Regenerated
1022         * minloc1_4_r8.c: Regenerated
1023         * minloc1_8_i4.c: Regenerated
1024         * minloc1_8_i8.c: Regenerated
1025         * minloc1_8_r4.c: Regenerated
1026         * minloc1_8_r8.c: Regenerated
1027         * minval_i4.c: Regenerated
1028         * minval_i8.c: Regenerated
1029         * minval_r4.c: Regenerated
1030         * minval_r8.c: Regenerated
1031         * product_c4.c: Regenerated
1032         * product_c8.c: Regenerated
1033         * product_i4.c: Regenerated
1034         * product_i8.c: Regenerated
1035         * product_r4.c: Regenerated
1036         * product_r8.c: Regenerated
1037         * sum_c4.c: Regenerated
1038         * sum_c8.c: Regenerated
1039         * sum_i4.c: Regenerated
1040         * sum_i8.c: Regenerated
1041         * sum_r4.c: Regenerated
1042         * sum_r8.c: Regenerated
1043
1044 2005-04-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1045
1046         PR libfortran/20788
1047         * runtime/environ.c (init_unsigned_integer): Function for
1048         environment variables we want to be positive.
1049         (init_integer): Function to allow negative environment
1050         variables (e.g. for GFORTRAN_STDIN_UNIT).
1051
1052 2005-04-10  Thomas Koenig <Thomas.Koenig@online.de>
1053
1054         PR libfortran/17992
1055         PR libfortran/19568
1056         PR libfortran/19595
1057         PR libfortran/20005
1058         PR libfortran/20092
1059         PR libfortran/20131
1060         PR libfortran/20661
1061         PR libfortran/20744
1062         * io/transfer.c (top level): eor_condition: New static variable.
1063         (read_sf): Remove unnecessary zeroing of buffer (there is enough
1064         information in its length).
1065         Return a string of length 0 (to be padded by caller) if EOR was
1066         seen previously.
1067         Remove erroneous special casing of EOR for standard input.
1068         Set eor_condition for non-advancing I/O if an end of line was
1069         detected.
1070         Increment ioparm.size if necessary.
1071         (formatted_transfer):  Skip the function if there is an EOR condition.
1072         (data_transfer_init):  Initialize eor_condition to zero (false).
1073         (next_record_r):  Clear sf_seen_eor if a \n has been seen already.
1074         (finalize_transfer):  If there is an EOR condition, raise the error.
1075
1076 2005-04-09  Bud Davis  <bdavis@gfortran.org>
1077             Steven G. Kargl <kargls@comcast.net>
1078
1079         PR fortran/19872
1080         * io/transfer.c (data_transfer_init): truncate an existing
1081         file on the first write.
1082
1083 2005-04-09  Thomas Koenig  <Thomas.Koenig@online.de>
1084
1085         PR libfortran/19106
1086         PR libfortran/19014
1087         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): ditto.
1088         If retarray->data is NULL (i.e. the front end does not
1089         know the rank and dimenson of the array), fill in its
1090         properties and allocate memory.
1091         Change the assertions about rank and dimension of retarray into
1092         runtime errors and only check them for retarray->data != NULL.
1093         Do the same for correcting the stride from 0 to 1 in retarray.
1094         (`m'name`'rtype_qual`_'atype_code): Likewise.
1095         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Likewise.
1096         Change assertion about rank of array to runtime error.
1097         (`m'name`'rtype_qual`_'atype_code): Likewise.
1098         * generated/all_l4.c: Regenerated.
1099         * generated/all_l8.c: Regenerated.
1100         * generated/any_l4.c: Regenerated.
1101         * generated/any_l8.c: Regenerated.
1102         * generated/count_4_l4.c: Regenerated.
1103         * generated/count_4_l8.c: Regenerated.
1104         * generated/count_8_l4.c: Regenerated.
1105         * generated/count_8_l8.c: Regenerated.
1106         * generated/maxloc0_4_i4.c: Regenerated.
1107         * generated/maxloc0_4_i8.c: Regenerated.
1108         * generated/maxloc0_4_r4.c: Regenerated.
1109         * generated/maxloc0_4_r8.c: Regenerated.
1110         * generated/maxloc0_8_i4.c: Regenerated.
1111         * generated/maxloc0_8_i8.c: Regenerated.
1112         * generated/maxloc0_8_r4.c: Regenerated.
1113         * generated/maxloc0_8_r8.c: Regenerated.
1114         * generated/maxloc1_4_i4.c: Regenerated.
1115         * generated/maxloc1_4_i8.c: Regenerated.
1116         * generated/maxloc1_4_r4.c: Regenerated.
1117         * generated/maxloc1_4_r8.c: Regenerated.
1118         * generated/maxloc1_8_i4.c: Regenerated.
1119         * generated/maxloc1_8_i8.c: Regenerated.
1120         * generated/maxloc1_8_r4.c: Regenerated.
1121         * generated/maxloc1_8_r8.c: Regenerated.
1122         * generated/maxval_i4.c: Regenerated.
1123         * generated/maxval_i8.c: Regenerated.
1124         * generated/maxval_r4.c: Regenerated.
1125         * generated/maxval_r8.c: Regenerated.
1126         * generated/minloc0_4_i4.c: Regenerated.
1127         * generated/minloc0_4_i8.c: Regenerated.
1128         * generated/minloc0_4_r4.c: Regenerated.
1129         * generated/minloc0_4_r8.c: Regenerated.
1130         * generated/minloc0_8_i4.c: Regenerated.
1131         * generated/minloc0_8_i8.c: Regenerated.
1132         * generated/minloc0_8_r4.c: Regenerated.
1133         * generated/minloc0_8_r8.c: Regenerated.
1134         * generated/minloc1_4_i4.c: Regenerated.
1135         * generated/minloc1_4_i8.c: Regenerated.
1136         * generated/minloc1_4_r4.c: Regenerated.
1137         * generated/minloc1_4_r8.c: Regenerated.
1138         * generated/minloc1_8_i4.c: Regenerated.
1139         * generated/minloc1_8_i8.c: Regenerated.
1140         * generated/minloc1_8_r4.c: Regenerated.
1141         * generated/minloc1_8_r8.c: Regenerated.
1142         * generated/minval_i4.c: Regenerated.
1143         * generated/minval_i8.c: Regenerated.
1144         * generated/minval_r4.c: Regenerated.
1145         * generated/minval_r8.c: Regenerated.
1146         * generated/product_c4.c: Regenerated.
1147         * generated/product_c8.c: Regenerated.
1148         * generated/product_i4.c: Regenerated.
1149         * generated/product_i8.c: Regenerated.
1150         * generated/product_r4.c: Regenerated.
1151         * generated/product_r8.c: Regenerated.
1152         * generated/sum_c4.c: Regenerated.
1153         * generated/sum_c8.c: Regenerated.
1154         * generated/sum_i4.c: Regenerated.
1155         * generated/sum_i8.c: Regenerated.
1156         * generated/sum_r4.c: Regenerated.
1157         * generated/sum_r8.c: Regenerated.
1158
1159 2005-04-09  Thomas Koenig <Thomas.Koenig@online.de>
1160
1161         PR libfortran/20163
1162         * runtime/string.c (compare0): Use fstrlen() to
1163         strip trailing blanks from option string.
1164
1165 2005-04-09  Andrew Pinski  <pinskia@physics.uc.edu>
1166
1167         PR fortran/13257
1168         * format.c (parse_format_list): Allow an optional comma
1169         between descriptors.
1170
1171 2005-04-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
1172
1173         * io/backspace.c (unformatted_backspace): Do not dereference
1174         the pointer to the stream.
1175
1176 2005-04-07  Andrew Pinski  <pinskia@physics.uc.edu>
1177
1178         PR libfortran/20766
1179         * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1180         "-Wl,-single_module".
1181         * configure: Regenerate.
1182         * Makefile.am (libgfortran_la_LDFLAGS): Add extra_ldflags_libgfortran.
1183         * Makefile.in: Regenerate.
1184
1185 2005-04-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1186
1187         PR libfortran/20755
1188         * write.c (write_float): A G edit descriptor may locally change
1189         the scale factor, but it needs to be restored afterwards.
1190
1191 2005-04-03  Dale Ranta  <dir@lanl.gov>
1192             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1193
1194         PR libfortran/20068
1195         PR libfortran/20125
1196         PR libfortran/20156
1197         PR libfortran/20471
1198         * io/backspace.c (unformatted_backspace): Fix error in arithmetic.
1199         (st_backspace): When in WRITING mode, we flush and falling back
1200         into READING mode. In all cases, correctly position the stream.
1201
1202 2005-03-31  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1203
1204         PR libfortran/20660
1205         * io/inquire.c (inquire_via_unit): Non-opened units should still be
1206         reported by an INQUIRE statement as existing.
1207         * io/transfer.c (data_transfer_init): Never accept negative units.
1208
1209 2005-03-29  Dale Ranta  <dir@lanl.gov>
1210             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1211
1212         PR libfortran/20163
1213         * io/open.c (st_open): call library_end() before returning even if
1214         an error arises.
1215
1216 2005-03-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1217
1218         PR libfortran/19678
1219         * list_read.c (next_char, eat_separator, finish_separator, read_real)
1220         (namelist_read): Add support for '\r' as well as '\n' as EOL
1221         character.
1222
1223         PR libfortran/19679
1224         * list_read.c (read_sf): Add a '\r' in a test to support DOS
1225         line-endings when line length is exceeded.
1226
1227 2005-03-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1228
1229         PR libfortran/15332
1230         * io/format.c (parse_format_list): format node for colon edit
1231         descriptor needs a repeat counter set to 1.
1232
1233 2005-02-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1234
1235         * config.h.in: Regenerate.
1236
1237 2005-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1238
1239         PR libfortran/18025
1240         * write.c (output_float): Handling the "F0.d" format similarly as
1241         commercial compilers.
1242
1243 2005-03-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1244
1245         * Makefile.am: Added new files.
1246         * Makefile.in: Regenerate.
1247         * aclocal.m4: Regenerate.
1248         * configure.ac: add checks for signal.h headers file, as well as
1249         following functions: chdir, strerror, getlogin, gethostname, kill,
1250         link, symlink, perror, sleep, time.
1251         * configure: Regenerate.
1252         * intrinsics/chdir.c, intrinsics/gerror.c, intrinsics/getlog.c,
1253         intrinsics/hostnm.c, intrinsics/ierrno.c, intrinsics/kill.c,
1254         intrinsics/link.c, intrinsics/perror.c, intrinsics/rename.c,
1255         intrinsics/sleep.c, intrinsics/symlnk.c, intrinsics/time.c: Newly
1256         implementend g77 intrinsics.
1257
1258 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
1259
1260         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
1261         In all substitutions, leave gcc_version to be expanded by the Makefile.
1262         * aclocal.m4, configure: Regenerate.
1263         * Makefile.am: Set gcc_version.
1264         * Makefile.in: Regenerate.
1265
1266 2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1267
1268         PR libfortran/20257
1269         * open.c (new_unit): set record length to max_offset rather than
1270           using a hard-coded limit (which was too low).
1271
1272 2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1273
1274         PR libfortran/20480
1275         * write.c (output_float): special check when writing 0.0 with
1276           EN and ES formats.
1277
1278 2005-03-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1279
1280         PR libfortran/20124
1281         * write.c (output_float): Adds a nzero_real variable to store
1282         the number of leading zeros whatever the format width is. Corrects
1283         the rounding of numbers less than 10^(-width). Fixes typo in an
1284         error message. Updates copyright years
1285
1286 2005-02-27  Toon Moene  <toon@moene.indiv.nluug.nl>
1287
1288         * runtime/environ.c: Update copyright years.
1289
1290 2005-02-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1291
1292         * io/write.c: Update copyright years.
1293
1294 2005-02-27  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1295
1296         PR libfortran/20101
1297         * io/write.c (output_float): Added special check for value 0.0 in
1298         PE format.
1299
1300 2004-02-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1301
1302         * io/write.c (output_float): Fix typo in condition.
1303
1304 2005-02-25  Peter O'Gorman  <peter@pogma.com>
1305             Toon Moene  <toon@moene.indiv.nluug.nl>
1306
1307         PR libgfortran/17748
1308         * runtime/environ.c: Remove references to environ.
1309         (show_variables): remove GFORTRAN_UNBUFFERED_* and
1310         GFORTRAN_NAME_* because they require environ.
1311         (pattern_scan): Remove function.
1312
1313 2004-02-22  Paul Thomas <paulthomas2@wannado.fr>
1314             Bud Davis  <bdavis@gfortran.org>
1315
1316         * io/list_read.c (read_real): Handle separators properly
1317         in list directed read.
1318
1319 2004-02-21  Bud Davis  <bdavis@gfortran.org>
1320
1321         PR fortran/20086
1322         * io/transfer.c (write_constant_string): accept an 'h' as
1323         the start of a hollerith format string.
1324
1325 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1326
1327         PR libfortran/19302
1328         * intrinsics/c99_functions.c (nextafterf): Special-case infinite
1329         numbers.
1330
1331 2005-02-21  Steven G. Kargl  <kargls@comcast.net>
1332
1333         * io/write.c (output_float):  Typo in error meesage.
1334
1335 2005-02-20  Steven G. Kargl  <kargls@comcast.net>
1336
1337         PR 20085
1338         * intrinsic/args.c (iargc): Off by 1.
1339
1340 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
1341
1342         *  intrinsic/date_and_time.c: Fix conformance problems.
1343
1344 2005-02-01  Paul Thomas <paulthomas2@wanadoo.fr>
1345
1346         PR libgfortran/19363
1347         PR libgfortran/19691
1348         * libgfortran.h (isfinite): Work around broken isfinite(x) in Cygwin.
1349
1350 2005-01-30  Bud Davis  <bdavis@gfortran.org>
1351
1352         PR fortran/19647
1353         * io/inquire.c (inquire_via_unit): Use correct variable for
1354         pad.
1355
1356 2005-01-29  Thomas Koenig  <Thomas.Koenig@online.de>
1357
1358         PR libfortran/19595
1359         * io/transfer.c (data_transfer_init): eor requires advance="NO".
1360
1361 2005-01-25  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1362
1363         PR libfortran/19524
1364         * io/read.c (read_f): Don't free uninitialized pointer.
1365
1366 2005-01-23  James A. Morrison  <phython@gcc.gnu.org>
1367         Paul Brook  <paul@codesourcery.com>
1368
1369         PR fortran/19294
1370         * Makefile.am: Add transpose_c4.c and transpose_c8.c.
1371         * intrinsics/cshift0.c: Use separate optimized loops for complex types.
1372         * m4/transpose.m4: Include type letter in function name.
1373         * Makefile.in: Regenerate.
1374         * generated/transpose_*.c: Regenerate.
1375
1376 2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>
1377
1378         PR libfortran/19451
1379         * io/transfer.c (finalize_transfer):  Don't do anything if
1380         there is an error condition.
1381
1382 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
1383
1384         PR libgfortran/19052
1385         * libgfortran.h (options_t): Add stderr_unit.
1386         * io/io.h (error_stream): Declare.
1387         * io/open.c (new_unit): Do not terminate abnormally if opening
1388         file preconnected to stdin, stdout, or stderr.
1389         * io/unit.c (init_units): Initialize stderr_unit.
1390         * io/unix.c (error_stream): New function.
1391         * runtime/environ.c (GFORTRAN_STDERR_UNIT): New environment variable.
1392
1393 2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>
1394
1395         PR libfortran/18982
1396         * io/unix.c (regular_file):  No need to change flags->action
1397         if an error occurs.  Document this.
1398         No need to call stat() for STATUS_OLD, open() will
1399         fail anyway.
1400         For ACTION_UNSPECIFIED, try open for read-write, then for
1401         read-only if open fails with EACCES, then for write-only
1402         if that fails with EACCES again.
1403         * io/unix.c (open_external): Document changed behavior of
1404         regular_file.
1405
1406 2005-01-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1407
1408         PR fortran/19194
1409         * io/io.h (st_parameter): Use 'GFC_INTEGER_4' instead of 'int',
1410         use CHARACTER macro for definition of string valued paramters.
1411
1412 2005-01-22  Bud Davis  <bdavis9659@comcast.net>
1413
1414         PR fortran/19314
1415         * io/inquire.c(inquire_via_unit): implement POSITION=.
1416         * io/transfer.c(next_record): update position for
1417         INQUIRE.
1418         * io/rewind.c(st_rewind): update position for
1419         INQUIRE.
1420
1421 2005-01-16  Bud Davis  <bdavis9659@comcast.net>
1422
1423         PR fortran/18778
1424         * io/transfer.c (us_read): no bytes available is not a
1425         runtime error.
1426
1427 2005-01-15  Bud Davis  <bdavis9659@comcast.net>
1428
1429         PR fortran/18983
1430         * io/transfer.c (st_write_done): only truncate when it
1431         is required.
1432
1433 2005-01-12  Toon Moene  <toon@moene.indiv.nluug.nl>
1434
1435         PR libfortran/19280
1436         c99_protos.h: License changed to GPL+exception.
1437         libgfortran.h: Ditto.
1438         intrinsics/abort.c: Ditto.
1439         intrinsics/args.c: Ditto.
1440         intrinsics/associated.c: Ditto.
1441         intrinsics/bessel.c: Ditto.
1442         intrinsics/c99_functions.c: Ditto.
1443         intrinsics/cpu_time.c: Ditto.
1444         intrinsics/cshift0.c: Ditto.
1445         intrinsics/date_and_time.c: Ditto.
1446         intrinsics/env.c: Ditto.
1447         intrinsics/eoshift0.c: Ditto.
1448         intrinsics/eoshift2.c: Ditto.
1449         intrinsics/erf.c: Ditto.
1450         intrinsics/etime.c: Ditto.
1451         intrinsics/exit.c: Ditto.
1452         intrinsics/flush.c: Ditto.
1453         intrinsics/fnum.c: Ditto.
1454         intrinsics/getXid.c: Ditto.
1455         intrinsics/getcwd.c: Ditto.
1456         intrinsics/ishftc.c: Ditto.
1457         intrinsics/mvbits.c: Ditto.
1458         intrinsics/pack_generic.c: Ditto.
1459         intrinsics/rand.c: Ditto.
1460         intrinsics/random.c: Ditto.
1461         intrinsics/reshape_generic.c: Ditto.
1462         intrinsics/reshape_packed.c: Ditto.
1463         intrinsics/size.c: Ditto.
1464         intrinsics/spread_generic.c: Ditto.
1465         intrinsics/stat.c: Ditto.
1466         intrinsics/string_intrinsics.c: Ditto.
1467         intrinsics/system.c: Ditto.
1468         intrinsics/system_clock.c: Ditto.
1469         intrinsics/transpose_generic.c: Ditto.
1470         intrinsics/umask.c: Ditto.
1471         intrinsics/unlink.c: Ditto.
1472         intrinsics/unpack_generic.c: Ditto.
1473         io/backspace.c: Ditto.
1474         io/close.c: Ditto.
1475         io/endfile.c: Ditto.
1476         io/format.c: Ditto.
1477         io/inquire.c: Ditto.
1478         io/io.h: Ditto.
1479         io/list_read.c: Ditto.
1480         io/lock.c: Ditto.
1481         io/open.c: Ditto.
1482         io/read.c: Ditto.
1483         io/rewind.c: Ditto.
1484         io/transfer.c: Ditto.
1485         io/unit.c: Ditto.
1486         io/unix.c: Ditto.
1487         io/write.c: Ditto.
1488         m4/all.m4: Ditto.
1489         m4/any.m4: Ditto.
1490         m4/cexp.m4: Ditto.
1491         m4/chyp.m4: Ditto.
1492         m4/count.m4: Ditto.
1493         m4/cshift1.m4: Ditto.
1494         m4/ctrig.m4: Ditto.
1495         m4/dotprod.m4: Ditto.
1496         m4/dotprodc.m4: Ditto.
1497         m4/dotprodl.m4: Ditto.
1498         m4/eoshift1.m4: Ditto.
1499         m4/eoshift3.m4: Ditto.
1500         m4/exponent.m4: Ditto.
1501         m4/fraction.m4: Ditto.
1502         m4/head.m4: Ditto.
1503         m4/iforeach.m4: Ditto.
1504         m4/ifunction.m4: Ditto.
1505         m4/in_pack.m4: Ditto.
1506         m4/in_unpack.m4: Ditto.
1507         m4/iparm.m4: Ditto.
1508         m4/matmul.m4: Ditto.
1509         m4/matmull.m4: Ditto.
1510         m4/maxloc0.m4: Ditto.
1511         m4/maxloc1.m4: Ditto.
1512         m4/maxval.m4: Ditto.
1513         m4/minloc0.m4: Ditto.
1514         m4/minloc1.m4: Ditto.
1515         m4/minval.m4: Ditto.
1516         m4/mtype.m4: Ditto.
1517         m4/nearest.m4: Ditto.
1518         m4/pow.m4: Ditto.
1519         m4/product.m4: Ditto.
1520         m4/reshape.m4: Ditto.
1521         m4/set_exponent.m4: Ditto.
1522         m4/shape.m4: Ditto.
1523         m4/specific.m4: Ditto.
1524         m4/specific2.m4: Ditto.
1525         m4/sum.m4: Ditto.
1526         m4/transpose.m4: Ditto.
1527         m4/types.m4: Ditto.
1528         runtime/environ.c: Ditto.
1529         runtime/error.c: Ditto.
1530         runtime/in_pack_generic.c: Ditto.
1531         runtime/in_unpack_generic.c: Ditto.
1532         runtime/main.c: Ditto.
1533         runtime/memory.c: Ditto.
1534         runtime/normalize.c: Ditto.
1535         runtime/pause.c: Ditto.
1536         runtime/select.c: Ditto.
1537         runtime/stop.c: Ditto.
1538         runtime/string.c: Ditto.
1539         generated/_abs_c4.f90: Regenerated.
1540         generated/_abs_c8.f90: Regenerated.
1541         generated/_abs_i4.f90: Regenerated.
1542         generated/_abs_i8.f90: Regenerated.
1543         generated/_abs_r4.f90: Regenerated.
1544         generated/_abs_r8.f90: Regenerated.
1545         generated/_acos_r4.f90: Regenerated.
1546         generated/_acos_r8.f90: Regenerated.
1547         generated/_aint_r4.f90: Regenerated.
1548         generated/_aint_r8.f90: Regenerated.
1549         generated/_anint_r4.f90: Regenerated.
1550         generated/_anint_r8.f90: Regenerated.
1551         generated/_asin_r4.f90: Regenerated.
1552         generated/_asin_r8.f90: Regenerated.
1553         generated/_atan2_r4.f90: Regenerated.
1554         generated/_atan2_r8.f90: Regenerated.
1555         generated/_atan_r4.f90: Regenerated.
1556         generated/_atan_r8.f90: Regenerated.
1557         generated/_conjg_c4.f90: Regenerated.
1558         generated/_conjg_c8.f90: Regenerated.
1559         generated/_cos_c4.f90: Regenerated.
1560         generated/_cos_c8.f90: Regenerated.
1561         generated/_cos_r4.f90: Regenerated.
1562         generated/_cos_r8.f90: Regenerated.
1563         generated/_cosh_r4.f90: Regenerated.
1564         generated/_cosh_r8.f90: Regenerated.
1565         generated/_dim_i4.f90: Regenerated.
1566         generated/_dim_i8.f90: Regenerated.
1567         generated/_dim_r4.f90: Regenerated.
1568         generated/_dim_r8.f90: Regenerated.
1569         generated/_exp_c4.f90: Regenerated.
1570         generated/_exp_c8.f90: Regenerated.
1571         generated/_exp_r4.f90: Regenerated.
1572         generated/_exp_r8.f90: Regenerated.
1573         generated/_log10_r4.f90: Regenerated.
1574         generated/_log10_r8.f90: Regenerated.
1575         generated/_log_c4.f90: Regenerated.
1576         generated/_log_c8.f90: Regenerated.
1577         generated/_log_r4.f90: Regenerated.
1578         generated/_log_r8.f90: Regenerated.
1579         generated/_mod_i4.f90: Regenerated.
1580         generated/_mod_i8.f90: Regenerated.
1581         generated/_mod_r4.f90: Regenerated.
1582         generated/_mod_r8.f90: Regenerated.
1583         generated/_sign_i4.f90: Regenerated.
1584         generated/_sign_i8.f90: Regenerated.
1585         generated/_sign_r4.f90: Regenerated.
1586         generated/_sign_r8.f90: Regenerated.
1587         generated/_sin_c4.f90: Regenerated.
1588         generated/_sin_c8.f90: Regenerated.
1589         generated/_sin_r4.f90: Regenerated.
1590         generated/_sin_r8.f90: Regenerated.
1591         generated/_sinh_r4.f90: Regenerated.
1592         generated/_sinh_r8.f90: Regenerated.
1593         generated/_sqrt_c4.f90: Regenerated.
1594         generated/_sqrt_c8.f90: Regenerated.
1595         generated/_sqrt_r4.f90: Regenerated.
1596         generated/_sqrt_r8.f90: Regenerated.
1597         generated/_tan_r4.f90: Regenerated.
1598         generated/_tan_r8.f90: Regenerated.
1599         generated/_tanh_r4.f90: Regenerated.
1600         generated/_tanh_r8.f90: Regenerated.
1601         generated/all_l4.c: Regenerated.
1602         generated/all_l8.c: Regenerated.
1603         generated/any_l4.c: Regenerated.
1604         generated/any_l8.c: Regenerated.
1605         generated/count_4_l4.c: Regenerated.
1606         generated/count_4_l8.c: Regenerated.
1607         generated/count_8_l4.c: Regenerated.
1608         generated/count_8_l8.c: Regenerated.
1609         generated/cshift1_4.c: Regenerated.
1610         generated/cshift1_8.c: Regenerated.
1611         generated/dotprod_c4.c: Regenerated.
1612         generated/dotprod_c8.c: Regenerated.
1613         generated/dotprod_i4.c: Regenerated.
1614         generated/dotprod_i8.c: Regenerated.
1615         generated/dotprod_l4.c: Regenerated.
1616         generated/dotprod_l8.c: Regenerated.
1617         generated/dotprod_r4.c: Regenerated.
1618         generated/dotprod_r8.c: Regenerated.
1619         generated/eoshift1_4.c: Regenerated.
1620         generated/eoshift1_8.c: Regenerated.
1621         generated/eoshift3_4.c: Regenerated.
1622         generated/eoshift3_8.c: Regenerated.
1623         generated/exp_c4.c: Regenerated.
1624         generated/exp_c8.c: Regenerated.
1625         generated/exponent_r4.c: Regenerated.
1626         generated/exponent_r8.c: Regenerated.
1627         generated/fraction_r4.c: Regenerated.
1628         generated/fraction_r8.c: Regenerated.
1629         generated/hyp_c4.c: Regenerated.
1630         generated/hyp_c8.c: Regenerated.
1631         generated/in_pack_i4.c: Regenerated.
1632         generated/in_pack_i8.c: Regenerated.
1633         generated/in_unpack_i4.c: Regenerated.
1634         generated/in_unpack_i8.c: Regenerated.
1635         generated/matmul_c4.c: Regenerated.
1636         generated/matmul_c8.c: Regenerated.
1637         generated/matmul_i4.c: Regenerated.
1638         generated/matmul_i8.c: Regenerated.
1639         generated/matmul_l4.c: Regenerated.
1640         generated/matmul_l8.c: Regenerated.
1641         generated/matmul_r4.c: Regenerated.
1642         generated/matmul_r8.c: Regenerated.
1643         generated/maxloc0_4_i4.c: Regenerated.
1644         generated/maxloc0_4_i8.c: Regenerated.
1645         generated/maxloc0_4_r4.c: Regenerated.
1646         generated/maxloc0_4_r8.c: Regenerated.
1647         generated/maxloc0_8_i4.c: Regenerated.
1648         generated/maxloc0_8_i8.c: Regenerated.
1649         generated/maxloc0_8_r4.c: Regenerated.
1650         generated/maxloc0_8_r8.c: Regenerated.
1651         generated/maxloc1_4_i4.c: Regenerated.
1652         generated/maxloc1_4_i8.c: Regenerated.
1653         generated/maxloc1_4_r4.c: Regenerated.
1654         generated/maxloc1_4_r8.c: Regenerated.
1655         generated/maxloc1_8_i4.c: Regenerated.
1656         generated/maxloc1_8_i8.c: Regenerated.
1657         generated/maxloc1_8_r4.c: Regenerated.
1658         generated/maxloc1_8_r8.c: Regenerated.
1659         generated/maxval_i4.c: Regenerated.
1660         generated/maxval_i8.c: Regenerated.
1661         generated/maxval_r4.c: Regenerated.
1662         generated/maxval_r8.c: Regenerated.
1663         generated/minloc0_4_i4.c: Regenerated.
1664         generated/minloc0_4_i8.c: Regenerated.
1665         generated/minloc0_4_r4.c: Regenerated.
1666         generated/minloc0_4_r8.c: Regenerated.
1667         generated/minloc0_8_i4.c: Regenerated.
1668         generated/minloc0_8_i8.c: Regenerated.
1669         generated/minloc0_8_r4.c: Regenerated.
1670         generated/minloc0_8_r8.c: Regenerated.
1671         generated/minloc1_4_i4.c: Regenerated.
1672         generated/minloc1_4_i8.c: Regenerated.
1673         generated/minloc1_4_r4.c: Regenerated.
1674         generated/minloc1_4_r8.c: Regenerated.
1675         generated/minloc1_8_i4.c: Regenerated.
1676         generated/minloc1_8_i8.c: Regenerated.
1677         generated/minloc1_8_r4.c: Regenerated.
1678         generated/minloc1_8_r8.c: Regenerated.
1679         generated/minval_i4.c: Regenerated.
1680         generated/minval_i8.c: Regenerated.
1681         generated/minval_r4.c: Regenerated.
1682         generated/minval_r8.c: Regenerated.
1683         generated/nearest_r4.c: Regenerated.
1684         generated/nearest_r8.c: Regenerated.
1685         generated/pow_c4_i4.c: Regenerated.
1686         generated/pow_c4_i8.c: Regenerated.
1687         generated/pow_c8_i4.c: Regenerated.
1688         generated/pow_c8_i8.c: Regenerated.
1689         generated/pow_i4_i4.c: Regenerated.
1690         generated/pow_i4_i8.c: Regenerated.
1691         generated/pow_i8_i4.c: Regenerated.
1692         generated/pow_i8_i8.c: Regenerated.
1693         generated/pow_r4_i4.c: Regenerated.
1694         generated/pow_r4_i8.c: Regenerated.
1695         generated/pow_r8_i4.c: Regenerated.
1696         generated/pow_r8_i8.c: Regenerated.
1697         generated/product_c4.c: Regenerated.
1698         generated/product_c8.c: Regenerated.
1699         generated/product_i4.c: Regenerated.
1700         generated/product_i8.c: Regenerated.
1701         generated/product_r4.c: Regenerated.
1702         generated/product_r8.c: Regenerated.
1703         generated/reshape_i4.c: Regenerated.
1704         generated/reshape_i8.c: Regenerated.
1705         generated/set_exponent_r4.c: Regenerated.
1706         generated/set_exponent_r8.c: Regenerated.
1707         generated/shape_i4.c: Regenerated.
1708         generated/shape_i8.c: Regenerated.
1709         generated/sum_c4.c: Regenerated.
1710         generated/sum_c8.c: Regenerated.
1711         generated/sum_i4.c: Regenerated.
1712         generated/sum_i8.c: Regenerated.
1713         generated/sum_r4.c: Regenerated.
1714         generated/sum_r8.c: Regenerated.
1715         generated/transpose_i4.c: Regenerated.
1716         generated/transpose_i8.c: Regenerated.
1717         generated/trig_c4.c: Regenerated.
1718         generated/trig_c8.c: Regenerated.
1719
1720 2005-01-07  Bud Davis  <bdavis9659@comcast.net>
1721
1722         PR fortran/18398
1723         * transfer.c (next_record_r): always skip the
1724         eol search if it was found during sf_read.
1725
1726 2004-12-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1727
1728         * libgfortran/libgfortran.h (GFC_UINTEGER_1, GFC_UINTEGER_2):
1729         Define.
1730         * intrinsics/ishftc.c: Update copyright years.
1731         (ishftc8): Change 'shift' and 'size' to GFC_INTEGER_4.
1732         * intrinsics/mvbits.c: Correct non-ASCII character in my name.
1733         Add implementations for GFC_INTEGER_1 and GFC_INTEGER_2.
1734
1735 2004-12-23  Bud Davis  <bdavis9659@comcast.net>
1736
1737         PR fortran/19071
1738         * io/tranfer.c (formatted_transfer): moved check for
1739         format reversion inside the processing loop.
1740
1741 2004-12-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1742
1743         PR libfortran/19074
1744         * libgfortran.h (itoa): Rename to gfc_itoa.
1745         * io/write.c (itoa): Same.
1746         * runtime/environ.c (itoa): Same.
1747         * runtime/error.c (itoa): Same.
1748
1749 2004-12-15  Bud Davis  <bdavis9659@comcast.net>
1750             Steven G. Kargl  <kargls@comcast.net>
1751
1752         PR fortran/17597
1753         * io/list_read.c (read_real): do not push back a comma when
1754         it delimits a real value without a decimal point
1755
1756 2004-12-14  Steve Ellcey  <sje@cup.hp.com>
1757
1758         * libgfortran/io/transfer.c (us_read): Use memcpy/memset
1759         instead of assignment to fill unaligned buffer.
1760         (us_write): Ditto.
1761         (next_record_w): Ditto.
1762
1763 2004-12-14  Steven G. Kargl  <kargls@comcast.net>
1764
1765         PR libfortran/18966
1766         * gfortran.h: typedef GFC_INTEGER_1 and GFC_INTEGER_2
1767         * intrinsics/cshift0.c (cshift0_1,cshift0_2): New functions.
1768         * intrinsics/eoshift0.c (eoshift0_1,eoshift0_2): New functions.
1769         * intrinsics/eoshift2.c (eoshift2_1,eoshift2_2): New functions.
1770
1771 2004-12-13  David Edelsohn  <edelsohn@gnu.org>
1772
1773         * io/transfer.c (read_sf): Change bitwise "and" to logical "and".
1774
1775 2004-12-12  Richard Henderson  <rth@redhat.com>
1776
1777         * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
1778         intrinsics/pack_generic.c, intrinsics/reshape_generic.c,
1779         intrinsics/spread_generic.c, intrinsics/transpose_generic.c,
1780         intrinsics/unpack_generic.c, m4/cshift1.m4, m4/dotprod.m4,
1781         m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
1782         m4/iforeach.m4, m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4,
1783         m4/reshape.m4, m4/shape.m4, m4/transpose.m4: Use standard prefix
1784         instead of "__".
1785         * generated/*: Rebuild.
1786
1787 2004-12-12  Richard Henderson  <rth@redhat.com>
1788
1789         * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY): New.
1790         (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT): New.
1791         (LIBGFOR_CHECK_ATTRIBUTE_ALIAS): New.
1792         * configure.ac: Use them.
1793         * configure, config.h.in, aclocal.m4: Rebuild.
1794         * libgfortran.h (prefix): Remove.
1795         (PREFIX, IPREFIX): New.
1796         (sym_rename, sym_rename1, sym_rename2): New.
1797         (internal_proto, export_proto, export_proto_np): New.
1798         (iexport_proto, iexport): New.
1799         (iexport_data_proto, iexport_data): New.
1800         * intrinsics/abort.c, intrinsics/args.c, intrinsics/associated.c,
1801         intrinsics/cpu_time.c, intrinsics/cshift0.c,
1802         intrinsics/date_and_time.c, intrinsics/env.c, intrinsics/eoshift0.c,
1803         intrinsics/eoshift2.c, intrinsics/etime.c, intrinsics/exit.c,
1804         intrinsics/flush.c, intrinsics/fnum.c, intrinsics/getXid.c,
1805         intrinsics/getcwd.c, intrinsics/ishftc.c, intrinsics/mvbits.c,
1806         intrinsics/pack_generic.c, intrinsics/rand.c, intrinsics/random.c,
1807         intrinsics/reshape_generic.c, intrinsics/size.c,
1808         intrinsics/spread_generic.c, intrinsics/stat.c,
1809         intrinsics/string_intrinsics.c, intrinsics/system.c,
1810         intrinsics/system_clock.c, intrinsics/transpose_generic.c,
1811         intrinsics/umask.c, intrinsics/unlink.c, intrinsics/unpack_generic.c,
1812         io/backspace.c, io/close.c, io/endfile.c, io/inquire.c, io/io.h,
1813         io/open.c, io/rewind.c, io/transfer.c, libgfortran.h, m4/cshift1.m4,
1814         m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4,
1815         m4/eoshift3.m4, m4/exponent.m4, m4/fraction.m4, m4/iforeach.m4,
1816         m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/nearest.m4,
1817         m4/pow.m4, m4/reshape.m4, m4/set_exponent.m4, m4/shape.m4,
1818         m4/transpose.m4, runtime/environ.c, runtime/error.c,
1819         runtime/in_pack_generic.c, runtime/in_unpack_generic.c,
1820         runtime/main.c, runtime/memory.c, runtime/pause.c, runtime/select.c,
1821         runtime/stop.c: Use them to mark symbols internal or external.
1822         * generated/*: Rebuild.
1823
1824 2004-12-09  David Edelsohn  <edelsohn@gnu.org>
1825
1826         PR bootstrap/18895
1827         Revert 2004-12-07 change.
1828         * Makefile.am (AM_MAKEFLAGS): Delete.
1829         * Makefile.in: Regenerate.
1830
1831 2004-12-07  Steve Ellcey  <sje@cup.hp.com>
1832
1833         * libgfortran/Makefile.am (AM_MAKEFLAGS): New.
1834         * libgfortran/Makefile.in: Regenerate
1835
1836 2004-12-07  Steve Ellcey  <sje@cup.hp.com>
1837
1838         * io/io.h (open_external): Change prototype.
1839         * io/unix.c (regular_file): Change prototype and set flags->action if
1840         needed.
1841         (open_external): Ditto.
1842         * io/open.c (new_unit): Let open_external set flags->action.
1843
1844 2004-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1845
1846         * configure.ac: Check for ieeefp.h.  Check for fabsf in libm.
1847         * configure: Regenerate.
1848         * config.h.in: Likewise.
1849         * c99_protos.h: New file.
1850         * libgfortran.h: Include c99_protos.h and conditionally ieeefp.h.
1851         * intrinsics/c99_functions.c (fabsf): New function.
1852
1853 2004-12-06  Richard Henderson  <rth@redhat.com>
1854
1855         * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
1856         intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
1857         intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
1858         m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
1859         of internal_malloc.
1860         * generated/*: Rebuild.
1861
1862 2004-12-06  Richard Henderson  <rth@redhat.com>
1863
1864         * intrinsics/c99_functions.c, intrinsics/eoshift0.c,
1865         intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
1866         intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
1867         intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
1868         intrinsics/spread_generic.c, intrinsics/stat.c,
1869         intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
1870         intrinsics/transpose_generic.c, intrinsics/unlink.c,
1871         intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
1872         io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
1873         io/write.c, runtime/environ.c, runtime/error.c,
1874         runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
1875         runtime/memory.c, runtime/pause.c, runtime/stop.c,
1876         runtime/string.c: Whitespace fixes.
1877
1878 2004-12-06  Richard Henderson  <rth@redhat.com>
1879
1880         * Makefile.am: Generate all m4 output under $(srcdir).
1881         * Makefile.in: Regenerate.
1882
1883 2004-12-02  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1884
1885         PR fortran/18710
1886         * io/transfer.c (unformatted_read, unformatted_write): width of
1887         a COMPLEX is twice its kind.
1888
1889 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
1890
1891         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1892         * configure, aclocal.m4, Makefile.in: Regenerate.
1893
1894 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
1895
1896         PR libfortran/18284
1897         * io/unix.c (fd_alloc_w_at): Update file_length when extending.
1898         * io/backspace.c (formatted_backspace): Reset endfile after backspace.
1899
1900 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
1901
1902         * io/inquire.c (inquire_via_unit): do not allow a direct access
1903         file to be opened for sequential I/O.
1904
1905 2004-12-02  Steven G. Kargl  <kargls@comcast.net>
1906         Paul Brook  <paul@codesourcery.com>
1907
1908         * intrinsics/flush.c: New file.
1909         * intrinsics/fnum.c: ditto
1910         * intrinsics/stat.c: ditto
1911         * io/io.h (unit_to_fd): Add prototype.
1912         * io/unix.c (unit_to_fd): New function.
1913         * configure.ac: Add test for members of struct stat.  Check for
1914         sys/types.h and sys/stat.h
1915         * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
1916         * configure.in: Regenerate.
1917         * config.h.in: Regenerate.
1918         * Makefile.in: Regenerate.
1919
1920 2004-12-01  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1921
1922         * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
1923
1924 2004-11-28  Bud Davis  <bdavis9659@comcast.net>
1925
1926         * io/unix.c (mmap_alloc_w_a): check for a write to a location
1927         less than the mapped area.
1928
1929 2004-11-27  Bud Davis  <bdavis9659@comcast.net>
1930
1931         PR fortran/18364
1932         *  io/endfile.c (st_endfile): flush the stream before truncating.
1933
1934 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
1935
1936         * configure: Regenerate for libtool change.
1937
1938 2004-11-22  Steven Bosscher  <stevenb@suse.de>
1939
1940         PR libfortran/15960
1941         * configure.ac: Check for finite in libm.
1942         * libgfortran.h: Define isfinite macro if not defined.
1943         * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
1944         HAVE_FPCLASSIFY.
1945         * io/write.c (write_float): Use isfinite instead of finite.
1946         * configure, config.h.in: Rebuilt.
1947
1948 2004-11-20  Roger Sayle  <roger@eyesopen.com>
1949
1950         * io/write.c (write_float, list_formatted_write): Fix indentation.
1951
1952 2004-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
1953
1954         PR target/16135
1955         * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
1956         * configure.ac: Include LIBGFOR_TARGET_ILP32.
1957         * configure: Regenerate.
1958         * config.h.in: Likewise.
1959         * libgfortran.h: Provide default definitions for C99 types
1960         on ILP32 targets that don't have them.
1961
1962         PR target/17999
1963         * configure.ac: Check for snprintf.
1964         * configure: Regenerate.
1965         * config.h.in: Likewise.
1966         * intrinsics/date_and_time.c (date_and_time): Do not
1967         use snprinf if it is not available.
1968         * io/write.c (output_float): Likewise.
1969
1970 2004-11-20  Steven G. Kargl  <kargls@comcast.net>
1971
1972         * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
1973         * Makefile.in: Regenerated
1974         * intrinsics/umask.c: New file
1975         * intrinsics/unlink.c: ditto
1976         * intrinsics/exit.c: ditto
1977
1978 2004-11-18  Victor Leikehman  <lei@il.ibm.com>
1979
1980         * m4/matmul.m4: Loops reordered to improve cache behavior.
1981         * generated/matmul_??.c: Regenerated.
1982
1983 2004-11-10  Paul Brook  <paul@codesourcery.com>
1984
1985         PR fortran/18218
1986         * configure.ac: Check for strtof.
1987         * configure: Regenerate.
1988         * config.h.in: Regenerate.
1989         * io/read.c (convert_real): Use strtof if available.
1990         (convert_precision_real): Remove.
1991         (read_f): Avoid poor exponentiation algorithm.
1992
1993 2004-11-05  Andreas Schwab  <schwab@suse.de>
1994
1995         * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
1996         AC_PROG_F77, F77 and FFLAGS.
1997         * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
1998         FCCOMPILE instead of F77COMPILE.
1999         * configure, Makefile.in: Regenerate.
2000
2001 2004-11-05  Kelley Cook  <kcook@gcc.gnu.org>
2002
2003         * acinclude.m4: Properly quote AC_CACHE_CHECK.
2004         * Makefile.am: Add in ACLOCAL_AMFLAGS.
2005         * aclocal.m4, configure, Makefile.in: Regenerate.
2006
2007 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2008
2009         * config.h.in: Regenerate.
2010         * configure: Regenerate.
2011         * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
2012         * io/unix.c (S_IRGRP): Define if undefined.
2013         (S_IWGRP): Same.
2014         (S_IROTH): Same.
2015         (S_IWOTH): Same.
2016         (tempfile): Use mktemp if mkstemp missing, fix typos.
2017
2018 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2019
2020         *  intrinsics/system.c ("libgfortran.h"): Move after system headers.
2021
2022 2004-10-30  Canqun Yang  <canqun@nudt.edu.cn>
2023
2024         * intrinsics/rand.c (irand): Handle NULL argument.
2025
2026 2004-10-07  Paul Brook  <paul@codesourcery.com>
2027
2028         * io/transfer.c (finalize_transfer): Free internal streams.
2029         * io/unix.c (mem_close): Free stream object.
2030
2031 2004-10-07  Paul Brook  <paul@codesourcery.com>
2032
2033         * intrinsics/string_intrinsics.c (string_verify): Fix off by one
2034         error.
2035
2036 2004-10-06  Paul Brook  <paul@codesourcery.com>
2037
2038         PR libfortran/17709
2039         * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
2040
2041 2004-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
2042
2043         * intrinsics/mvbits.c: Commit the file.
2044
2045 2004-10-04  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2046
2047         PR fortran/17283
2048         * intrinsics/pack_generic.c (__pack): Allocate memory for return array
2049         if not done by caller.
2050         (__pack_s): New function.
2051         * runtime/memory.c (internal_malloc, internal_malloc64): Allow
2052         allocating zero memory.
2053
2054         PR fortran/17631
2055         * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
2056         * Makefile.in: Regenerate.
2057         * intrinsics/mvbits.h: New file.
2058
2059         PR fortran/17776
2060         * intrinsics/system.c: New file.
2061         * Makefile.am: Add dependency for the new file.
2062         * Makefile.in: Regenerate.
2063
2064 2004-10-04  Paul Brook  <paul@codesourcery.com>
2065         Bud Davis  <bdavis9659@comcast.net>
2066
2067         PR fortran/17706
2068         PR fortran/16434
2069         * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
2070         BN and BZ formats.
2071         * io/write.c (output_float): Don't output minus zero.
2072
2073 2004-10-03  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2074
2075         * intrinsics/abort.c ("libgfortran.h"): Move.
2076         * intrinsics/date_and_time.c ("libgfortran.h"): Same.
2077         * intrinsics/write.c ("libgfortran.h"): Same.
2078
2079 2004-09-26  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
2080
2081         PR libfortran/16137
2082         * config.h.in (HAVE_POWF): Undefine.
2083         * configure.ac: Check for 'powf' in library.
2084         * configure: Regenerate.
2085         * intrinsics/c99_functions.c (powf): New function.
2086
2087 2004-09-24  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
2088
2089         * intrinsics/etime.c (etime_): New function.
2090
2091 2004-09-21  Steven G. Kargl  <kargls@comcast.net>
2092
2093         * libgfortran.h: define gfc_alloca()
2094         * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
2095
2096 2004-09-21  Bud Davis  <bdavis9659@comcast.net>
2097
2098         PR fortran/17286
2099         * io/list_read.c (namelist_read): ignore spaces after
2100         the '=' for namelist reads.
2101
2102 2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2103
2104         * config.h.in: Regenerate.
2105         * configure: Regenerate.
2106         * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
2107         * unix.c: Include stdio.h.
2108         (HAVE_SYS_MMAN_H): Check.
2109         (PROT_READ, PROT_WRITE): Provide default definitions.
2110
2111 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
2112
2113         * intrincics/getcwd.c: New file.
2114         * Makefile.am: Add getcwd.c.
2115         * Makefile.in: Regenerated.
2116
2117 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
2118         Paul Brook  <paul@codesourcery.com>
2119
2120         * intrinsics/env.c (getenv, get_environmental_variable): Remove
2121         trailing white space.  Use alloca.  Honour trim_name.
2122
2123 2004-09-13  Bud Davis  <bdavis9659@comcast.net>
2124
2125         PR fortran/17090
2126
2127         * io/list_read.c (list_formatted_read): Handle trailing spaces
2128         at end of line.
2129
2130 2004-09-06  Steven G. Kargl  <kargls@comcast.net>
2131
2132         * io/write.c (output_float): Typo in comment.  Remove debugging
2133         printf.  Fix format for FP of form 1e10.
2134
2135 2004-09-03  Richard Henderson  <rth@redhat.com>
2136
2137         * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
2138         copy_loop_double, copy_loop_ldouble): New.
2139         (__cshift0): Make shift type ssize_t.  Use % operator instead of
2140         div.  Use specialized versions of copy loop depending on the shape.
2141
2142 2004-09-02  Paul Brook  <paul@codesourcery.com>
2143
2144         * io/format.c (parse_format_list): Set repeat count for P descriptors.
2145         * write.c (output_float): Fix condition.  Correctly handle nonzero
2146         scale factor.
2147
2148 2004-09-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
2149
2150         * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
2151         * mk-srk-inc.sh: Likewise.
2152
2153 2004-09-01  Paul Brook  <paul@codesourcery.com>
2154
2155         * runtime/error.c (generate_error): Set both iostat and
2156         library_return.
2157
2158 2004-08-31  Paul Brook  <paul@codesourcery.com>
2159
2160         PR libfortran/16805
2161         * io/list_read.c (next_char): Don't signal EOF for internal files.
2162         * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
2163
2164 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2165
2166         * io/unit.c: Separate copyright years by ','.
2167         (compare, insert_unit, delete_unit, is_internal_unit, close_units):
2168         Remove blank line in beginning of function.
2169         (get_unit): Simplify code.
2170
2171 2004-08-31  Paul Brook  <paul@codesourcery.com>
2172
2173         * io/unit.c (get_unit): Remove superfluous if.
2174
2175 2004-08-31  Paul Brook  <paul@codesourcery.com>
2176
2177         * io/transfer.c (read_sf): Rename uinty to readlen.  Detect EOF.
2178         (finalize_transfer): Move setjmp after namlist IO.
2179         * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
2180
2181 2004-08-31  Paul Brook  <paul@codesourcery.com>
2182
2183         * list_read.c (eat_separator): Set at_eo when a '/' is seen.
2184
2185 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2186
2187         * libgfortran.h: Replace 'gfc_strlen_type' by
2188         'gfc_charlen_type'. Update comment accordingly.
2189         * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
2190         Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
2191
2192 2004-08-31  Paul Brook  <paul@codesourcery.com>
2193
2194         * libgfortran.h: Add comments.
2195
2196 2004-08-30  Richard Henderson  <rth@redhat.com>
2197
2198         * Makefile.am (gfor_helper_src): Split selected_kind.f90.
2199         (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
2200         (selected_int_kind.inc selected_real_kind.inc): New rules.
2201         * Makefile.in: Regenerate.
2202         * mk-sik-inc.sh, mk-srk-inc.sh: New files.
2203         * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
2204         include table of detected kinds.
2205         * intrinsics/selected_real_kind.f90: Similarly.
2206
2207 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
2208         Paul Brook  <paul@codesourcery.com>
2209
2210         * intrinsics/bessel.c: New file.
2211         * intrinsics/erf.c: New file.
2212         * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
2213         * configure.ac: Test for C99 Bessel and Error functions.
2214         * Makefile.in: Regenerate.
2215         * config.h.in: Regenerate.
2216         * configure: Regenerate.
2217
2218 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
2219         Paul Brook  <paul@codesourcery.com>
2220
2221         * Makefile.am: Add intrinsics/getXid.c.
2222         * configure.ac: Add tests for get{g,p,u}id.
2223         * config.h.in: Regenerate.
2224         * Makefile.in: Regenerate.
2225         * configure: Regenerate.
2226
2227 2004-08-28  Paul Brook  <paul@codesourcery.com>
2228
2229         PR libfortran/17195
2230         * libgfortran.h (rtoa): Remove prototype.
2231         * runtime/error.c (rtoa): Remove.
2232         * io/write.c (calculate_G_format): Don't add blanks if E format is
2233         used.  Add correct number of blanks when exponent width is specified.
2234         (output_float): Rewrite.
2235
2236 2004-08-27  Paul Brook  <paul@codesourcery.com>
2237
2238         * io/rewind.c (st_rewind): Reset unit to read mode.
2239
2240 2004-08-27  Bud Davis  <bdavis9659@comcast.net>
2241
2242         PR fortran/16597
2243         * io/io.h: created typedef for unit_mode.
2244         * io/io.h (gfc_unit): added mode to unit structure.
2245         * io/transfer.c (data_transfer_init): flush if a write then
2246         read is done on a unit (direct access files).
2247         * io/rewind.c (st_rewind): Used unit mode instead of global.
2248
2249 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
2250
2251         PR fortran/17143
2252         * runtime/error.c (itoa): keep from overflowing during
2253         mod operation by using unsigned variable.
2254
2255 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
2256
2257         PR fortran/17164
2258         * runtime/string_intrinsics.c (string_index):check for
2259         substring longer than string.
2260
2261 2004-08-24  David Edelsohn  <edelsohn@gnu.org>
2262
2263         * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
2264         * Makefile.in: Rebuilt.
2265
2266 2004-08-23  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2267
2268         * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
2269         Fix formatting issues, update copyright years.
2270
2271 2004-08-21  Bud Davis  <bdavis9659@comcast.net>
2272
2273         PR 16908
2274         * io/transfer.c (next_record_w): Do not blank pad.
2275         * io/transfer.c (next_record): Take into account partial records.
2276
2277 2004-08-18  Victor Leikehman  <lei@il.ibm.com>
2278
2279         PR fortran/13278
2280         * io/transfer.c (st_set_nml_var)
2281         * io/write.c (namelist_write): Allow var_name and var_name_len to be
2282         null. For strings, use string_length field instead of len.
2283         * io/io.h (struct namelist_type): New field string_length.
2284         (st_set_nml_var_char): New argument string_length.
2285
2286 2004-08-13  Bud Davis  <bdavis9659@comcast.net>
2287
2288         PR gfortran/16935
2289         * io/open.c (st_open): use flags instead of the unit structure.
2290
2291 2004-08-10  Victor Leikehman  <lei@il.ibm.com>
2292
2293         * io/list_read.c (namelist_read): Convert variable names
2294         to lower case, so that mixed-case names are recognized.
2295         Don't read beyond terminating slash.
2296
2297 2004-08-09  Richard Henderson  <rth@redhat.com>
2298             Roger Sayle  <roger@eyesopen.com>
2299
2300         * intrinsics/c99_functions.c (nextafterf): New implementation that
2301         works correctly with denormalized numbers.
2302
2303 2004-08-09  Victor Leikehman  <lei@il.ibm.com>
2304
2305         * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
2306         intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
2307         Allocate space if return value has NULL in its data field.
2308         * generated/*.c: Regenerate.
2309
2310 2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2311
2312         * intrinsics/env.c: New file.
2313         * Makefile.am: Add env.c to build.
2314         * Makefile.in: Regenerate.
2315
2316 2004-08-05  Victor Leikehman  <lei@il.ibm.com>
2317
2318         PR libgfortran/16704
2319         * io/read.c (read_radix): Understand letters f and F as hex digits.
2320
2321 2004-08-04  Victor Leikehman  <lei@il.ibm.com>
2322
2323         * libgfortran.h (array_t, size0) New declarations.
2324         * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
2325         space if return value descriptor has NULL in its data field,
2326         and initialize bounds and stride.
2327         * intrinsics/size.c (array_t, size0): Declarations moved to
2328         libgfortran.h.
2329         * generated/*.c: Regenerate.
2330
2331 2004-08-03  Roger Sayle  <roger@eyesopen.com>
2332
2333         PR libgfortran/16137
2334         * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
2335         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
2336         scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
2337         * config.h.in: Regenerate.
2338         * configure: Regenerate.
2339
2340         * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
2341         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
2342         nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
2343         implementations for targets that don't support C99 float functions.
2344
2345 2004-08-01  Roger Sayle  <roger@eyesopen.com>
2346
2347         * io/write.c (write_float): Use the slightly more portable isnan
2348         in preference to isinf.
2349
2350 2004-07-18  Bud Davis  <bdavis9659@comcast.net>
2351
2352         * configure.ac: Add check for LFS support.
2353         * configure: Regenerate
2354
2355 2004-07-11  Paul Brook  <paul@codesourcery.com>
2356
2357         PR fortran/16303
2358         * m4/cexp.m4 (carg): Return -pi to pi.
2359         * generated/exp_c?.c: Regenerate.
2360
2361 2004-07-08  Andreas Krebbel  <krebbel1@de.ibm.com>
2362
2363         PR fortran/16291
2364         * libgfortran/io/write.c: (write_float): Added length check.
2365         Remove pointless memset calls.
2366
2367 2004-07-04  Bud Davis  <bdavis9659@comcast.net>
2368             Paul Brook  <paul@codesourcery.com>
2369
2370         PR fortran/15472
2371         * io/transfer.c(us_write): set recl for seq unform writes to max size.
2372         * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
2373         * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
2374         right time.
2375         * io/unix.c(is_seekable): set based upon the file/device, not the
2376         method being used to access it (fd or mmap).
2377         * io/unix.c(fd_flush): don't set file_size if !seekable.
2378         * io/unix.c(fd_truncate: ditto.
2379
2380 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2381         Paul Brook  <paul@codesourcery.com>
2382
2383         PR fortran/15280
2384         PR fortran/15665
2385         * libgfortran.h (gfc_strlen_type): Define.
2386         * intrinsics/args.c (getarg): Rename ...
2387         (getarg_i4): ... to this.
2388         (getarg_i8, get_command_argument_i4, get_command_argument_i8,
2389         get_command_i4, get_command_i8): New functions.
2390
2391 2004-07-04  Matthias Klose  <doko@debian.org>
2392
2393         * libtool-version: New.
2394         * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
2395         * Makefile.in: Regenerate.
2396         * configure.ac: Remove libtool_VERSION macro
2397         * configure: Regenerate
2398
2399 2004-06-30  Steve Kargl  <sgk@troutmask.apl.washington.edu>
2400             Steven Bosscher  <stevenb@suse.de>
2401
2402         * intrinsics/rand.c (rand): Wrap the irand() call from the previous
2403         commit in prefix.
2404
2405 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2406         Paul Brook  <paul@codesourcery.com>
2407
2408         * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
2409         comments.
2410         * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
2411
2412 2004-06-27  Bud Davis  <bdavis9659@comcast.net>
2413
2414         PR gfortran/12839
2415         * io/write.c (write_float): check signbit for Infinity.
2416
2417 2004-06-26  Bud Davis  <bdavis9659@comcast.net>
2418
2419         PR gfortran/16196
2420         * unix.c(regular_file): create file if it does not exist.
2421
2422 2004-06-24  Andrew Pinski  <apinski@apple.com>
2423
2424         * configure.ac: Remove check for libmx.
2425         * configure: Regenerate.
2426
2427 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2428
2429         PR fortran/15750
2430         * inquire.c (st_inquire): Add comment
2431         * io.h (st_parameter): Add iolength.
2432         (st_iolength, st_iolength_done): Declare.
2433         * transfer.c (iolength_transfer, iolength_transfer_init,
2434         st_iolength, st_iolength_done): New functions.
2435
2436 2004-06-21  Steven G. Kargl  <kargls@comcast.net>
2437
2438         * etime.c (etime_sub): Remove array rank check;
2439         Add check for sufficient space.
2440
2441 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
2442
2443         PR gfortran/16080
2444         * io/list_read.c(set_value): fixed spelling.
2445
2446 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
2447
2448         PR gfortran/16080
2449         * io/list_read.c(set_value): don't copy if the string is null.
2450
2451 2004-06-14  Bud Davis  <bdavis9659@comcast.net>
2452
2453         PR gfortran/15292
2454         * intrinsics/c99_functions.c: Use fpclassify if it exists.
2455
2456 2004-06-13  Paul Brook  <paul@codesourcery.com>
2457
2458         * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
2459         * configure.ac: Add checks for nextafter and nextafterf.
2460         * Makefile.in, config.h.in, configure: Regenerate.
2461         * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
2462         * intrinsics/rand.c (rand): Use normalize_r4_i4.
2463         * intrinsics/random.c (random_r4): Use normalize_r4_i4.
2464         (random_r8): Use normalize_r8_i8.
2465         * runtime/normalize.c: New file.
2466
2467 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
2468             Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2469
2470         * random.c: Fix several spelling and formatting mistakes in
2471         comments.
2472         (random_r8): Fix loop to make random numbers range in [0,1(.
2473
2474
2475 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
2476
2477         * random.c (random_r4): Burn a random number.
2478         (random_r8): fix infinite loop.
2479
2480 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
2481             Steve Kargl  <sgk@troutmask.apl.washington.edu>
2482
2483         PR gfortran/15292
2484         * intrinsics/c99_functions.c: New file.
2485         * Makefile.am: Add new file.
2486         * configure.ac: Added test for round/roundf.
2487         * Makefile.in: Regenerate.
2488         * configure: Regenerate.
2489         * configure.h.in: Regenerate.
2490
2491 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
2492
2493         * Makefile.am: Add rand.c and etime.c
2494         * Makefile.in: Regenerated.
2495         * aclocal.in: Regenerated.
2496         * cpu_time.c (second_sub, second): New functions.
2497         * rand.c (irand, rand, srand): New file.
2498         * etime.c (etime_sub, etime): New file.
2499
2500 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2501             Steven Bosscher  <stevenb@suse.de>
2502
2503         PR fortran/14923
2504         * intrinsics/date_and_time.c: New file.
2505         * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
2506         * Makefile.in, aclocal.m4: Regenerate.
2507         * libgfortran.h: Prototype date_and_time().
2508
2509 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
2510
2511         PR fortran/15665
2512         * intrinsics/args.c: Implement GETARG and IARGC.
2513         * Makefile.am: Add it.
2514         * Makefile.in: Regenerate.
2515
2516 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
2517
2518         PR gfortran/12839
2519         * io/write.c(write_float): Format inf and nan IAW F2003.
2520
2521 2004-06-09  Bud Davis  <bdavis9659@comcaste.net>
2522
2523         PR gfortran/14897
2524         * io/transfer.c (formatted_transfer): position is unique
2525          for T and TL edit descriptors.
2526         (data_transfer_init): set record length to size of internal
2527          file.
2528
2529 2004-06-09  Bud Davis  <bdavis9659@comcast.net>
2530
2531         PR gfortran/15755
2532         * io/backspace.c(st_backspace): call correct routine for
2533         formatted and un-formatted units.
2534
2535 2004-05-30  Andreas Jaeger  <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
2536
2537         PR gfortran/11800
2538         * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
2539         (lib_LTLIBRARIES): Rename to ...
2540         (toolexeclib_LTLIBRARIES): this for multilib support.
2541         * configure.in: Rename to ...
2542         * configure.ac: this.  Update to modern autoconf style, enable
2543         multilibs, support --enable-version-specific-runtime-libs.
2544         * Makefile.in: Regenerated.
2545         * configure: Regenerated.
2546         * aclocal.m4: Regenerated.
2547
2548 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
2549
2550         * libgfortran.h (random_seed): Update prototype.
2551         * intrinsics/random.c: Disable old implementation and add new one.
2552
2553 2004-05-30  Andreas Jaeger  <aj@suse.de>
2554
2555         * intrinsics/random.c: Include unistd.h for close and read
2556         prototypes, remove unneeded inclusion of assert.h.
2557
2558         * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
2559         unneeded inclusion of assert.h.
2560
2561 2004-05-27  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
2562
2563         PR fortran/15234
2564         * intrinsics/associated.c: Remove enum.
2565         (associated): Replace TRUE/FALSE by 1/0.
2566
2567 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
2568
2569         * random.c (random_seed): Use correct variable.
2570
2571 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
2572
2573         * intrinsics/system_clock: New file.
2574         * Makefile.am: Add intrinsics/system_clock.c.
2575         * Makefile.in: Regenerate.
2576
2577 2004-05-21  Roger Sayle  <roger@eyesopen.com>
2578
2579         * io/format.c (parse_format_list): Allow the comma after a string
2580         literal to be optional.
2581
2582 2004-05-18  Paul Brook  <paul@codesourcery.com>
2583         Feng Wang  <fengwang@nudt.edu.cn>
2584
2585         * Makefile.am (i_pow_c): Set it. Add build rule.
2586         (gfor_built_src): Use it.
2587         (m4_files): add m4/pow.m4.
2588         * Makefile.in: Regenerate.
2589         * m4/pow.m4: New file.
2590         * generated/pow_*.c: Regenerate.
2591
2592 2004-05-18  Paul Brook  <paul@codesourcery.com>
2593
2594         * Makefile.am: Remove references to types.m4.
2595         * m4/iparm.m4: Merge with types.m4.
2596         * m4/types.m4: Remove.
2597         * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
2598         m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
2599         m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
2600         m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
2601         m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
2602         m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
2603         Update to use new iparm.m4.
2604         * generated/*.c: Regenerate.
2605
2606 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2607
2608         PR fortran/15235
2609         * gfortran.h (offset_t): Rename to ...
2610         (gfc_offset): ... this.
2611         * io/backspace.c (formatted_backspace, unformatted_backspace),
2612         io/io.h (stream, gfc_unit, global_t, file_length, file_position),
2613         transfer.c (us_read, us_write, next_record_r, next_record_w),
2614         io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
2615         fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
2616         mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
2617         mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
2618         occurences of offset_t by gfc_offset.
2619
2620 2004-05-16  Paul Brook  <paul@codesourcery.com>
2621
2622         * io/format.c (write_real): Don't include padding in format.
2623
2624 2004-05-16  Paul Brook  <paul@codesourcery.com>
2625
2626         * io/format.c (format_lex): Make c an int.
2627
2628 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2629         Paul Brook  <paul@codesourcery.com>
2630
2631         * io/write.c (write_logical): Don't print extra blank.
2632         (write_integer): Base field width on kind.
2633         (list_formatted_write): Output initial blank.
2634
2635 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2636
2637         * io/io.h (flush): Add prototype.
2638         * io/transfer.c (finalize_transfer): Flush partial records.
2639         * io/unix.c (flush): New function.
2640
2641 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
2642
2643         PR fortran/15234
2644         * io/io.h (unit_t): Rename to ...
2645         (gfc_unit) ... this.
2646         (unit_root, current_unit, find_file, find_unit, get_unit): Now
2647         of type gfc_unit.
2648         (delete_file, insert_unit, close_unit): Argument now of type
2649         gfc_unit.
2650         * backspace.c (st_backspace), close.c (st_close), endfile.c
2651         (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
2652         (test_endfile, edit_modes, new_unit, already_open, st_open),
2653         rewind.c (st_rewind), transfer.c (current_unit), unit.c
2654         (internal_unit, unit_cache, rotate_left, rotate_right, insert,
2655         insert_unit, delete_root, delete_treap, delete_unit, find_unit,
2656         get_unit, init_units, close_unit), unix.c (find_file0,
2657         find_file, delete_file): Replace all occurences of unit_t by
2658         gfc_unit.
2659
2660 2004-05-15  Bud Davis  <bdavis9659@comcast.net>
2661
2662         PR fortran/15311
2663         * io/write.c (write_a): right justify A edit output.
2664
2665 2004-05-14  Bud Davis  <bdavis9659@comcast.net>
2666
2667         PR fortran/15149
2668         * libgfortan.h,intrinsics/random.c: Made random_seed visible.
2669         * runtime/main.c(init): Call random_seed as part of MAIN init.
2670
2671 2004-05-13  Tobias Schlter  <tobias.schlueter@physik.uni-muenchen.de>
2672
2673         * io/format.c: (parse_format_list): No comma is required after
2674         P descriptor.
2675
2676 2004-05-13  Bud Davis  <bdavis9659@comcast.net>
2677
2678         PR fortran/15204
2679         * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
2680
2681 2004-05-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2682             Steven Bosscher  <stevenb@suse.de>
2683
2684         PR libfortran/15234
2685         * libgfortran.h: Include <inttypes.h> if available.
2686
2687 2004-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2688
2689         * io/unix.c (MAP_FAILED): Define if missing.
2690         (mmap_alloc): Cast MAP_FAILED to char *.
2691         (mmap_open): Likewise.
2692
2693 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
2694
2695         * generated/_abs_i8.f90: New file.
2696         * generated/_abs_c4.f90: New file.
2697         * generated/_abs_c8.f90: New file.
2698         * Makefile.am: Add them.
2699         * Makefile.in: Regenerate.
2700 `
2701 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
2702
2703         PR fortran/14056
2704         * generated/_abs_i4.f90: New file.
2705         * Makefile.am: Add it.
2706         * Makefile.in: Regenerate.
2707
2708 2004-04-25  Bud Davis  <bdavis9659@comcast.net>
2709
2710         PR fortran/14942
2711         * io/list_read.c(list_formatted_read): finish consuming the
2712         spaces and seperators at eoln to get ready for next item.
2713
2714 2004-04-23  Bud Davis  <bdavis9659@comcast.net>
2715
2716         PR fortran/15113
2717         * io/read.c(read_a): Handle field width > destination and no field width.
2718
2719 2004-04-22  Bud Davis  <bdavis9659@comcast.net>
2720
2721         PR fortran/14906
2722         * io/format.c (format_item): gracefully handle a ')'
2723         when it is the first character encountered in the string.
2724
2725 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
2726
2727         PR fortran/14904
2728         * io/transfer.c (next_record): Update last_record when
2729         more than one record is written to a direct access file
2730         with one write statement.
2731
2732 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
2733
2734         PR fortran/14901
2735         * io/transfer.c (next_record_w) : No '\n' if internal.
2736         * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
2737
2738 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
2739
2740         * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
2741         Will need to change this later to support direct access files > 2gb.
2742
2743 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
2744
2745         PR gfortran/14762
2746         * io/transfer.c (next_record_r) : Skip to next record.
2747
2748 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
2749
2750         PR gfortran/14836
2751         * io/transfer.c (next_record): Update last_record for DIRECT
2752
2753 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
2754
2755         PR gfortran/14837
2756         * io/unix.c (find_file0): Use fd field of struct
2757
2758 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
2759
2760         PR 14831
2761         * io/inquire.c (inquire_via_unit): Changed return string for
2762         BLANK=NULL. Use correct variable for ACTION.
2763
2764 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
2765
2766         PR 14746
2767         * io/read.c (read_f): Allow a decimal without a leading digit.
2768         * io/write.c (output_float): remove a leading '0' to keep from
2769         overflowing the field (F edit descriptor).
2770
2771 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
2772
2773         PR gfortran/14565
2774         * io/open.c (new_unit),
2775         * io/io.h : new_unit is now visible
2776         * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
2777         * io/transfer.c (data_transfer_init): remove compile warnings.
2778         * io/rewind.c (st_rewind): ftruncate if writing.
2779
2780 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
2781
2782         * write.c (write_l): Use extract_int for 'L' edit descriptor.
2783
2784 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
2785
2786         PR 13919
2787         * io/io.h (global_t):
2788         * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
2789           Move eof_jmp to a global structure.
2790         * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
2791
2792 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
2793
2794         * m4/cexp.m4 (csqrt): Actually use the passed value.
2795         * generated/exp_c?.c: Regenerate.
2796
2797 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
2798
2799         PR 12921
2800         * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
2801         * open.c (new_unit): Moved test for positioned direct access error.
2802         (init_units): Corrected calculation of max records.
2803
2804 2004-02-06  Feng Wang  <fengwang@nudt.edu.cn>
2805
2806         * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
2807         * Makefile.in: Regenerate.
2808         * m4/dotprodc.m4: New file. Implement complex dot_product.
2809         * m4/dotprod.m4: Delete the complex implementation.
2810         * generated/dotprod_*: Update.
2811
2812 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
2813
2814         * transfer.c (write_constant_string): Do not delete H's in hollerith
2815         formats.
2816
2817 2004-01-05  Andrew Pinski  <apinski@apple.com>
2818
2819         * configure.in: Check for csin in -lmx also.
2820         * configure: Regenerate.
2821
2822 2004-01-01  Paul Brook  <paul@codesourcery.com>
2823
2824         * io/list_read.c (find_nml_node): Make static.
2825         (match_namelist_name): Ditto.
2826         * io/read.c (convert_precision_real): Make static, fix spelling.
2827         * io/transfer.c (extract_real): Remove unused prototype.
2828         (st_set_nml_var): Make static.
2829         * io/write.c (extract_real): Make static.
2830
2831 2003-12-12  Huang Chun <chunhuang73@hotmal.com>
2832
2833         * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
2834
2835 2003-12-05  Melvin Hadasht  <melvin.hadasht@free.fr>
2836
2837         * io/transfer.c (data_transfer_init): Give a runtime error for list
2838         formatted reads and writes from/to files opened for unformatted IO.
2839
2840 2003-11-30  Paul Brook  <paul@nowt.org>
2841
2842         * runtime/memory.c (push_context): Remove.
2843         (pop_context): Remove.
2844         * libgfortran.h: Remove prototypes.
2845
2846 2003-11-27  Paul Brook  <paul@nowt.org>
2847
2848         * runtime/memory.c (deallocate): Nullify pointer after freeing.
2849
2850 2003-11-27  Paul Brook  <paul@nowt.org>
2851
2852         * intrinsics/string_intrinsics.c: Use new memory allocation interface.
2853         * libgfortran.h: Ditto.
2854         * m4/in_pack.m4: Ditto.
2855         * runtime/in_pack_generic.c: Ditto.
2856         * runtime/memory.c: Ditto.
2857
2858 2003-11-26  Richard Henderson  <rth@redhat.com>
2859
2860         * m4/exponent.m4, m4/fraction.m4: New.
2861         * m4/nearest.m4, m4/set_exponent.m4: New.
2862         * generated/*: Update.
2863         * Makefile.am: Add them.
2864         (AM_CFLAGS): New.  Use -std=gnu99.
2865         * Makefile.in: Regenerate.
2866
2867 2003-11-08  Paul Brook  <paul@nowt.org>
2868
2869         PR fortran/12704
2870         * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
2871         * m4/maxloc1.m4: Ditto.
2872         * m4/minloc0.m4: Ditto.
2873         * m4/minloc1.m4: Ditto.
2874         * m4/ifunction.m4: Set return value for zero sized arrays.
2875         * m4/iforeach.m4: Ditto.
2876         * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
2877         m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
2878         * generated/*: Update.
2879
2880 2003-10-30  Toon Moene  <toon@moene.indiv.nluug.nl>
2881
2882         PR fortran/12702
2883         * io/list_read.c (eat_spaces): Treat tab as space.
2884
2885 2003-10-30  Lars Segerlund  <Lars.Segerlund@comsys.se>
2886
2887         * intrinsics/random.c: Add reference to paper containing algorithm.
2888         (random_seed): Extra error checking and proper handling of arrays.
2889         (arandom_r4, arandom_r8): Implement.
2890
2891 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
2892
2893         PR fortran/12703
2894         * runtime/memory.c (allocate_size): Allow allocation
2895         of zero-sized objects.
2896
2897 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
2898
2899         PR fortran/12701
2900         * open.c (new_unit): Open without a file name opens
2901         a file with name fort.<unit>.
2902
2903 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
2904
2905         * intrinsics/cshift0.c: New file.
2906         * m4/cshift1.m4: New file
2907         * generated/cshift*.c: New files.
2908         * Makefile.am: Add them.
2909         * Makefile.in: Regenerate.
2910
2911 2003-10-12  XiaoQiang Zhang  <zhangapache@yahoo.com>
2912
2913         * io/list_read.c (read_character): Remove unwanted call to free_saved.
2914
2915 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
2916
2917         * intrinsics/string_intrinsics.c (string_trim): New function.
2918         (string_repeat): New function.
2919
2920 2003-10-11  Paul Brook  <paul@nowt.org>
2921
2922         * intrinsics/dprod_r8.f90: New file.
2923         * Makefile.am (gfor_specific_src): Add it.
2924         (gfor_built_specific_src): Rename from gfor_build_specific_c.
2925         Add new intrinsics.
2926         (gfor_specific2_src): Rename from gfor_built_specific2_c.
2927         Add new intrinsics.
2928         * Makefile.in: Regenerate.
2929         * generated/_aint_*.f90: New files.
2930         * generated/_anint*.f90: New files.
2931         * generated/_atan2*.f90: New files.
2932         * generated/_mod*.f90: New files.
2933
2934 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2935
2936         * intrinsics/selected_kind.f90: New file.
2937         * Makefile.am: Add it.
2938         * Makefile.in: regenerate.
2939
2940 2003-09-19  Lars Segerlund  <Lars.Segerlund@comsys.se>
2941         Paul Brook  <paul@nowt.org>
2942
2943         * intrinsics/random.c: New file.
2944         * Makefile.am (gfor_hemper_src): Add it.
2945         (gfor_specific_c): Fix typo.
2946
2947 2003-09-19  Paul Brook  <paul@nowt.org>
2948
2949         * All: rename g95->gfc.
2950
2951 2003-09-18  XiaoQiang Zhang  <zhangapache@yahoo.com>
2952
2953         * io/write.c (output_float): Fix bug of FMT_E, Add comments.
2954
2955 2003-09-09  XiaoQiang Zhang  <zhangapache@yahoo.com>
2956
2957         * io/write.c (write_float): Dectection of positive infinite number,
2958         Not a Number(NaN) and negative infinite number.
2959         (ioutput_float): Bug fix for FMT_E and FMT_D processing to
2960         output a very_very small number ( < 0.1e-100 ).
2961
2962 2003-09-07  XiaoQiang Zhang  <zhangapache@yahoo.com>
2963
2964         * libgfortran.h (xtoa, itoa): Parameter modified.
2965         * io/io.h (namelist_info): Declaration to support namelist I/O
2966         (st_parameter): Add namelist related component
2967         (ionml, empty_internal_buffer, st_set_nml_var_int,
2968         st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
2969         st_set_nml_var_log): Declaration
2970         (set_integer, set_integer): Parameter changed
2971         * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
2972          fnodes
2973         (parse_format_list): Fix bug about FMT_SLASH
2974         * io/list_read.c (push_char): Totally clear old saved_string, zeroize
2975         newly allocated saved_string
2976         (next_char): Add detection of End_Of_Line support
2977         (convert_integer): Now can process 64 bits interger
2978         (read_real): Bug fixed
2979         (init_at_eol, find_nml_node, match_namelist_name): Add new functions
2980         (match_namelist_name): New implemention
2981         * io/lock.c (ionml): New global variable
2982         (library_end): Free memory in ionml
2983         * io/open.c (st_open): Variable initializtion
2984         * io/read.c (max_value): 64 bits interger support
2985         (convert_precsion_real): New procedure to replace "strtod" with more
2986          features
2987         (read_f, read_radix): Input bug fix
2988         * io/transfer.c: (sf_seen_eor): New static variable
2989         (read_sf): Zeroize base buffer; fix bugs: single read statement can
2990         not get input in mutli line when read from stdin
2991         (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
2992          request
2993         (data_transfer_init): Clear internal buffer for Internel File I/O.
2994         Internal File now worked. Detect some error condition for namelist.
2995         Some minor bug fix
2996         (next_record_w): Internal file and Namelist I/O support.
2997         (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
2998         st_set_nml_var_complex, st_set_nml_var_log): Implemention.
2999         * io/unit.c (implicit_unit): Deletion
3000         (get_unit): Now cannot open a unit implicitly.
3001         * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
3002         mapped buffer.
3003         (mem_alloc_r_at): Internal file I/O support added
3004         (empty_internal_buffer): New function
3005         * io/write.c (extract_int): Support 64 bits interger processing
3006         (output_float): Varibale initialization
3007         (write_float): Infinite real number detection.
3008         (write_int): 64 bits integer I/O support
3009         (write_decimal): New function to output decimal number
3010         (otoa, btoa): Better implemention and 64 bits interger support
3011         (namelist_write): New function
3012         * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
3013         interger support
3014
3015 2003-08-15  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3016
3017         * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
3018         get_mem ): Add attribute.
3019         * intrinsics/spread_generic.c (__spread): Fix spelling.
3020         * io/inquire.c (inquire_via_filename): Add const.
3021         * io/io.h (sys_exit): Add attribute.
3022         * io/io.h (move_pos_offset): Add move_pos_offset.
3023         * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
3024         inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
3025         inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
3026         write_en, write_es, write_f, write_i, write_l, write_o, write_x,
3027         write_z): Add const.
3028         * io/read.c (convert_real): Add const.
3029         * io/transfer.c (type_name): Add const.
3030         * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
3031         inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
3032         inquire_read, inquire_write, inquire_readwrite): Add const.
3033         * io/write.c (output_float): Remove unused variable.
3034         * io/write.c (write_a, extract_int, extract_real, output_float,
3035         write_float, write_int, write_i, write_b, write_o, write_z, write_d,
3036         write_e, write_f, write_en, write_es, write_logical, write_integer,
3037         write_character, write_real, write_complex): Add const.
3038         * runtime/error.c (rtoa): Remove unused variable.
3039         * runtime/select.c (select_string): Add const.
3040         * runtime/stop.c (stop_string): Add const.
3041
3042 2003-08-10  Paul Brook  <paul@nowt.org>
3043
3044         * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
3045         (FFLAGS): Add -fno-underscoring.
3046         * Makefile.in: Regenerate.
3047         * intrinsics/abort.c: New file.
3048
3049 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
3050
3051         * fmain.c (main): Do not call init and cleanup; call set_args instead.
3052         * libgfortran.h (init, cleanup): Remove declarations.
3053         (set_args): Add declaration.
3054         * runtime/main.c (init, cleanup): Make them static, and give them
3055         the constructor and destructor attributes.
3056         (set_args): New function.
3057
3058 2003-08-10  Paul Brook  <paul@nowt.org>
3059
3060         * intrinsics/strinf_intrinsics.c (compare_string): Return value based
3061         on which string is longest.
3062
3063 2003-08-10  Paul Brook  <paul@nowt.org>
3064
3065         * Makefile.am (EXTRA_DIST): Remove old files.
3066         * Makefile.in: Regenerate.
3067
3068 2003-07-26  Paul Brook  <paul@nowt.org>
3069
3070         Rename library to libgfortran.
3071         * libgfortran.h: Change prefix to _libgfortran_.
3072
3073 2003-07-24  Paul Brook  <paul@nowt.org>
3074
3075         * configure.in: Don't pull in system libtool.  Use toplevel
3076         auxiliary files.
3077
3078 2003-07-22  Paul Brook  <paul@nowt.org>
3079
3080         Regenerate all configury files.
3081
3082 2003-07-09  Chun Huang  <compiler@sohu.com>
3083
3084         * intrinsics/string_intrinsic.c (string_scan): New function.
3085         (string_verify): New function.
3086
3087 2003-06-25  Paul Brook  <paul@nowt.org>
3088
3089         * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
3090         (mem_seek): Don't bother setting physical_offset.
3091
3092 2003-06-20  Paul Brook  <paul@nowt.org>
3093
3094         * libgfor.h (stop_numeric): Declare.
3095         * runtime/pause.c: New file.
3096         * Makefile.am: Add it.
3097
3098 2003-06-08  Paul Brook  <paul@nowt.org>
3099
3100         * m4/cexp.m4 (cabs): Use correct typed version.
3101         (csqrt): New function.
3102
3103 2003-06-07  Canqun Yang  <canqun@yahoo.com.cn>
3104
3105         Spotted by Benjamin and Tobias:
3106         * io/list_read.c: Add Separator '\t'.
3107         (parse_real, read_real): Accept real values starting with an optional
3108         sign follows a decimal point.
3109
3110 2003-06-06  Steven Bosscher  <steven@gcc.gnu.org>
3111
3112         * Makefile.am: Don't put cmath objects in subdir.
3113         * configure.in: Rename MATHOBJ to MATH_OBJ.
3114
3115 2003-06-02  Kejia Zhao  <Kejia_zh@yahoo.com.cn>
3116
3117         * intrinsics/associated.c: New file.
3118         * Makefile.am: Add it. Regenerate Makefile.in.
3119         * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
3120         G95_DESCRIPTOR_DTYPE.
3121
3122 2003-06-01  Canqun Yang  <canqun@yahoo.com.cn>
3123
3124         * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
3125         (calculate_G_format): Rewrite it to eliminate an infinte loop and set
3126         the scale_factor to 0 for F editing.
3127
3128 2003-05-11  Tobias Schlter  <innenminister@gmx.de>
3129
3130         * libgfor.h: Only include stdint.h if it exists.
3131
3132 2003-05-07  Paul Brook  <paul@nowt.org>
3133
3134         * libgfor.h: Use stdint.h types.
3135         * intrinsics/ishift.c: Ditto.
3136         * runtime/memory.c (malloc_t): Reorder fields for better alignment.
3137
3138 2003-05-05  Steven Bosscher  <steven@gcc.gnu.org>
3139
3140         * libgfor.h (offsetof): Define if nobody else does.
3141         * runtime/memory.c (HEADER_SIZE): Use it.
3142
3143 2003-05-01  Tobias Schlter  <innenminister@gmx.de>
3144
3145         * configure.in: Require autoconf 2.54.
3146
3147 2003-04-28  Tobias Schlter  <innenminister@gmx.de>
3148         Paul Brook  <paul@nowt.org>
3149
3150         * intrinsics/reshape_generic.c: Copy the whole element, not just the
3151         first byte.
3152         * m4/transpose.m4: New file.
3153         * Makefile.am: Add them.
3154         Regenerate generated files.
3155
3156 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
3157
3158         * io/format.c (parse_format_list): Allow 'X' without integer
3159         prefix.  This is an extension.  Interpretation is '1X'.
3160
3161 2003-04-18  Tobias Schlter  <Tobias.Schlueter@physik.uni-muenchen.de>
3162
3163         * io/format.c (parse_format_list): Allow '0P'.
3164
3165 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
3166
3167         * Makefile.in: Re-regenerate for automake 1.7.3.
3168
3169 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
3170
3171         Port implementation for CHARACTER SELECT from Andy's tree.
3172         * runtime/select.c: New file
3173         * Makefile.am: Add it.
3174         * Makefile.in: Regenerate.
3175
3176 2003-04-17  Xiaoqiang Zhang <zhangapache@yahoo.com>
3177
3178         * io/transfer.c (formatted_transfer): Modified
3179         * io/unix.c (move_pos_offset): New Function.
3180         * io/format.c (parse_format_list): Modified.
3181
3182 2003-04-15  Xiaoqiang Zhang <zhangapache@yahoo.com>
3183
3184         * io/write.c (write_float,write_real): New implemention of
3185         FMT_G and default float editing.
3186         (calculate_exp,calculate_G_format,output_float): New Function.
3187         (write_float,write_real,write_logical): Modified
3188         * libgfor.h (default_rtoa): Remove Declaration.
3189         * runtime/error.c (default_rtoa): Remove Function.
3190
3191 2003-04-15  Steven Bosscher  <steven@gcc.gnu.org>
3192
3193         Spotted by Yang:
3194         * io/write.c (extract_real): Add missing break statement.
3195
3196 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
3197
3198         * cpu_time.c: Make sure we have a definition of HZ.  Don't
3199         rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
3200
3201 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
3202             Paul Brook  <paul@nowt.org>
3203
3204         * configure.in: Check for process time headers and GETTIMEOFDAY.
3205         * makefile.am: Add intrinsics/cpu_time.c.
3206         * acinclude.m4: New file.
3207         * intrinsics/cpu_time.c: New file.
3208         * m4/dotprodl.m4: Fix typo.
3209         Regenerate generated files.
3210
3211 2003-04-11  Xiaoqiang Zhang <zhangapache@yahoo.com>
3212
3213         * io/write.c (extract_real): Ouput floating point value.
3214         (write_float): New Function.
3215         (write_e, write_f, write_en, write_es): Modified
3216         * io/transfer.c (formatted_transfer): Modified.
3217         * libgfor.h (default_rtoa): Declaration.
3218         (rtoa): Declaration.
3219         * runtime/error.c (default_rtoa): New Function.
3220         (rtoa): New Function.
3221
3222 2003-04-05  Paul Brook  <paul@nowt.org>
3223
3224         * intrinsics/spread_generic.c: New file.
3225         * Makefile.am: Add it. Regenerate Makefile.in.
3226
3227 2003-03-29  Paul Brook  <paul@nowt.org>
3228
3229         * intrinsics/pack_generic.c: New file.
3230         * intrinsics/unpack_generic.c: New file.
3231         * Makefile.am: Add them. Regenerate Makefile.in.
3232
3233 2003-03-25  Paul Brook  <paul@nowt.org>
3234
3235         * intrinsics/eoshift0.c: New file.
3236         * intrinsics/eoshift2.c: New file.
3237         * m4/eoshift1.m4: New file.
3238         * m4/eoshift3.m4: New file.
3239         * Makefile.am: Add them.
3240         * in_unpack_generic.c: Initialize src.
3241         Regenerate generated files.
3242
3243 2003-03-14  Paul Brook  <paul@nowt.org>
3244
3245         * m4/shape.m4: Work properly with array temporaries.
3246         * m4/in_pack.m4: Skip redundant checks for array temporaries.
3247         * runtime/in_pack_generic.c: Ditto.
3248
3249 2003-03-12  Paul Brook  <paul@nowt.org>
3250
3251         * m4/shape.m4: Work properly with noncontiguous arrays.
3252
3253 2003-03-08  Paul Brook  <paul@nowt.org>
3254
3255         * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
3256         * runtime/in_pack_generic.c: Ditto.
3257
3258 2003-02-08  Paul Brook  <paul@nowt.org>
3259
3260         * intrinsics/reshape_generic.c: Use runtime_error to report errors.
3261         * io/close.c (st_close): Return void.
3262         * io/open.c (st_open): Return void.
3263         * libgfor.h (g95_array_char): Declare.
3264         (internal_malloc_size): Ditto.
3265         (internal_pack*, internal_unpack*): Ditto.
3266         * m4/in_pack.m4: Allocate storage if neccessary.  Fix logic for packed
3267         arrays.
3268         * m4/in_unpack.m4: Include file fixes.
3269         * m4/reshape.m4: Increment the correct source pointer.
3270         * Makefile.am (maxloc): Fix typo.
3271         * runtime/in_pack_generic.c: Call optimized functions. Allocate
3272         storage if neccessary. Fix logic for packed arrays.
3273         * runtime/in_unpack_generic.c: Call optimized functions.
3274         * runtime/main.c: Use runtime_error to report errors.
3275         * memory.c (internal_malloc_size): Make non-static.
3276
3277 2003-02-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3278
3279         * reshape_packed.c, lock.c: Add #include <string.h>.
3280         * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
3281         environ.c, error.c, memory.c, string.c: Add const.
3282         * error.c (show_locus): Add void.
3283
3284 2003-02-21  Paul Brook  <paul@nowt.org>
3285
3286         * m4/in_pack.m4: Avoid returning const * parameter.
3287         * Makefile.am: Only regenerate files in maintainer mode.
3288
3289 2003-02-20  Paul Brook  <paul@nowt.org>
3290
3291         Add array repacking support functions.
3292         * m4/in_pack.m4, m4/in_unpack.m4: New files.
3293         * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
3294         * Makefile.am: Build them.  Regenerate configury files.
3295         * generated/: New directory for generated files (need to move
3296         everything else there).
3297
3298 2003-02-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3299
3300         * m4/cexp.m4: Fix typo.
3301
3302 2003-01-26  Paul Brook  <paul@nowt.org>
3303
3304         * intrinsics/: Add missing generated files.
3305
3306 2003-01-26  Paul Brook  <paul@nowt.org>
3307
3308         * Makefile.am: Put -I before the filename.
3309
3310 2003-01-24  Paul Brook  <paul@nowt.org>
3311
3312         * configure.in: Add AM_MAINTAINER_MODE.
3313
3314 2003-01-23  Paul Brook  <paul@nowt.org>
3315
3316         * configure.in, Makefile.am: Modify to work with unmodified autoconf
3317         and auotmake.
3318         Also regenerate other configury files.
3319
3320 2003-01-21  Paul Brook  <paul@nowt.org>
3321
3322         * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
3323
3324 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3325
3326         * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
3327         Don't include "alloca.h".
3328
3329 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3330
3331         * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
3332         * Makefile.am: Adjust file name.
3333         * Makefile.in: Regenerate.
3334         * gfortypes.h: Kill, include everything in...
3335         * libgfor.h: ...here.  Include config.h
3336         * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
3337         intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
3338         intrinsics/reshape_packed.c, intrinsics/size.c,
3339         m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
3340         for prefix for all functions instead of hardcoded.
3341
3342 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3343
3344         * io/lock.c (library_end): Propagate library return
3345         code.
3346
3347 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3348
3349         Port fixes from Andy's tree:
3350         * io/read.c (read_decimal): Reverse sense of overflow
3351         comparison during integer reads.
3352         * io/format.c (revert): Fix comment.
3353         (next_format): Fix format revision.
3354         * io/unix.c: Fix and simplify mmap version of stream
3355         functions.
3356
3357 2003-01-11  Paul Brook  <paul@nowt.org>
3358
3359         * configure, Makefile.in: Regenerate.
3360
3361 2003-01-11  Paul Brook  <paul@nowt.org>
3362
3363         * runtime/stop.c: Rewrite.
3364
3365 2003-01-08  Paul Brook  <paul@nowt.org>
3366
3367         * configure, Makefile.in: Regenerate.
3368
3369 2003-01-05  Paul Brook  <paul@nowt.org>
3370
3371         * (*.m4) Move to m4/.
3372         * intrinsics/string.c (_gfor_string_index): New Function.
3373
3374 2002-12-29  Paul Brook  <paul@nowt.org>
3375
3376         * intrinsics/reshape.*: New files.
3377         * gcc_config.patch: Update to new GCC configure system.
3378
3379 2002-10-10  Paul Brook  <paul@nowt.org>
3380
3381         * intrinsics/size.c: New file.
3382         * intrinsics/shape.m4: New file.
3383         * Makefile.am: Add above files.
3384
3385 2002-10-02  Paul Brook  <paul@nowt.org>
3386
3387         * fmain.c (main): Move here.
3388         * libgfor.c: From here.
3389         * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
3390         * Makefile.am: Build libgforbegin.
3391         * gcc_config.patch: Remove stray -march=athlon.
3392         * dotprodl.m4: Fix use of L8_TO_L4 macro.
3393         * ifunction.m4: Move variable declarations to allow compilation with
3394         gcc < 3.0
3395         * specific.m4, specific4.m4: Fix typo typecode->type_code.
3396         * README: Document use of patch -p1.
3397
3398 2002-09-12  Paul Brook  <paul@nowt.org>
3399
3400         * math/*: Add complex math library functions.
3401         * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
3402         * Makefile.am: Add details for above.
3403         * configure.in: Use AC_PROG_F95.  Test for the presence of csin.
3404
3405 2002-09-09  Paul Brook  <paul@nowt.org>
3406
3407         * libgfor.c (determine_endianness): Use an array rather than a struct.
3408         * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
3409
3410 2002-09-09  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3411
3412         * libgfor.c: Add fatal signal handler.
3413         Romove superfluous abort() calls.