OSDN Git Service

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