OSDN Git Service

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