OSDN Git Service

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