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