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