OSDN Git Service

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