OSDN Git Service

50dde4e40e0c342463443c67900826c8f7b83bde
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2004-12-06  Richard Henderson  <rth@redhat.com>
2
3         * intrinsics/c99_functions.c, intrinsics/eoshift0.c,
4         intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
5         intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
6         intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
7         intrinsics/spread_generic.c, intrinsics/stat.c,
8         intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
9         intrinsics/transpose_generic.c, intrinsics/unlink.c,
10         intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
11         io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
12         io/write.c, runtime/environ.c, runtime/error.c,
13         runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
14         runtime/memory.c, runtime/pause.c, runtime/stop.c,
15         runtime/string.c: Whitespace fixes.
16
17 2004-12-06  Richard Henderson  <rth@redhat.com>
18
19         * Makefile.am: Generate all m4 output under $(srcdir).
20         * Makefile.in: Regenerate.
21
22 2004-12-02  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
23
24         PR fortran/18710
25         * io/transfer.c (unformatted_read, unformatted_write): width of
26         a COMPLEX is twice its kind.
27
28 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
29
30         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
31         * configure, aclocal.m4, Makefile.in: Regenerate.
32
33 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
34
35         PR libfortran/18284
36         * io/unix.c (fd_alloc_w_at): Update file_length when extending.
37         * io/backspace.c (formatted_backspace): Reset endfile after backspace.
38
39 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
40
41         * io/inquire.c (inquire_via_unit): do not allow a direct access
42         file to be opened for sequential I/O.
43
44 2004-12-02  Steven G. Kargl  <kargls@comcast.net>
45         Paul Brook  <paul@codesourcery.com>
46
47         * intrinsics/flush.c: New file.
48         * intrinsics/fnum.c: ditto
49         * intrinsics/stat.c: ditto
50         * io/io.h (unit_to_fd): Add prototype.
51         * io/unix.c (unit_to_fd): New function.
52         * configure.ac: Add test for members of struct stat.  Check for
53         sys/types.h and sys/stat.h
54         * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
55         * configure.in: Regenerate.
56         * config.h.in: Regenerate.
57         * Makefile.in: Regenerate.
58
59 2004-12-01  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
60
61         * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
62
63 2004-11-28  Bud Davis  <bdavis9659@comcast.net>
64
65         * io/unix.c (mmap_alloc_w_a): check for a write to a location
66         less than the mapped area.
67
68 2004-11-27  Bud Davis  <bdavis9659@comcast.net>
69
70         PR fortran/18364
71         *  io/endfile.c (st_endfile): flush the stream before truncating.
72
73 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
74
75         * configure: Regenerate for libtool change.
76
77 2004-11-22  Steven Bosscher  <stevenb@suse.de>
78
79         PR libfortran/15960
80         * configure.ac: Check for finite in libm.
81         * libgfortran.h: Define isfinite macro if not defined.
82         * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
83         HAVE_FPCLASSIFY.
84         * io/write.c (write_float): Use isfinite instead of finite.
85         * configure, config.h.in: Rebuilt.
86
87 2004-11-20  Roger Sayle  <roger@eyesopen.com>
88
89         * io/write.c (write_float, list_formatted_write): Fix indentation.
90
91 2004-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
92
93         PR target/16135
94         * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
95         * configure.ac: Include LIBGFOR_TARGET_ILP32.
96         * configure: Regenerate.
97         * config.h.in: Likewise.
98         * libgfortran.h: Provide default definitions for C99 types
99         on ILP32 targets that don't have them.
100
101         PR target/17999
102         * configure.ac: Check for snprintf.
103         * configure: Regenerate.
104         * config.h.in: Likewise.
105         * intrinsics/date_and_time.c (date_and_time): Do not
106         use snprinf if it is not available.
107         * io/write.c (output_float): Likewise.
108
109 2004-11-20  Steven G. Kargl  <kargls@comcast.net>
110
111         * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
112         * Makefile.in: Regenerated
113         * intrinsics/umask.c: New file
114         * intrinsics/unlink.c: ditto
115         * intrinsics/exit.c: ditto
116
117 2004-11-18  Victor Leikehman  <lei@il.ibm.com>
118
119         * m4/matmul.m4: Loops reordered to improve cache behavior.
120         * generated/matmul_??.c: Regenerated.
121         
122 2004-11-10  Paul Brook  <paul@codesourcery.com>
123
124         PR fortran/18218
125         * configure.ac: Check for strtof.
126         * configure: Regenerate.
127         * config.h.in: Regenerate.
128         * io/read.c (convert_real): Use strtof if available.
129         (convert_precision_real): Remove.
130         (read_f): Avoid poor exponentiation algorithm.
131
132 2004-11-05  Andreas Schwab  <schwab@suse.de>
133
134         * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
135         AC_PROG_F77, F77 and FFLAGS.
136         * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
137         FCCOMPILE instead of F77COMPILE.
138         * configure, Makefile.in: Regenerate.
139
140 2004-11-05  Kelley Cook  <kcook@gcc.gnu.org>
141
142         * acinclude.m4: Properly quote AC_CACHE_CHECK.
143         * Makefile.am: Add in ACLOCAL_AMFLAGS.
144         * aclocal.m4, configure, Makefile.in: Regenerate.
145
146 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
147
148         * config.h.in: Regenerate.
149         * configure: Regenerate.
150         * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
151         * io/unix.c (S_IRGRP): Define if undefined.
152         (S_IWGRP): Same.
153         (S_IROTH): Same.
154         (S_IWOTH): Same.
155         (tempfile): Use mktemp if mkstemp missing, fix typos.
156
157 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
158
159         *  intrinsics/system.c ("libgfortran.h"): Move after system headers.
160
161 2004-10-30  Canqun Yang  <canqun@nudt.edu.cn>
162
163         * intrinsics/rand.c (irand): Handle NULL argument.
164
165 2004-10-07  Paul Brook  <paul@codesourcery.com>
166
167         * io/transfer.c (finalize_transfer): Free internal streams.
168         * io/unix.c (mem_close): Free stream object.
169
170 2004-10-07  Paul Brook  <paul@codesourcery.com>
171
172         * intrinsics/string_intrinsics.c (string_verify): Fix off by one
173         error.
174
175 2004-10-06  Paul Brook  <paul@codesourcery.com>
176
177         PR libfortran/17709
178         * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
179
180 2004-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
181
182         * intrinsics/mvbits.c: Commit the file.
183
184 2004-10-04  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
185
186         PR fortran/17283
187         * intrinsics/pack_generic.c (__pack): Allocate memory for return array
188         if not done by caller.
189         (__pack_s): New function.
190         * runtime/memory.c (internal_malloc, internal_malloc64): Allow
191         allocating zero memory.
192
193         PR fortran/17631
194         * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
195         * Makefile.in: Regenerate.
196         * intrinsics/mvbits.h: New file.
197
198         PR fortran/17776
199         * intrinsics/system.c: New file.
200         * Makefile.am: Add dependency for the new file.
201         * Makefile.in: Regenerate.
202
203 2004-10-04  Paul Brook  <paul@codesourcery.com>
204         Bud Davis  <bdavis9659@comcast.net>
205
206         PR fortran/17706
207         PR fortran/16434
208         * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
209         BN and BZ formats.
210         * io/write.c (output_float): Don't output minus zero.
211
212 2004-10-03  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
213
214         * intrinsics/abort.c ("libgfortran.h"): Move.
215         * intrinsics/date_and_time.c ("libgfortran.h"): Same.
216         * intrinsics/write.c ("libgfortran.h"): Same.
217
218 2004-09-26  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
219
220         PR libfortran/16137
221         * config.h.in (HAVE_POWF): Undefine.
222         * configure.ac: Check for 'powf' in library.
223         * configure: Regenerate.
224         * intrinsics/c99_functions.c (powf): New function.
225
226 2004-09-24  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
227
228         * intrinsics/etime.c (etime_): New function.
229
230 2004-09-21  Steven G. Kargl  <kargls@comcast.net>
231
232         * libgfortran.h: define gfc_alloca()
233         * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
234
235 2004-09-21  Bud Davis  <bdavis9659@comcast.net>
236
237         PR fortran/17286
238         * io/list_read.c (namelist_read): ignore spaces after 
239         the '=' for namelist reads.
240
241 2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
242
243         * config.h.in: Regenerate.
244         * configure: Regenerate.
245         * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
246         * unix.c: Include stdio.h.
247         (HAVE_SYS_MMAN_H): Check.
248         (PROT_READ, PROT_WRITE): Provide default definitions.
249
250 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
251
252         * intrincics/getcwd.c: New file.
253         * Makefile.am: Add getcwd.c.
254         * Makefile.in: Regenerated.
255
256 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
257         Paul Brook  <paul@codesourcery.com>
258
259         * intrinsics/env.c (getenv, get_environmental_variable): Remove
260         trailing white space.  Use alloca.  Honour trim_name.
261
262 2004-09-13  Bud Davis  <bdavis9659@comcast.net>
263
264         PR fortran/17090
265
266         * io/list_read.c (list_formatted_read): Handle trailing spaces
267         at end of line.
268
269 2004-09-06  Steven G. Kargl  <kargls@comcast.net>
270
271         * io/write.c (output_float): Typo in comment.  Remove debugging
272         printf.  Fix format for FP of form 1e10.
273
274 2004-09-03  Richard Henderson  <rth@redhat.com>
275
276         * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
277         copy_loop_double, copy_loop_ldouble): New.
278         (__cshift0): Make shift type ssize_t.  Use % operator instead of
279         div.  Use specialized versions of copy loop depending on the shape.
280
281 2004-09-02  Paul Brook  <paul@codesourcery.com>
282
283         * io/format.c (parse_format_list): Set repeat count for P descriptors.
284         * write.c (output_float): Fix condition.  Correctly handle nonzero
285         scale factor.
286
287 2004-09-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
288
289         * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
290         * mk-srk-inc.sh: Likewise.
291
292 2004-09-01  Paul Brook  <paul@codesourcery.com>
293
294         * runtime/error.c (generate_error): Set both iostat and
295         library_return.
296
297 2004-08-31  Paul Brook  <paul@codesourcery.com>
298
299         PR libfortran/16805
300         * io/list_read.c (next_char): Don't signal EOF for internal files.
301         * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
302
303 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
304
305         * io/unit.c: Separate copyright years by ','.
306         (compare, insert_unit, delete_unit, is_internal_unit, close_units):
307         Remove blank line in beginning of function.
308         (get_unit): Simplify code.
309
310 2004-08-31  Paul Brook  <paul@codesourcery.com>
311
312         * io/unit.c (get_unit): Remove superfluous if.
313
314 2004-08-31  Paul Brook  <paul@codesourcery.com>
315
316         * io/transfer.c (read_sf): Rename uinty to readlen.  Detect EOF.
317         (finalize_transfer): Move setjmp after namlist IO.
318         * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
319
320 2004-08-31  Paul Brook  <paul@codesourcery.com>
321
322         * list_read.c (eat_separator): Set at_eo when a '/' is seen.
323
324 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
325
326         * libgfortran.h: Replace 'gfc_strlen_type' by
327         'gfc_charlen_type'. Update comment accordingly.
328         * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
329         Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
330
331 2004-08-31  Paul Brook  <paul@codesourcery.com>
332
333         * libgfortran.h: Add comments.
334
335 2004-08-30  Richard Henderson  <rth@redhat.com>
336
337         * Makefile.am (gfor_helper_src): Split selected_kind.f90.
338         (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
339         (selected_int_kind.inc selected_real_kind.inc): New rules.
340         * Makefile.in: Regenerate.
341         * mk-sik-inc.sh, mk-srk-inc.sh: New files.
342         * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
343         include table of detected kinds.
344         * intrinsics/selected_real_kind.f90: Similarly.
345
346 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
347         Paul Brook  <paul@codesourcery.com>
348
349         * intrinsics/bessel.c: New file.
350         * intrinsics/erf.c: New file.
351         * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
352         * configure.ac: Test for C99 Bessel and Error functions.
353         * Makefile.in: Regenerate.
354         * config.h.in: Regenerate.
355         * configure: Regenerate.
356
357 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
358         Paul Brook  <paul@codesourcery.com>
359
360         * Makefile.am: Add intrinsics/getXid.c.
361         * configure.ac: Add tests for get{g,p,u}id.
362         * config.h.in: Regenerate.
363         * Makefile.in: Regenerate.
364         * configure: Regenerate.
365
366 2004-08-28  Paul Brook  <paul@codesourcery.com>
367
368         PR libfortran/17195
369         * libgfortran.h (rtoa): Remove prototype.
370         * runtime/error.c (rtoa): Remove.
371         * io/write.c (calculate_G_format): Don't add blanks if E format is
372         used.  Add correct number of blanks when exponent width is specified.
373         (output_float): Rewrite.
374
375 2004-08-27  Paul Brook  <paul@codesourcery.com>
376
377         * io/rewind.c (st_rewind): Reset unit to read mode.
378
379 2004-08-27  Bud Davis  <bdavis9659@comcast.net>
380
381         PR fortran/16597
382         * io/io.h: created typedef for unit_mode.
383         * io/io.h (gfc_unit): added mode to unit structure.
384         * io/transfer.c (data_transfer_init): flush if a write then
385         read is done on a unit (direct access files).
386         * io/rewind.c (st_rewind): Used unit mode instead of global.
387
388 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
389
390         PR fortran/17143        
391         * runtime/error.c (itoa): keep from overflowing during
392         mod operation by using unsigned variable.
393
394 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
395
396         PR fortran/17164
397         * runtime/string_intrinsics.c (string_index):check for
398         substring longer than string.
399
400 2004-08-24  David Edelsohn  <edelsohn@gnu.org>
401
402         * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
403         * Makefile.in: Rebuilt.
404
405 2004-08-23  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
406
407         * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
408         Fix formatting issues, update copyright years.
409
410 2004-08-21  Bud Davis  <bdavis9659@comcast.net>
411
412         PR 16908
413         * io/transfer.c (next_record_w): Do not blank pad.
414         * io/transfer.c (next_record): Take into account partial records.
415
416 2004-08-18  Victor Leikehman  <lei@il.ibm.com>
417
418         PR fortran/13278
419         * io/transfer.c (st_set_nml_var)
420         * io/write.c (namelist_write): Allow var_name and var_name_len to be
421         null. For strings, use string_length field instead of len.
422         * io/io.h (struct namelist_type): New field string_length.
423         (st_set_nml_var_char): New argument string_length.
424
425 2004-08-13  Bud Davis  <bdavis9659@comcast.net>
426
427         PR gfortran/16935
428         * io/open.c (st_open): use flags instead of the unit structure.
429
430 2004-08-10  Victor Leikehman  <lei@il.ibm.com>
431
432         * io/list_read.c (namelist_read): Convert variable names
433         to lower case, so that mixed-case names are recognized.
434         Don't read beyond terminating slash.
435
436 2004-08-09  Richard Henderson  <rth@redhat.com>
437             Roger Sayle  <roger@eyesopen.com>
438
439         * intrinsics/c99_functions.c (nextafterf): New implementation that
440         works correctly with denormalized numbers.
441
442 2004-08-09  Victor Leikehman  <lei@il.ibm.com>
443
444         * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
445         intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
446         Allocate space if return value has NULL in its data field.
447         * generated/*.c: Regenerate.
448
449 2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
450
451         * intrinsics/env.c: New file.
452         * Makefile.am: Add env.c to build.
453         * Makefile.in: Regenerate.
454
455 2004-08-05  Victor Leikehman  <lei@il.ibm.com>
456
457         PR libgfortran/16704
458         * io/read.c (read_radix): Understand letters f and F as hex digits.
459
460 2004-08-04  Victor Leikehman  <lei@il.ibm.com>
461
462         * libgfortran.h (array_t, size0) New declarations.
463         * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
464         space if return value descriptor has NULL in its data field,
465         and initialize bounds and stride.
466         * intrinsics/size.c (array_t, size0): Declarations moved to
467         libgfortran.h.
468         * generated/*.c: Regenerate.
469
470 2004-08-03  Roger Sayle  <roger@eyesopen.com>
471
472         PR libgfortran/16137
473         * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
474         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
475         scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
476         * config.h.in: Regenerate.
477         * configure: Regenerate.
478
479         * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
480         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
481         nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
482         implementations for targets that don't support C99 float functions.
483
484 2004-08-01  Roger Sayle  <roger@eyesopen.com>
485
486         * io/write.c (write_float): Use the slightly more portable isnan
487         in preference to isinf.
488
489 2004-07-18  Bud Davis  <bdavis9659@comcast.net>
490
491         * configure.ac: Add check for LFS support. 
492         * configure: Regenerate
493
494 2004-07-11  Paul Brook  <paul@codesourcery.com>
495
496         PR fortran/16303
497         * m4/cexp.m4 (carg): Return -pi to pi.
498         * generated/exp_c?.c: Regenerate.
499
500 2004-07-08  Andreas Krebbel  <krebbel1@de.ibm.com>
501
502         PR fortran/16291
503         * libgfortran/io/write.c: (write_float): Added length check.
504         Remove pointless memset calls.
505
506 2004-07-04  Bud Davis  <bdavis9659@comcast.net>
507             Paul Brook  <paul@codesourcery.com>
508
509         PR fortran/15472
510         * io/transfer.c(us_write): set recl for seq unform writes to max size.
511         * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
512         * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at 
513         right time.
514         * io/unix.c(is_seekable): set based upon the file/device, not the
515         method being used to access it (fd or mmap).
516         * io/unix.c(fd_flush): don't set file_size if !seekable.
517         * io/unix.c(fd_truncate: ditto.
518
519 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
520         Paul Brook  <paul@codesourcery.com>
521
522         PR fortran/15280
523         PR fortran/15665
524         * libgfortran.h (gfc_strlen_type): Define.
525         * intrinsics/args.c (getarg): Rename ...
526         (getarg_i4): ... to this.
527         (getarg_i8, get_command_argument_i4, get_command_argument_i8,
528         get_command_i4, get_command_i8): New functions.
529
530 2004-07-04  Matthias Klose  <doko@debian.org>
531
532         * libtool-version: New.
533         * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
534         * Makefile.in: Regenerate.
535         * configure.ac: Remove libtool_VERSION macro
536         * configure: Regenerate
537
538 2004-06-30  Steve Kargl  <sgk@troutmask.apl.washington.edu>
539             Steven Bosscher  <stevenb@suse.de>
540
541         * intrinsics/rand.c (rand): Wrap the irand() call from the previous
542         commit in prefix.
543
544 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
545         Paul Brook  <paul@codesourcery.com>
546
547         * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
548         comments.
549         * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
550
551 2004-06-27  Bud Davis  <bdavis9659@comcast.net>
552
553         PR gfortran/12839
554         * io/write.c (write_float): check signbit for Infinity.
555
556 2004-06-26  Bud Davis  <bdavis9659@comcast.net>
557
558         PR gfortran/16196
559         * unix.c(regular_file): create file if it does not exist.
560
561 2004-06-24  Andrew Pinski  <apinski@apple.com>
562
563         * configure.ac: Remove check for libmx.
564         * configure: Regenerate.
565
566 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
567
568         PR fortran/15750
569         * inquire.c (st_inquire): Add comment
570         * io.h (st_parameter): Add iolength.
571         (st_iolength, st_iolength_done): Declare.
572         * transfer.c (iolength_transfer, iolength_transfer_init,
573         st_iolength, st_iolength_done): New functions.
574
575 2004-06-21  Steven G. Kargl  <kargls@comcast.net>
576
577         * etime.c (etime_sub): Remove array rank check;
578         Add check for sufficient space.
579
580 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
581
582         PR gfortran/16080
583         * io/list_read.c(set_value): fixed spelling.
584
585 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
586
587         PR gfortran/16080
588         * io/list_read.c(set_value): don't copy if the string is null.
589
590 2004-06-14  Bud Davis  <bdavis9659@comcast.net>
591
592         PR gfortran/15292
593         * intrinsics/c99_functions.c: Use fpclassify if it exists.
594
595 2004-06-13  Paul Brook  <paul@codesourcery.com>
596
597         * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
598         * configure.ac: Add checks for nextafter and nextafterf.
599         * Makefile.in, config.h.in, configure: Regenerate.
600         * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
601         * intrinsics/rand.c (rand): Use normalize_r4_i4.
602         * intrinsics/random.c (random_r4): Use normalize_r4_i4.
603         (random_r8): Use normalize_r8_i8.
604         * runtime/normalize.c: New file.
605
606 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
607             Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
608
609         * random.c: Fix several spelling and formatting mistakes in 
610         comments.
611         (random_r8): Fix loop to make random numbers range in [0,1(.
612         
613
614 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
615
616         * random.c (random_r4): Burn a random number.
617         (random_r8): fix infinite loop.
618         
619 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
620       Steve Kargl  <sgk@troutmask.apl.washington.edu>
621
622         PR gfortran/15292
623         * intrinsics/c99_functions.c: New file.
624         * Makefile.am: Add new file.
625         * configure.ac: Added test for round/roundf.
626         * Makefile.in: Regenerate.
627         * configure: Regenerate.
628         * configure.h.in: Regenerate.
629
630 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
631
632         * Makefile.am: Add rand.c and etime.c
633         * Makefile.in: Regenerated.
634         * aclocal.in: Regenerated.
635         * cpu_time.c (second_sub, second): New functions.
636         * rand.c (irand, rand, srand): New file.
637         * etime.c (etime_sub, etime): New file.
638
639 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
640             Steven Bosscher  <stevenb@suse.de>
641
642         PR fortran/14923
643         * intrinsics/date_and_time.c: New file.
644         * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
645         * Makefile.in, aclocal.m4: Regenerate.
646         * libgfortran.h: Prototype date_and_time().
647
648 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
649
650         PR fortran/15665
651         * intrinsics/args.c: Implement GETARG and IARGC.
652         * Makefile.am: Add it.
653         * Makefile.in: Regenerate.
654
655 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
656
657         PR gfortran/12839
658         * io/write.c(write_float): Format inf and nan IAW F2003.
659
660 2004-06-09  Bud Davis  <bdavis9659@comcaste.net>
661
662         PR gfortran/14897
663         * io/transfer.c (formatted_transfer): position is unique
664          for T and TL edit descriptors.
665         (data_transfer_init): set record length to size of internal
666          file.
667
668 2004-06-09  Bud Davis  <bdavis9659@comcast.net>
669
670         PR gfortran/15755
671         * io/backspace.c(st_backspace): call correct routine for
672         formatted and un-formatted units.
673
674 2004-05-30  Andreas Jaeger  <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
675
676         PR gfortran/11800
677         * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
678         (lib_LTLIBRARIES): Rename to ...
679         (toolexeclib_LTLIBRARIES): this for multilib support.
680         * configure.in: Rename to ...
681         * configure.ac: this.  Update to modern autoconf style, enable
682         multilibs, support --enable-version-specific-runtime-libs.
683         * Makefile.in: Regenerated.
684         * configure: Regenerated.
685         * aclocal.m4: Regenerated.
686
687 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
688
689         * libgfortran.h (random_seed): Update prototype.
690         * intrinsics/random.c: Disable old implementation and add new one.
691
692 2004-05-30  Andreas Jaeger  <aj@suse.de>
693
694         * intrinsics/random.c: Include unistd.h for close and read
695         prototypes, remove unneeded inclusion of assert.h.
696
697         * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
698         unneeded inclusion of assert.h.
699
700 2004-05-27  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
701
702         PR fortran/15234
703         * intrinsics/associated.c: Remove enum.
704         (associated): Replace TRUE/FALSE by 1/0.
705
706 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
707
708         * random.c (random_seed): Use correct variable.
709
710 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
711
712         * intrinsics/system_clock: New file.
713         * Makefile.am: Add intrinsics/system_clock.c.
714         * Makefile.in: Regenerate.
715
716 2004-05-21  Roger Sayle  <roger@eyesopen.com>
717
718         * io/format.c (parse_format_list): Allow the comma after a string
719         literal to be optional.
720
721 2004-05-18  Paul Brook  <paul@codesourcery.com>
722         Feng Wang  <fengwang@nudt.edu.cn>
723
724         * Makefile.am (i_pow_c): Set it. Add build rule.
725         (gfor_built_src): Use it.
726         (m4_files): add m4/pow.m4.
727         * Makefile.in: Regenerate.
728         * m4/pow.m4: New file.
729         * generated/pow_*.c: Regenerate.
730
731 2004-05-18  Paul Brook  <paul@codesourcery.com>
732
733         * Makefile.am: Remove references to types.m4.
734         * m4/iparm.m4: Merge with types.m4.
735         * m4/types.m4: Remove.
736         * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
737         m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
738         m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
739         m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
740         m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
741         m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
742         Update to use new iparm.m4.
743         * generated/*.c: Regenerate.
744
745 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
746
747         PR fortran/15235
748         * gfortran.h (offset_t): Rename to ...
749         (gfc_offset): ... this.
750         * io/backspace.c (formatted_backspace, unformatted_backspace),
751         io/io.h (stream, gfc_unit, global_t, file_length, file_position),
752         transfer.c (us_read, us_write, next_record_r, next_record_w),
753         io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
754         fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
755         mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
756         mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
757         occurences of offset_t by gfc_offset.
758
759 2004-05-16  Paul Brook  <paul@codesourcery.com>
760
761         * io/format.c (write_real): Don't include padding in format.
762
763 2004-05-16  Paul Brook  <paul@codesourcery.com>
764
765         * io/format.c (format_lex): Make c an int.
766
767 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
768         Paul Brook  <paul@codesourcery.com>
769
770         * io/write.c (write_logical): Don't print extra blank.
771         (write_integer): Base field width on kind.
772         (list_formatted_write): Output initial blank.
773
774 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
775
776         * io/io.h (flush): Add prototype.
777         * io/transfer.c (finalize_transfer): Flush partial records.
778         * io/unix.c (flush): New function.
779
780 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
781
782         PR fortran/15234
783         * io/io.h (unit_t): Rename to ...
784         (gfc_unit) ... this.
785         (unit_root, current_unit, find_file, find_unit, get_unit): Now
786         of type gfc_unit.
787         (delete_file, insert_unit, close_unit): Argument now of type
788         gfc_unit.
789         * backspace.c (st_backspace), close.c (st_close), endfile.c
790         (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
791         (test_endfile, edit_modes, new_unit, already_open, st_open),
792         rewind.c (st_rewind), transfer.c (current_unit), unit.c
793         (internal_unit, unit_cache, rotate_left, rotate_right, insert,
794         insert_unit, delete_root, delete_treap, delete_unit, find_unit,
795         get_unit, init_units, close_unit), unix.c (find_file0,
796         find_file, delete_file): Replace all occurences of unit_t by
797         gfc_unit.
798
799 2004-05-15  Bud Davis  <bdavis9659@comcast.net>
800
801         PR fortran/15311
802         * io/write.c (write_a): right justify A edit output.
803
804 2004-05-14  Bud Davis  <bdavis9659@comcast.net>
805
806         PR fortran/15149
807         * libgfortan.h,intrinsics/random.c: Made random_seed visible.
808         * runtime/main.c(init): Call random_seed as part of MAIN init.
809
810 2004-05-13  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
811
812         * io/format.c: (parse_format_list): No comma is required after
813         P descriptor.
814
815 2004-05-13  Bud Davis  <bdavis9659@comcast.net>
816
817         PR fortran/15204
818         * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
819
820 2004-05-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
821             Steven Bosscher  <stevenb@suse.de>
822
823         PR libfortran/15234
824         * libgfortran.h: Include <inttypes.h> if available.
825
826 2004-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
827
828         * io/unix.c (MAP_FAILED): Define if missing.
829         (mmap_alloc): Cast MAP_FAILED to char *.
830         (mmap_open): Likewise.
831
832 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
833
834         * generated/_abs_i8.f90: New file.
835         * generated/_abs_c4.f90: New file.
836         * generated/_abs_c8.f90: New file.
837         * Makefile.am: Add them.
838         * Makefile.in: Regenerate.
839 `
840 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
841
842         PR fortran/14056
843         * generated/_abs_i4.f90: New file.
844         * Makefile.am: Add it.
845         * Makefile.in: Regenerate.
846
847 2004-04-25  Bud Davis  <bdavis9659@comcast.net>
848
849         PR fortran/14942
850         * io/list_read.c(list_formatted_read): finish consuming the
851         spaces and seperators at eoln to get ready for next item.
852
853 2004-04-23  Bud Davis  <bdavis9659@comcast.net>
854
855         PR fortran/15113
856         * io/read.c(read_a): Handle field width > destination and no field width.
857
858 2004-04-22  Bud Davis  <bdavis9659@comcast.net>
859
860         PR fortran/14906
861         * io/format.c (format_item): gracefully handle a ')'
862         when it is the first character encountered in the string.
863
864 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
865
866         PR fortran/14904
867         * io/transfer.c (next_record): Update last_record when
868         more than one record is written to a direct access file
869         with one write statement.
870
871 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
872
873         PR fortran/14901
874         * io/transfer.c (next_record_w) : No '\n' if internal.
875         * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
876
877 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
878
879         * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
880         Will need to change this later to support direct access files > 2gb.
881
882 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
883
884         PR gfortran/14762
885         * io/transfer.c (next_record_r) : Skip to next record.
886
887 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
888
889         PR gfortran/14836
890         * io/transfer.c (next_record): Update last_record for DIRECT
891
892 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
893
894         PR gfortran/14837
895         * io/unix.c (find_file0): Use fd field of struct
896
897 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
898
899         PR 14831
900         * io/inquire.c (inquire_via_unit): Changed return string for
901         BLANK=NULL. Use correct variable for ACTION.
902
903 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
904
905         PR 14746
906         * io/read.c (read_f): Allow a decimal without a leading digit.
907         * io/write.c (output_float): remove a leading '0' to keep from
908         overflowing the field (F edit descriptor).
909
910 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
911
912         PR gfortran/14565
913         * io/open.c (new_unit),
914         * io/io.h : new_unit is now visible
915         * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
916         * io/transfer.c (data_transfer_init): remove compile warnings.
917         * io/rewind.c (st_rewind): ftruncate if writing.
918
919 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
920
921         * write.c (write_l): Use extract_int for 'L' edit descriptor.
922
923 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
924
925         PR 13919
926         * io/io.h (global_t):
927         * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
928           Move eof_jmp to a global structure.
929         * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
930
931 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
932
933         * m4/cexp.m4 (csqrt): Actually use the passed value.
934         * generated/exp_c?.c: Regenerate.
935
936 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
937
938         PR 12921
939         * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
940         * open.c (new_unit): Moved test for positioned direct access error.
941         (init_units): Corrected calculation of max records.
942
943 2004-02-06  Feng Wang  <fengwang@nudt.edu.cn>
944
945         * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
946         * Makefile.in: Regenerate.
947         * m4/dotprodc.m4: New file. Implement complex dot_product.
948         * m4/dotprod.m4: Delete the complex implementation.
949         * generated/dotprod_*: Update.
950
951 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
952
953         * transfer.c (write_constant_string): Do not delete H's in hollerith
954         formats.
955
956 2004-01-05  Andrew Pinski  <apinski@apple.com>
957
958         * configure.in: Check for csin in -lmx also.
959         * configure: Regenerate.
960
961 2004-01-01  Paul Brook  <paul@codesourcery.com>
962
963         * io/list_read.c (find_nml_node): Make static.
964         (match_namelist_name): Ditto.
965         * io/read.c (convert_precision_real): Make static, fix spelling.
966         * io/transfer.c (extract_real): Remove unused prototype.
967         (st_set_nml_var): Make static.
968         * io/write.c (extract_real): Make static.
969
970 2003-12-12  Huang Chun <chunhuang73@hotmal.com>
971
972         * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
973
974 2003-12-05  Melvin Hadasht  <melvin.hadasht@free.fr>
975
976         * io/transfer.c (data_transfer_init): Give a runtime error for list
977         formatted reads and writes from/to files opened for unformatted IO.
978
979 2003-11-30  Paul Brook  <paul@nowt.org>
980
981         * runtime/memory.c (push_context): Remove.
982         (pop_context): Remove.
983         * libgfortran.h: Remove prototypes.
984
985 2003-11-27  Paul Brook  <paul@nowt.org>
986
987         * runtime/memory.c (deallocate): Nullify pointer after freeing.
988
989 2003-11-27  Paul Brook  <paul@nowt.org>
990
991         * intrinsics/string_intrinsics.c: Use new memory allocation interface.
992         * libgfortran.h: Ditto.
993         * m4/in_pack.m4: Ditto.
994         * runtime/in_pack_generic.c: Ditto.
995         * runtime/memory.c: Ditto.
996
997 2003-11-26  Richard Henderson  <rth@redhat.com>
998
999         * m4/exponent.m4, m4/fraction.m4: New.
1000         * m4/nearest.m4, m4/set_exponent.m4: New.
1001         * generated/*: Update.
1002         * Makefile.am: Add them.
1003         (AM_CFLAGS): New.  Use -std=gnu99.
1004         * Makefile.in: Regenerate.
1005
1006 2003-11-08  Paul Brook  <paul@nowt.org>
1007
1008         PR fortran/12704
1009         * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
1010         * m4/maxloc1.m4: Ditto.
1011         * m4/minloc0.m4: Ditto.
1012         * m4/minloc1.m4: Ditto.
1013         * m4/ifunction.m4: Set return value for zero sized arrays.
1014         * m4/iforeach.m4: Ditto.
1015         * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
1016         m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
1017         * generated/*: Update.
1018
1019 2003-10-30  Toon Moene  <toon@moene.indiv.nluug.nl>
1020
1021         PR fortran/12702
1022         * io/list_read.c (eat_spaces): Treat tab as space.
1023
1024 2003-10-30  Lars Segerlund  <Lars.Segerlund@comsys.se>
1025
1026         * intrinsics/random.c: Add reference to paper containing algorithm.
1027         (random_seed): Extra error checking and proper handling of arrays.
1028         (arandom_r4, arandom_r8): Implement.
1029
1030 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
1031
1032         PR fortran/12703
1033         * runtime/memory.c (allocate_size): Allow allocation
1034         of zero-sized objects.
1035
1036 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
1037
1038         PR fortran/12701
1039         * open.c (new_unit): Open without a file name opens
1040         a file with name fort.<unit>.
1041
1042 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
1043
1044         * intrinsics/cshift0.c: New file.
1045         * m4/cshift1.m4: New file
1046         * generated/cshift*.c: New files.
1047         * Makefile.am: Add them.
1048         * Makefile.in: Regenerate.
1049
1050 2003-10-12  XiaoQiang Zhang  <zhangapache@yahoo.com>
1051
1052         * io/list_read.c (read_character): Remove unwanted call to free_saved.
1053
1054 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
1055
1056         * intrinsics/string_intrinsics.c (string_trim): New function.
1057         (string_repeat): New function.
1058
1059 2003-10-11  Paul Brook  <paul@nowt.org>
1060
1061         * intrinsics/dprod_r8.f90: New file.
1062         * Makefile.am (gfor_specific_src): Add it.
1063         (gfor_built_specific_src): Rename from gfor_build_specific_c.
1064         Add new intrinsics.
1065         (gfor_specific2_src): Rename from gfor_built_specific2_c.
1066         Add new intrinsics.
1067         * Makefile.in: Regenerate.
1068         * generated/_aint_*.f90: New files.
1069         * generated/_anint*.f90: New files.
1070         * generated/_atan2*.f90: New files.
1071         * generated/_mod*.f90: New files.
1072
1073 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1074
1075         * intrinsics/selected_kind.f90: New file.
1076         * Makefile.am: Add it.
1077         * Makefile.in: regenerate.
1078
1079 2003-09-19  Lars Segerlund  <Lars.Segerlund@comsys.se>
1080         Paul Brook  <paul@nowt.org>
1081
1082         * intrinsics/random.c: New file.
1083         * Makefile.am (gfor_hemper_src): Add it.
1084         (gfor_specific_c): Fix typo.
1085
1086 2003-09-19  Paul Brook  <paul@nowt.org>
1087
1088         * All: rename g95->gfc.
1089
1090 2003-09-18  XiaoQiang Zhang  <zhangapache@yahoo.com>
1091
1092         * io/write.c (output_float): Fix bug of FMT_E, Add comments.
1093
1094 2003-09-09  XiaoQiang Zhang  <zhangapache@yahoo.com>
1095
1096         * io/write.c (write_float): Dectection of positive infinite number,
1097         Not a Number(NaN) and negative infinite number.
1098         (ioutput_float): Bug fix for FMT_E and FMT_D processing to
1099         output a very_very small number ( < 0.1e-100 ).
1100
1101 2003-09-07  XiaoQiang Zhang  <zhangapache@yahoo.com>
1102
1103         * libgfortran.h (xtoa, itoa): Parameter modified.
1104         * io/io.h (namelist_info): Declaration to support namelist I/O
1105         (st_parameter): Add namelist related component
1106         (ionml, empty_internal_buffer, st_set_nml_var_int,
1107         st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
1108         st_set_nml_var_log): Declaration
1109         (set_integer, set_integer): Parameter changed
1110         * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
1111          fnodes
1112         (parse_format_list): Fix bug about FMT_SLASH
1113         * io/list_read.c (push_char): Totally clear old saved_string, zeroize
1114         newly allocated saved_string
1115         (next_char): Add detection of End_Of_Line support
1116         (convert_integer): Now can process 64 bits interger
1117         (read_real): Bug fixed
1118         (init_at_eol, find_nml_node, match_namelist_name): Add new functions
1119         (match_namelist_name): New implemention
1120         * io/lock.c (ionml): New global variable
1121         (library_end): Free memory in ionml
1122         * io/open.c (st_open): Variable initializtion
1123         * io/read.c (max_value): 64 bits interger support
1124         (convert_precsion_real): New procedure to replace "strtod" with more
1125          features
1126         (read_f, read_radix): Input bug fix
1127         * io/transfer.c: (sf_seen_eor): New static variable
1128         (read_sf): Zeroize base buffer; fix bugs: single read statement can
1129         not get input in mutli line when read from stdin
1130         (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
1131          request
1132         (data_transfer_init): Clear internal buffer for Internel File I/O.
1133         Internal File now worked. Detect some error condition for namelist.
1134         Some minor bug fix
1135         (next_record_w): Internal file and Namelist I/O support.
1136         (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
1137         st_set_nml_var_complex, st_set_nml_var_log): Implemention.
1138         * io/unit.c (implicit_unit): Deletion
1139         (get_unit): Now cannot open a unit implicitly.
1140         * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
1141         mapped buffer.
1142         (mem_alloc_r_at): Internal file I/O support added
1143         (empty_internal_buffer): New function
1144         * io/write.c (extract_int): Support 64 bits interger processing
1145         (output_float): Varibale initialization
1146         (write_float): Infinite real number detection.
1147         (write_int): 64 bits integer I/O support
1148         (write_decimal): New function to output decimal number
1149         (otoa, btoa): Better implemention and 64 bits interger support
1150         (namelist_write): New function
1151         * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
1152         interger support
1153
1154 2003-08-15  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1155
1156         * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
1157         get_mem ): Add attribute.
1158         * intrinsics/spread_generic.c (__spread): Fix spelling.
1159         * io/inquire.c (inquire_via_filename): Add const.
1160         * io/io.h (sys_exit): Add attribute.
1161         * io/io.h (move_pos_offset): Add move_pos_offset.
1162         * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
1163         inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
1164         inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
1165         write_en, write_es, write_f, write_i, write_l, write_o, write_x,
1166         write_z): Add const.
1167         * io/read.c (convert_real): Add const.
1168         * io/transfer.c (type_name): Add const.
1169         * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
1170         inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
1171         inquire_read, inquire_write, inquire_readwrite): Add const.
1172         * io/write.c (output_float): Remove unused variable.
1173         * io/write.c (write_a, extract_int, extract_real, output_float,
1174         write_float, write_int, write_i, write_b, write_o, write_z, write_d,
1175         write_e, write_f, write_en, write_es, write_logical, write_integer,
1176         write_character, write_real, write_complex): Add const.
1177         * runtime/error.c (rtoa): Remove unused variable.
1178         * runtime/select.c (select_string): Add const.
1179         * runtime/stop.c (stop_string): Add const.
1180
1181 2003-08-10  Paul Brook  <paul@nowt.org>
1182
1183         * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
1184         (FFLAGS): Add -fno-underscoring.
1185         * Makefile.in: Regenerate.
1186         * intrinsics/abort.c: New file.
1187
1188 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
1189
1190         * fmain.c (main): Do not call init and cleanup; call set_args instead.
1191         * libgfortran.h (init, cleanup): Remove declarations.
1192         (set_args): Add declaration.
1193         * runtime/main.c (init, cleanup): Make them static, and give them
1194         the constructor and destructor attributes.
1195         (set_args): New function.
1196
1197 2003-08-10  Paul Brook  <paul@nowt.org>
1198
1199         * intrinsics/strinf_intrinsics.c (compare_string): Return value based
1200         on which string is longest.
1201
1202 2003-08-10  Paul Brook  <paul@nowt.org>
1203
1204         * Makefile.am (EXTRA_DIST): Remove old files.
1205         * Makefile.in: Regenerate.
1206
1207 2003-07-26  Paul Brook  <paul@nowt.org>
1208
1209         Rename library to libgfortran.
1210         * libgfortran.h: Change prefix to _libgfortran_.
1211
1212 2003-07-24  Paul Brook  <paul@nowt.org>
1213
1214         * configure.in: Don't pull in system libtool.  Use toplevel
1215         auxiliary files.
1216
1217 2003-07-22  Paul Brook  <paul@nowt.org>
1218
1219         Regenerate all configury files.
1220
1221 2003-07-09  Chun Huang  <compiler@sohu.com>
1222
1223         * intrinsics/string_intrinsic.c (string_scan): New function.
1224         (string_verify): New function.
1225
1226 2003-06-25  Paul Brook  <paul@nowt.org>
1227
1228         * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
1229         (mem_seek): Don't bother setting physical_offset.
1230
1231 2003-06-20  Paul Brook  <paul@nowt.org>
1232
1233         * libgfor.h (stop_numeric): Declare.
1234         * runtime/pause.c: New file.
1235         * Makefile.am: Add it.
1236
1237 2003-06-08  Paul Brook  <paul@nowt.org>
1238
1239         * m4/cexp.m4 (cabs): Use correct typed version.
1240         (csqrt): New function.
1241
1242 2003-06-07  Canqun Yang  <canqun@yahoo.com.cn>
1243
1244         Spotted by Benjamin and Tobias:
1245         * io/list_read.c: Add Separator '\t'.
1246         (parse_real, read_real): Accept real values starting with an optional
1247         sign follows a decimal point.
1248
1249 2003-06-06  Steven Bosscher  <steven@gcc.gnu.org>
1250
1251         * Makefile.am: Don't put cmath objects in subdir.
1252         * configure.in: Rename MATHOBJ to MATH_OBJ.
1253
1254 2003-06-02  Kejia Zhao  <Kejia_zh@yahoo.com.cn>
1255
1256         * intrinsics/associated.c: New file.
1257         * Makefile.am: Add it. Regenerate Makefile.in.
1258         * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
1259         G95_DESCRIPTOR_DTYPE.
1260
1261 2003-06-01  Canqun Yang  <canqun@yahoo.com.cn>
1262
1263         * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
1264         (calculate_G_format): Rewrite it to eliminate an infinte loop and set
1265         the scale_factor to 0 for F editing.
1266
1267 2003-05-11  Tobias Schlüter  <innenminister@gmx.de>
1268
1269         * libgfor.h: Only include stdint.h if it exists.
1270
1271 2003-05-07  Paul Brook  <paul@nowt.org>
1272
1273         * libgfor.h: Use stdint.h types.
1274         * intrinsics/ishift.c: Ditto.
1275         * runtime/memory.c (malloc_t): Reorder fields for better alignment.
1276
1277 2003-05-05  Steven Bosscher  <steven@gcc.gnu.org>
1278
1279         * libgfor.h (offsetof): Define if nobody else does.
1280         * runtime/memory.c (HEADER_SIZE): Use it.
1281
1282 2003-05-01  Tobias Schlüter  <innenminister@gmx.de>
1283
1284         * configure.in: Require autoconf 2.54.
1285
1286 2003-04-28  Tobias Schlüter  <innenminister@gmx.de>
1287         Paul Brook  <paul@nowt.org>
1288
1289         * intrinsics/reshape_generic.c: Copy the whole element, not just the
1290         first byte.
1291         * m4/transpose.m4: New file.
1292         * Makefile.am: Add them.
1293         Regenerate generated files.
1294
1295 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1296
1297         * io/format.c (parse_format_list): Allow 'X' without integer
1298         prefix.  This is an extension.  Interpretation is '1X'.
1299
1300 2003-04-18  Tobias Schlüter  <Tobias.Schlueter@physik.uni-muenchen.de>
1301
1302         * io/format.c (parse_format_list): Allow '0P'.
1303
1304 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1305
1306         * Makefile.in: Re-regenerate for automake 1.7.3.
1307
1308 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
1309
1310         Port implementation for CHARACTER SELECT from Andy's tree.
1311         * runtime/select.c: New file
1312         * Makefile.am: Add it.
1313         * Makefile.in: Regenerate.
1314
1315 2003-04-17  Xiaoqiang Zhang <zhangapache@yahoo.com>
1316
1317         * io/transfer.c (formatted_transfer): Modified
1318         * io/unix.c (move_pos_offset): New Function.
1319         * io/format.c (parse_format_list): Modified.
1320
1321 2003-04-15  Xiaoqiang Zhang <zhangapache@yahoo.com>
1322
1323         * io/write.c (write_float,write_real): New implemention of
1324         FMT_G and default float editing.
1325         (calculate_exp,calculate_G_format,output_float): New Function.
1326         (write_float,write_real,write_logical): Modified
1327         * libgfor.h (default_rtoa): Remove Declaration.
1328         * runtime/error.c (default_rtoa): Remove Function.
1329
1330 2003-04-15  Steven Bosscher  <steven@gcc.gnu.org>
1331
1332         Spotted by Yang:
1333         * io/write.c (extract_real): Add missing break statement.
1334
1335 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
1336
1337         * cpu_time.c: Make sure we have a definition of HZ.  Don't
1338         rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
1339
1340 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
1341             Paul Brook  <paul@nowt.org>
1342
1343         * configure.in: Check for process time headers and GETTIMEOFDAY.
1344         * makefile.am: Add intrinsics/cpu_time.c.
1345         * acinclude.m4: New file.
1346         * intrinsics/cpu_time.c: New file.
1347         * m4/dotprodl.m4: Fix typo.
1348         Regenerate generated files.
1349
1350 2003-04-11  Xiaoqiang Zhang <zhangapache@yahoo.com>
1351
1352         * io/write.c (extract_real): Ouput floating point value.
1353         (write_float): New Function.
1354         (write_e, write_f, write_en, write_es): Modified
1355         * io/transfer.c (formatted_transfer): Modified.
1356         * libgfor.h (default_rtoa): Declaration.
1357         (rtoa): Declaration.
1358         * runtime/error.c (default_rtoa): New Function.
1359         (rtoa): New Function.
1360
1361 2003-04-05  Paul Brook  <paul@nowt.org>
1362
1363         * intrinsics/spread_generic.c: New file.
1364         * Makefile.am: Add it. Regenerate Makefile.in.
1365
1366 2003-03-29  Paul Brook  <paul@nowt.org>
1367
1368         * intrinsics/pack_generic.c: New file.
1369         * intrinsics/unpack_generic.c: New file.
1370         * Makefile.am: Add them. Regenerate Makefile.in.
1371
1372 2003-03-25  Paul Brook  <paul@nowt.org>
1373
1374         * intrinsics/eoshift0.c: New file.
1375         * intrinsics/eoshift2.c: New file.
1376         * m4/eoshift1.m4: New file.
1377         * m4/eoshift3.m4: New file.
1378         * Makefile.am: Add them.
1379         * in_unpack_generic.c: Initialize src.
1380         Regenerate generated files.
1381
1382 2003-03-14  Paul Brook  <paul@nowt.org>
1383
1384         * m4/shape.m4: Work properly with array temporaries.
1385         * m4/in_pack.m4: Skip redundant checks for array temporaries.
1386         * runtime/in_pack_generic.c: Ditto.
1387
1388 2003-03-12  Paul Brook  <paul@nowt.org>
1389
1390         * m4/shape.m4: Work properly with noncontiguous arrays.
1391
1392 2003-03-08  Paul Brook  <paul@nowt.org>
1393
1394         * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1395         * runtime/in_pack_generic.c: Ditto.
1396
1397 2003-02-08  Paul Brook  <paul@nowt.org>
1398
1399         * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1400         * io/close.c (st_close): Return void.
1401         * io/open.c (st_open): Return void.
1402         * libgfor.h (g95_array_char): Declare.
1403         (internal_malloc_size): Ditto.
1404         (internal_pack*, internal_unpack*): Ditto.
1405         * m4/in_pack.m4: Allocate storage if neccessary.  Fix logic for packed
1406         arrays.
1407         * m4/in_unpack.m4: Include file fixes.
1408         * m4/reshape.m4: Increment the correct source pointer.
1409         * Makefile.am (maxloc): Fix typo.
1410         * runtime/in_pack_generic.c: Call optimized functions. Allocate
1411         storage if neccessary. Fix logic for packed arrays.
1412         * runtime/in_unpack_generic.c: Call optimized functions.
1413         * runtime/main.c: Use runtime_error to report errors.
1414         * memory.c (internal_malloc_size): Make non-static.
1415
1416 2003-02-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1417
1418         * reshape_packed.c, lock.c: Add #include <string.h>.
1419         * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1420         environ.c, error.c, memory.c, string.c: Add const.
1421         * error.c (show_locus): Add void.
1422
1423 2003-02-21  Paul Brook  <paul@nowt.org>
1424
1425         * m4/in_pack.m4: Avoid returning const * parameter.
1426         * Makefile.am: Only regenerate files in maintainer mode.
1427
1428 2003-02-20  Paul Brook  <paul@nowt.org>
1429
1430         Add array repacking support functions.
1431         * m4/in_pack.m4, m4/in_unpack.m4: New files.
1432         * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1433         * Makefile.am: Build them.  Regenerate configury files.
1434         * generated/: New directory for generated files (need to move
1435         everything else there).
1436
1437 2003-02-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1438
1439         * m4/cexp.m4: Fix typo.
1440
1441 2003-01-26  Paul Brook  <paul@nowt.org>
1442
1443         * intrinsics/: Add missing generated files.
1444
1445 2003-01-26  Paul Brook  <paul@nowt.org>
1446
1447         * Makefile.am: Put -I before the filename.
1448
1449 2003-01-24  Paul Brook  <paul@nowt.org>
1450
1451         * configure.in: Add AM_MAINTAINER_MODE.
1452
1453 2003-01-23  Paul Brook  <paul@nowt.org>
1454
1455         * configure.in, Makefile.am: Modify to work with unmodified autoconf
1456         and auotmake.
1457         Also regenerate other configury files.
1458
1459 2003-01-21  Paul Brook  <paul@nowt.org>
1460
1461         * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1462
1463 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1464
1465         * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1466         Don't include "alloca.h".
1467
1468 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1469
1470         * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1471         * Makefile.am: Adjust file name.
1472         * Makefile.in: Regenerate.
1473         * gfortypes.h: Kill, include everything in...
1474         * libgfor.h: ...here.  Include config.h
1475         * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1476         intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1477         intrinsics/reshape_packed.c, intrinsics/size.c,
1478         m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1479         for prefix for all functions instead of hardcoded.
1480
1481 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1482
1483         * io/lock.c (library_end): Propagate library return
1484         code.
1485
1486 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1487
1488         Port fixes from Andy's tree:
1489         * io/read.c (read_decimal): Reverse sense of overflow
1490         comparison during integer reads.
1491         * io/format.c (revert): Fix comment.
1492         (next_format): Fix format revision.
1493         * io/unix.c: Fix and simplify mmap version of stream
1494         functions.
1495
1496 2003-01-11  Paul Brook  <paul@nowt.org>
1497
1498         * configure, Makefile.in: Regenerate.
1499
1500 2003-01-11  Paul Brook  <paul@nowt.org>
1501
1502         * runtime/stop.c: Rewrite.
1503
1504 2003-01-08  Paul Brook  <paul@nowt.org>
1505
1506         * configure, Makefile.in: Regenerate.
1507
1508 2003-01-05  Paul Brook  <paul@nowt.org>
1509
1510         * (*.m4) Move to m4/.
1511         * intrinsics/string.c (_gfor_string_index): New Function.
1512
1513 2002-12-29  Paul Brook  <paul@nowt.org>
1514
1515         * intrinsics/reshape.*: New files.
1516         * gcc_config.patch: Update to new GCC configure system.
1517
1518 2002-10-10  Paul Brook  <paul@nowt.org>
1519
1520         * intrinsics/size.c: New file.
1521         * intrinsics/shape.m4: New file.
1522         * Makefile.am: Add above files.
1523
1524 2002-10-02  Paul Brook  <paul@nowt.org>
1525
1526         * fmain.c (main): Move here.
1527         * libgfor.c: From here.
1528         * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1529         * Makefile.am: Build libgforbegin.
1530         * gcc_config.patch: Remove stray -march=athlon.
1531         * dotprodl.m4: Fix use of L8_TO_L4 macro.
1532         * ifunction.m4: Move variable declarations to allow compilation with
1533         gcc < 3.0
1534         * specific.m4, specific4.m4: Fix typo typecode->type_code.
1535         * README: Document use of patch -p1.
1536
1537 2002-09-12  Paul Brook  <paul@nowt.org>
1538
1539         * math/*: Add complex math library functions.
1540         * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1541         * Makefile.am: Add details for above.
1542         * configure.in: Use AC_PROG_F95.  Test for the presence of csin.
1543
1544 2002-09-09  Paul Brook  <paul@nowt.org>
1545
1546         * libgfor.c (determine_endianness): Use an array rather than a struct.
1547         * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1548
1549 2002-09-09  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1550
1551         * libgfor.c: Add fatal signal handler.
1552         Romove superfluous abort() calls.
1553
1554 2002-09-07  Paul Brook <paul@nowt.org>
1555
1556         * Makefile.am, intrinsics: Major rewrite.
1557
1558 2002-09-02  Paul Brook <paul@nowt.org>
1559
1560         * Makefile.am: Added -I$(srcdir) to m4 rule.
1561
1562 2002-08-30  Paul Brook <paul@nowt.org>
1563
1564         * io/*: Integrated libgforio.
1565         * Makefile.am, configure.in: Make compatable with GCC. Build code for
1566         intrinsics in the intrisics directory.
1567         * intrinsics/intrinsics.m4: Move here. Strip directories from the
1568         filename. Add 'and' and 'all' intrinsics.
1569
1570 2002-08-17  Paul Brook <paul@nowt.org>
1571
1572         * ALL: First release as more than just a single file