OSDN Git Service

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