2004-10-04 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / libgfortran / ChangeLog
blobc9567d76335662ce5fe2e71b168e041fe72a0b67
1 2004-10-04  Paul Brook  <paul@codesourcery.com>
2         Bud Davis  <bdavis9659@comcast.net>
4         PR fortran/17706
5         PR fortran/16434
6         * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
7         BN and BZ formats.
8         * io/write.c (output_float): Don't output minus zero.
10 2004-10-03  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
12         * intrinsics/abort.c ("libgfortran.h"): Move.
13         * intrinsics/date_and_time.c ("libgfortran.h"): Same.
14         * intrinsics/write.c ("libgfortran.h"): Same.
16 2004-09-26  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
18         PR libfortran/16137
19         * config.h.in (HAVE_POWF): Undefine.
20         * configure.ac: Check for 'powf' in library.
21         * configure: Regenerate.
22         * intrinsics/c99_functions.c (powf): New function.
24 2004-09-24  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
26         * intrinsics/etime.c (etime_): New function.
28 2004-09-21  Steven G. Kargl  <kargls@comcast.net>
30         * libgfortran.h: define gfc_alloca()
31         * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
33 2004-09-21  Bud Davis  <bdavis9659@comcast.net>
35         PR fortran/17286
36         * io/list_read.c (namelist_read): ignore spaces after 
37         the '=' for namelist reads.
39 2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
41         * config.h.in: Regenerate.
42         * configure: Regenerate.
43         * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
44         * unix.c: Include stdio.h.
45         (HAVE_SYS_MMAN_H): Check.
46         (PROT_READ, PROT_WRITE): Provide default definitions.
48 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
50         * intrincics/getcwd.c: New file.
51         * Makefile.am: Add getcwd.c.
52         * Makefile.in: Regenerated.
54 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
55         Paul Brook  <paul@codesourcery.com>
57         * intrinsics/env.c (getenv, get_environmental_variable): Remove
58         trailing white space.  Use alloca.  Honour trim_name.
60 2004-09-13  Bud Davis  <bdavis9659@comcast.net>
62         PR fortran/17090
64         * io/list_read.c (list_formatted_read): Handle trailing spaces
65         at end of line.
67 2004-09-06  Steven G. Kargl  <kargls@comcast.net>
69         * io/write.c (output_float): Typo in comment.  Remove debugging
70         printf.  Fix format for FP of form 1e10.
72 2004-09-03  Richard Henderson  <rth@redhat.com>
74         * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
75         copy_loop_double, copy_loop_ldouble): New.
76         (__cshift0): Make shift type ssize_t.  Use % operator instead of
77         div.  Use specialized versions of copy loop depending on the shape.
79 2004-09-02  Paul Brook  <paul@codesourcery.com>
81         * io/format.c (parse_format_list): Set repeat count for P descriptors.
82         * write.c (output_float): Fix condition.  Correctly handle nonzero
83         scale factor.
85 2004-09-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
87         * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
88         * mk-srk-inc.sh: Likewise.
90 2004-09-01  Paul Brook  <paul@codesourcery.com>
92         * runtime/error.c (generate_error): Set both iostat and
93         library_return.
95 2004-08-31  Paul Brook  <paul@codesourcery.com>
97         PR libfortran/16805
98         * io/list_read.c (next_char): Don't signal EOF for internal files.
99         * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
101 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
103         * io/unit.c: Separate copyright years by ','.
104         (compare, insert_unit, delete_unit, is_internal_unit, close_units):
105         Remove blank line in beginning of function.
106         (get_unit): Simplify code.
108 2004-08-31  Paul Brook  <paul@codesourcery.com>
110         * io/unit.c (get_unit): Remove superfluous if.
112 2004-08-31  Paul Brook  <paul@codesourcery.com>
114         * io/transfer.c (read_sf): Rename uinty to readlen.  Detect EOF.
115         (finalize_transfer): Move setjmp after namlist IO.
116         * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
118 2004-08-31  Paul Brook  <paul@codesourcery.com>
120         * list_read.c (eat_separator): Set at_eo when a '/' is seen.
122 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
124         * libgfortran.h: Replace 'gfc_strlen_type' by
125         'gfc_charlen_type'. Update comment accordingly.
126         * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
127         Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
129 2004-08-31  Paul Brook  <paul@codesourcery.com>
131         * libgfortran.h: Add comments.
133 2004-08-30  Richard Henderson  <rth@redhat.com>
135         * Makefile.am (gfor_helper_src): Split selected_kind.f90.
136         (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
137         (selected_int_kind.inc selected_real_kind.inc): New rules.
138         * Makefile.in: Regenerate.
139         * mk-sik-inc.sh, mk-srk-inc.sh: New files.
140         * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
141         include table of detected kinds.
142         * intrinsics/selected_real_kind.f90: Similarly.
144 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
145         Paul Brook  <paul@codesourcery.com>
147         * intrinsics/bessel.c: New file.
148         * intrinsics/erf.c: New file.
149         * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
150         * configure.ac: Test for C99 Bessel and Error functions.
151         * Makefile.in: Regenerate.
152         * config.h.in: Regenerate.
153         * configure: Regenerate.
155 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
156         Paul Brook  <paul@codesourcery.com>
158         * Makefile.am: Add intrinsics/getXid.c.
159         * configure.ac: Add tests for get{g,p,u}id.
160         * config.h.in: Regenerate.
161         * Makefile.in: Regenerate.
162         * configure: Regenerate.
164 2004-08-28  Paul Brook  <paul@codesourcery.com>
166         PR libfortran/17195
167         * libgfortran.h (rtoa): Remove prototype.
168         * runtime/error.c (rtoa): Remove.
169         * io/write.c (calculate_G_format): Don't add blanks if E format is
170         used.  Add correct number of blanks when exponent width is specified.
171         (output_float): Rewrite.
173 2004-08-27  Paul Brook  <paul@codesourcery.com>
175         * io/rewind.c (st_rewind): Reset unit to read mode.
177 2004-08-27  Bud Davis  <bdavis9659@comcast.net>
179         PR fortran/16597
180         * io/io.h: created typedef for unit_mode.
181         * io/io.h (gfc_unit): added mode to unit structure.
182         * io/transfer.c (data_transfer_init): flush if a write then
183         read is done on a unit (direct access files).
184         * io/rewind.c (st_rewind): Used unit mode instead of global.
186 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
188         PR fortran/17143        
189         * runtime/error.c (itoa): keep from overflowing during
190         mod operation by using unsigned variable.
192 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
194         PR fortran/17164
195         * runtime/string_intrinsics.c (string_index):check for
196         substring longer than string.
198 2004-08-24  David Edelsohn  <edelsohn@gnu.org>
200         * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
201         * Makefile.in: Rebuilt.
203 2004-08-23  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
205         * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
206         Fix formatting issues, update copyright years.
208 2004-08-21  Bud Davis  <bdavis9659@comcast.net>
210         PR 16908
211         * io/transfer.c (next_record_w): Do not blank pad.
212         * io/transfer.c (next_record): Take into account partial records.
214 2004-08-18  Victor Leikehman  <lei@il.ibm.com>
216         PR fortran/13278
217         * io/transfer.c (st_set_nml_var)
218         * io/write.c (namelist_write): Allow var_name and var_name_len to be
219         null. For strings, use string_length field instead of len.
220         * io/io.h (struct namelist_type): New field string_length.
221         (st_set_nml_var_char): New argument string_length.
223 2004-08-13  Bud Davis  <bdavis9659@comcast.net>
225         PR gfortran/16935
226         * io/open.c (st_open): use flags instead of the unit structure.
228 2004-08-10  Victor Leikehman  <lei@il.ibm.com>
230         * io/list_read.c (namelist_read): Convert variable names
231         to lower case, so that mixed-case names are recognized.
232         Don't read beyond terminating slash.
234 2004-08-09  Richard Henderson  <rth@redhat.com>
235             Roger Sayle  <roger@eyesopen.com>
237         * intrinsics/c99_functions.c (nextafterf): New implementation that
238         works correctly with denormalized numbers.
240 2004-08-09  Victor Leikehman  <lei@il.ibm.com>
242         * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
243         intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
244         Allocate space if return value has NULL in its data field.
245         * generated/*.c: Regenerate.
247 2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
249         * intrinsics/env.c: New file.
250         * Makefile.am: Add env.c to build.
251         * Makefile.in: Regenerate.
253 2004-08-05  Victor Leikehman  <lei@il.ibm.com>
255         PR libgfortran/16704
256         * io/read.c (read_radix): Understand letters f and F as hex digits.
258 2004-08-04  Victor Leikehman  <lei@il.ibm.com>
260         * libgfortran.h (array_t, size0) New declarations.
261         * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
262         space if return value descriptor has NULL in its data field,
263         and initialize bounds and stride.
264         * intrinsics/size.c (array_t, size0): Declarations moved to
265         libgfortran.h.
266         * generated/*.c: Regenerate.
268 2004-08-03  Roger Sayle  <roger@eyesopen.com>
270         PR libgfortran/16137
271         * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
272         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
273         scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
274         * config.h.in: Regenerate.
275         * configure: Regenerate.
277         * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
278         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
279         nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
280         implementations for targets that don't support C99 float functions.
282 2004-08-01  Roger Sayle  <roger@eyesopen.com>
284         * io/write.c (write_float): Use the slightly more portable isnan
285         in preference to isinf.
287 2004-07-18  Bud Davis  <bdavis9659@comcast.net>
289         * configure.ac: Add check for LFS support. 
290         * configure: Regenerate
292 2004-07-11  Paul Brook  <paul@codesourcery.com>
294         PR fortran/16303
295         * m4/cexp.m4 (carg): Return -pi to pi.
296         * generated/exp_c?.c: Regenerate.
298 2004-07-08  Andreas Krebbel  <krebbel1@de.ibm.com>
300         PR fortran/16291
301         * libgfortran/io/write.c: (write_float): Added length check.
302         Remove pointless memset calls.
304 2004-07-04  Bud Davis  <bdavis9659@comcast.net>
305             Paul Brook  <paul@codesourcery.com>
307         PR fortran/15472
308         * io/transfer.c(us_write): set recl for seq unform writes to max size.
309         * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
310         * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at 
311         right time.
312         * io/unix.c(is_seekable): set based upon the file/device, not the
313         method being used to access it (fd or mmap).
314         * io/unix.c(fd_flush): don't set file_size if !seekable.
315         * io/unix.c(fd_truncate: ditto.
317 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
318         Paul Brook  <paul@codesourcery.com>
320         PR fortran/15280
321         PR fortran/15665
322         * libgfortran.h (gfc_strlen_type): Define.
323         * intrinsics/args.c (getarg): Rename ...
324         (getarg_i4): ... to this.
325         (getarg_i8, get_command_argument_i4, get_command_argument_i8,
326         get_command_i4, get_command_i8): New functions.
328 2004-07-04  Matthias Klose  <doko@debian.org>
330         * libtool-version: New.
331         * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
332         * Makefile.in: Regenerate.
333         * configure.ac: Remove libtool_VERSION macro
334         * configure: Regenerate
336 2004-06-30  Steve Kargl  <sgk@troutmask.apl.washington.edu>
337             Steven Bosscher  <stevenb@suse.de>
339         * intrinsics/rand.c (rand): Wrap the irand() call from the previous
340         commit in prefix.
342 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
343         Paul Brook  <paul@codesourcery.com>
345         * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
346         comments.
347         * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
349 2004-06-27  Bud Davis  <bdavis9659@comcast.net>
351         PR gfortran/12839
352         * io/write.c (write_float): check signbit for Infinity.
354 2004-06-26  Bud Davis  <bdavis9659@comcast.net>
356         PR gfortran/16196
357         * unix.c(regular_file): create file if it does not exist.
359 2004-06-24  Andrew Pinski  <apinski@apple.com>
361         * configure.ac: Remove check for libmx.
362         * configure: Regenerate.
364 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
366         PR fortran/15750
367         * inquire.c (st_inquire): Add comment
368         * io.h (st_parameter): Add iolength.
369         (st_iolength, st_iolength_done): Declare.
370         * transfer.c (iolength_transfer, iolength_transfer_init,
371         st_iolength, st_iolength_done): New functions.
373 2004-06-21  Steven G. Kargl  <kargls@comcast.net>
375         * etime.c (etime_sub): Remove array rank check;
376         Add check for sufficient space.
378 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
380         PR gfortran/16080
381         * io/list_read.c(set_value): fixed spelling.
383 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
385         PR gfortran/16080
386         * io/list_read.c(set_value): don't copy if the string is null.
388 2004-06-14  Bud Davis  <bdavis9659@comcast.net>
390         PR gfortran/15292
391         * intrinsics/c99_functions.c: Use fpclassify if it exists.
393 2004-06-13  Paul Brook  <paul@codesourcery.com>
395         * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
396         * configure.ac: Add checks for nextafter and nextafterf.
397         * Makefile.in, config.h.in, configure: Regenerate.
398         * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
399         * intrinsics/rand.c (rand): Use normalize_r4_i4.
400         * intrinsics/random.c (random_r4): Use normalize_r4_i4.
401         (random_r8): Use normalize_r8_i8.
402         * runtime/normalize.c: New file.
404 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
405             Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
407         * random.c: Fix several spelling and formatting mistakes in 
408         comments.
409         (random_r8): Fix loop to make random numbers range in [0,1(.
410         
412 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
414         * random.c (random_r4): Burn a random number.
415         (random_r8): fix infinite loop.
416         
417 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
418       Steve Kargl  <sgk@troutmask.apl.washington.edu>
420         PR gfortran/15292
421         * intrinsics/c99_functions.c: New file.
422         * Makefile.am: Add new file.
423         * configure.ac: Added test for round/roundf.
424         * Makefile.in: Regenerate.
425         * configure: Regenerate.
426         * configure.h.in: Regenerate.
428 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
430         * Makefile.am: Add rand.c and etime.c
431         * Makefile.in: Regenerated.
432         * aclocal.in: Regenerated.
433         * cpu_time.c (second_sub, second): New functions.
434         * rand.c (irand, rand, srand): New file.
435         * etime.c (etime_sub, etime): New file.
437 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
438             Steven Bosscher  <stevenb@suse.de>
440         PR fortran/14923
441         * intrinsics/date_and_time.c: New file.
442         * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
443         * Makefile.in, aclocal.m4: Regenerate.
444         * libgfortran.h: Prototype date_and_time().
446 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
448         PR fortran/15665
449         * intrinsics/args.c: Implement GETARG and IARGC.
450         * Makefile.am: Add it.
451         * Makefile.in: Regenerate.
453 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
455         PR gfortran/12839
456         * io/write.c(write_float): Format inf and nan IAW F2003.
458 2004-06-09  Bud Davis  <bdavis9659@comcaste.net>
460         PR gfortran/14897
461         * io/transfer.c (formatted_transfer): position is unique
462          for T and TL edit descriptors.
463         (data_transfer_init): set record length to size of internal
464          file.
466 2004-06-09  Bud Davis  <bdavis9659@comcast.net>
468         PR gfortran/15755
469         * io/backspace.c(st_backspace): call correct routine for
470         formatted and un-formatted units.
472 2004-05-30  Andreas Jaeger  <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
474         PR gfortran/11800
475         * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
476         (lib_LTLIBRARIES): Rename to ...
477         (toolexeclib_LTLIBRARIES): this for multilib support.
478         * configure.in: Rename to ...
479         * configure.ac: this.  Update to modern autoconf style, enable
480         multilibs, support --enable-version-specific-runtime-libs.
481         * Makefile.in: Regenerated.
482         * configure: Regenerated.
483         * aclocal.m4: Regenerated.
485 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
487         * libgfortran.h (random_seed): Update prototype.
488         * intrinsics/random.c: Disable old implementation and add new one.
490 2004-05-30  Andreas Jaeger  <aj@suse.de>
492         * intrinsics/random.c: Include unistd.h for close and read
493         prototypes, remove unneeded inclusion of assert.h.
495         * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
496         unneeded inclusion of assert.h.
498 2004-05-27  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
500         PR fortran/15234
501         * intrinsics/associated.c: Remove enum.
502         (associated): Replace TRUE/FALSE by 1/0.
504 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
506         * random.c (random_seed): Use correct variable.
508 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
510         * intrinsics/system_clock: New file.
511         * Makefile.am: Add intrinsics/system_clock.c.
512         * Makefile.in: Regenerate.
514 2004-05-21  Roger Sayle  <roger@eyesopen.com>
516         * io/format.c (parse_format_list): Allow the comma after a string
517         literal to be optional.
519 2004-05-18  Paul Brook  <paul@codesourcery.com>
520         Feng Wang  <fengwang@nudt.edu.cn>
522         * Makefile.am (i_pow_c): Set it. Add build rule.
523         (gfor_built_src): Use it.
524         (m4_files): add m4/pow.m4.
525         * Makefile.in: Regenerate.
526         * m4/pow.m4: New file.
527         * generated/pow_*.c: Regenerate.
529 2004-05-18  Paul Brook  <paul@codesourcery.com>
531         * Makefile.am: Remove references to types.m4.
532         * m4/iparm.m4: Merge with types.m4.
533         * m4/types.m4: Remove.
534         * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
535         m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
536         m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
537         m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
538         m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
539         m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
540         Update to use new iparm.m4.
541         * generated/*.c: Regenerate.
543 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
545         PR fortran/15235
546         * gfortran.h (offset_t): Rename to ...
547         (gfc_offset): ... this.
548         * io/backspace.c (formatted_backspace, unformatted_backspace),
549         io/io.h (stream, gfc_unit, global_t, file_length, file_position),
550         transfer.c (us_read, us_write, next_record_r, next_record_w),
551         io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
552         fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
553         mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
554         mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
555         occurences of offset_t by gfc_offset.
557 2004-05-16  Paul Brook  <paul@codesourcery.com>
559         * io/format.c (write_real): Don't include padding in format.
561 2004-05-16  Paul Brook  <paul@codesourcery.com>
563         * io/format.c (format_lex): Make c an int.
565 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
566         Paul Brook  <paul@codesourcery.com>
568         * io/write.c (write_logical): Don't print extra blank.
569         (write_integer): Base field width on kind.
570         (list_formatted_write): Output initial blank.
572 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
574         * io/io.h (flush): Add prototype.
575         * io/transfer.c (finalize_transfer): Flush partial records.
576         * io/unix.c (flush): New function.
578 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
580         PR fortran/15234
581         * io/io.h (unit_t): Rename to ...
582         (gfc_unit) ... this.
583         (unit_root, current_unit, find_file, find_unit, get_unit): Now
584         of type gfc_unit.
585         (delete_file, insert_unit, close_unit): Argument now of type
586         gfc_unit.
587         * backspace.c (st_backspace), close.c (st_close), endfile.c
588         (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
589         (test_endfile, edit_modes, new_unit, already_open, st_open),
590         rewind.c (st_rewind), transfer.c (current_unit), unit.c
591         (internal_unit, unit_cache, rotate_left, rotate_right, insert,
592         insert_unit, delete_root, delete_treap, delete_unit, find_unit,
593         get_unit, init_units, close_unit), unix.c (find_file0,
594         find_file, delete_file): Replace all occurences of unit_t by
595         gfc_unit.
597 2004-05-15  Bud Davis  <bdavis9659@comcast.net>
599         PR fortran/15311
600         * io/write.c (write_a): right justify A edit output.
602 2004-05-14  Bud Davis  <bdavis9659@comcast.net>
604         PR fortran/15149
605         * libgfortan.h,intrinsics/random.c: Made random_seed visible.
606         * runtime/main.c(init): Call random_seed as part of MAIN init.
608 2004-05-13  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
610         * io/format.c: (parse_format_list): No comma is required after
611         P descriptor.
613 2004-05-13  Bud Davis  <bdavis9659@comcast.net>
615         PR fortran/15204
616         * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
618 2004-05-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
619             Steven Bosscher  <stevenb@suse.de>
621         PR libfortran/15234
622         * libgfortran.h: Include <inttypes.h> if available.
624 2004-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
626         * io/unix.c (MAP_FAILED): Define if missing.
627         (mmap_alloc): Cast MAP_FAILED to char *.
628         (mmap_open): Likewise.
630 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
632         * generated/_abs_i8.f90: New file.
633         * generated/_abs_c4.f90: New file.
634         * generated/_abs_c8.f90: New file.
635         * Makefile.am: Add them.
636         * Makefile.in: Regenerate.
638 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
640         PR fortran/14056
641         * generated/_abs_i4.f90: New file.
642         * Makefile.am: Add it.
643         * Makefile.in: Regenerate.
645 2004-04-25  Bud Davis  <bdavis9659@comcast.net>
647         PR fortran/14942
648         * io/list_read.c(list_formatted_read): finish consuming the
649         spaces and seperators at eoln to get ready for next item.
651 2004-04-23  Bud Davis  <bdavis9659@comcast.net>
653         PR fortran/15113
654         * io/read.c(read_a): Handle field width > destination and no field width.
656 2004-04-22  Bud Davis  <bdavis9659@comcast.net>
658         PR fortran/14906
659         * io/format.c (format_item): gracefully handle a ')'
660         when it is the first character encountered in the string.
662 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
664         PR fortran/14904
665         * io/transfer.c (next_record): Update last_record when
666         more than one record is written to a direct access file
667         with one write statement.
669 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
671         PR fortran/14901
672         * io/transfer.c (next_record_w) : No '\n' if internal.
673         * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
675 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
677         * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
678         Will need to change this later to support direct access files > 2gb.
680 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
682         PR gfortran/14762
683         * io/transfer.c (next_record_r) : Skip to next record.
685 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
687         PR gfortran/14836
688         * io/transfer.c (next_record): Update last_record for DIRECT
690 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
692         PR gfortran/14837
693         * io/unix.c (find_file0): Use fd field of struct
695 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
697         PR 14831
698         * io/inquire.c (inquire_via_unit): Changed return string for
699         BLANK=NULL. Use correct variable for ACTION.
701 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
703         PR 14746
704         * io/read.c (read_f): Allow a decimal without a leading digit.
705         * io/write.c (output_float): remove a leading '0' to keep from
706         overflowing the field (F edit descriptor).
708 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
710         PR gfortran/14565
711         * io/open.c (new_unit),
712         * io/io.h : new_unit is now visible
713         * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
714         * io/transfer.c (data_transfer_init): remove compile warnings.
715         * io/rewind.c (st_rewind): ftruncate if writing.
717 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
719         * write.c (write_l): Use extract_int for 'L' edit descriptor.
721 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
723         PR 13919
724         * io/io.h (global_t):
725         * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
726           Move eof_jmp to a global structure.
727         * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
729 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
731         * m4/cexp.m4 (csqrt): Actually use the passed value.
732         * generated/exp_c?.c: Regenerate.
734 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
736         PR 12921
737         * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
738         * open.c (new_unit): Moved test for positioned direct access error.
739         (init_units): Corrected calculation of max records.
741 2004-02-06  Feng Wang  <fengwang@nudt.edu.cn>
743         * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
744         * Makefile.in: Regenerate.
745         * m4/dotprodc.m4: New file. Implement complex dot_product.
746         * m4/dotprod.m4: Delete the complex implementation.
747         * generated/dotprod_*: Update.
749 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
751         * transfer.c (write_constant_string): Do not delete H's in hollerith
752         formats.
754 2004-01-05  Andrew Pinski  <apinski@apple.com>
756         * configure.in: Check for csin in -lmx also.
757         * configure: Regenerate.
759 2004-01-01  Paul Brook  <paul@codesourcery.com>
761         * io/list_read.c (find_nml_node): Make static.
762         (match_namelist_name): Ditto.
763         * io/read.c (convert_precision_real): Make static, fix spelling.
764         * io/transfer.c (extract_real): Remove unused prototype.
765         (st_set_nml_var): Make static.
766         * io/write.c (extract_real): Make static.
768 2003-12-12  Huang Chun <chunhuang73@hotmal.com>
770         * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
772 2003-12-05  Melvin Hadasht  <melvin.hadasht@free.fr>
774         * io/transfer.c (data_transfer_init): Give a runtime error for list
775         formatted reads and writes from/to files opened for unformatted IO.
777 2003-11-30  Paul Brook  <paul@nowt.org>
779         * runtime/memory.c (push_context): Remove.
780         (pop_context): Remove.
781         * libgfortran.h: Remove prototypes.
783 2003-11-27  Paul Brook  <paul@nowt.org>
785         * runtime/memory.c (deallocate): Nullify pointer after freeing.
787 2003-11-27  Paul Brook  <paul@nowt.org>
789         * intrinsics/string_intrinsics.c: Use new memory allocation interface.
790         * libgfortran.h: Ditto.
791         * m4/in_pack.m4: Ditto.
792         * runtime/in_pack_generic.c: Ditto.
793         * runtime/memory.c: Ditto.
795 2003-11-26  Richard Henderson  <rth@redhat.com>
797         * m4/exponent.m4, m4/fraction.m4: New.
798         * m4/nearest.m4, m4/set_exponent.m4: New.
799         * generated/*: Update.
800         * Makefile.am: Add them.
801         (AM_CFLAGS): New.  Use -std=gnu99.
802         * Makefile.in: Regenerate.
804 2003-11-08  Paul Brook  <paul@nowt.org>
806         PR fortran/12704
807         * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
808         * m4/maxloc1.m4: Ditto.
809         * m4/minloc0.m4: Ditto.
810         * m4/minloc1.m4: Ditto.
811         * m4/ifunction.m4: Set return value for zero sized arrays.
812         * m4/iforeach.m4: Ditto.
813         * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
814         m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
815         * generated/*: Update.
817 2003-10-30  Toon Moene  <toon@moene.indiv.nluug.nl>
819         PR fortran/12702
820         * io/list_read.c (eat_spaces): Treat tab as space.
822 2003-10-30  Lars Segerlund  <Lars.Segerlund@comsys.se>
824         * intrinsics/random.c: Add reference to paper containing algorithm.
825         (random_seed): Extra error checking and proper handling of arrays.
826         (arandom_r4, arandom_r8): Implement.
828 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
830         PR fortran/12703
831         * runtime/memory.c (allocate_size): Allow allocation
832         of zero-sized objects.
834 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
836         PR fortran/12701
837         * open.c (new_unit): Open without a file name opens
838         a file with name fort.<unit>.
840 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
842         * intrinsics/cshift0.c: New file.
843         * m4/cshift1.m4: New file
844         * generated/cshift*.c: New files.
845         * Makefile.am: Add them.
846         * Makefile.in: Regenerate.
848 2003-10-12  XiaoQiang Zhang  <zhangapache@yahoo.com>
850         * io/list_read.c (read_character): Remove unwanted call to free_saved.
852 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
854         * intrinsics/string_intrinsics.c (string_trim): New function.
855         (string_repeat): New function.
857 2003-10-11  Paul Brook  <paul@nowt.org>
859         * intrinsics/dprod_r8.f90: New file.
860         * Makefile.am (gfor_specific_src): Add it.
861         (gfor_built_specific_src): Rename from gfor_build_specific_c.
862         Add new intrinsics.
863         (gfor_specific2_src): Rename from gfor_built_specific2_c.
864         Add new intrinsics.
865         * Makefile.in: Regenerate.
866         * generated/_aint_*.f90: New files.
867         * generated/_anint*.f90: New files.
868         * generated/_atan2*.f90: New files.
869         * generated/_mod*.f90: New files.
871 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
873         * intrinsics/selected_kind.f90: New file.
874         * Makefile.am: Add it.
875         * Makefile.in: regenerate.
877 2003-09-19  Lars Segerlund  <Lars.Segerlund@comsys.se>
878         Paul Brook  <paul@nowt.org>
880         * intrinsics/random.c: New file.
881         * Makefile.am (gfor_hemper_src): Add it.
882         (gfor_specific_c): Fix typo.
884 2003-09-19  Paul Brook  <paul@nowt.org>
886         * All: rename g95->gfc.
888 2003-09-18  XiaoQiang Zhang  <zhangapache@yahoo.com>
890         * io/write.c (output_float): Fix bug of FMT_E, Add comments.
892 2003-09-09  XiaoQiang Zhang  <zhangapache@yahoo.com>
894         * io/write.c (write_float): Dectection of positive infinite number,
895         Not a Number(NaN) and negative infinite number.
896         (ioutput_float): Bug fix for FMT_E and FMT_D processing to
897         output a very_very small number ( < 0.1e-100 ).
899 2003-09-07  XiaoQiang Zhang  <zhangapache@yahoo.com>
901         * libgfortran.h (xtoa, itoa): Parameter modified.
902         * io/io.h (namelist_info): Declaration to support namelist I/O
903         (st_parameter): Add namelist related component
904         (ionml, empty_internal_buffer, st_set_nml_var_int,
905         st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
906         st_set_nml_var_log): Declaration
907         (set_integer, set_integer): Parameter changed
908         * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
909          fnodes
910         (parse_format_list): Fix bug about FMT_SLASH
911         * io/list_read.c (push_char): Totally clear old saved_string, zeroize
912         newly allocated saved_string
913         (next_char): Add detection of End_Of_Line support
914         (convert_integer): Now can process 64 bits interger
915         (read_real): Bug fixed
916         (init_at_eol, find_nml_node, match_namelist_name): Add new functions
917         (match_namelist_name): New implemention
918         * io/lock.c (ionml): New global variable
919         (library_end): Free memory in ionml
920         * io/open.c (st_open): Variable initializtion
921         * io/read.c (max_value): 64 bits interger support
922         (convert_precsion_real): New procedure to replace "strtod" with more
923          features
924         (read_f, read_radix): Input bug fix
925         * io/transfer.c: (sf_seen_eor): New static variable
926         (read_sf): Zeroize base buffer; fix bugs: single read statement can
927         not get input in mutli line when read from stdin
928         (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
929          request
930         (data_transfer_init): Clear internal buffer for Internel File I/O.
931         Internal File now worked. Detect some error condition for namelist.
932         Some minor bug fix
933         (next_record_w): Internal file and Namelist I/O support.
934         (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
935         st_set_nml_var_complex, st_set_nml_var_log): Implemention.
936         * io/unit.c (implicit_unit): Deletion
937         (get_unit): Now cannot open a unit implicitly.
938         * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
939         mapped buffer.
940         (mem_alloc_r_at): Internal file I/O support added
941         (empty_internal_buffer): New function
942         * io/write.c (extract_int): Support 64 bits interger processing
943         (output_float): Varibale initialization
944         (write_float): Infinite real number detection.
945         (write_int): 64 bits integer I/O support
946         (write_decimal): New function to output decimal number
947         (otoa, btoa): Better implemention and 64 bits interger support
948         (namelist_write): New function
949         * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
950         interger support
952 2003-08-15  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
954         * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
955         get_mem ): Add attribute.
956         * intrinsics/spread_generic.c (__spread): Fix spelling.
957         * io/inquire.c (inquire_via_filename): Add const.
958         * io/io.h (sys_exit): Add attribute.
959         * io/io.h (move_pos_offset): Add move_pos_offset.
960         * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
961         inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
962         inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
963         write_en, write_es, write_f, write_i, write_l, write_o, write_x,
964         write_z): Add const.
965         * io/read.c (convert_real): Add const.
966         * io/transfer.c (type_name): Add const.
967         * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
968         inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
969         inquire_read, inquire_write, inquire_readwrite): Add const.
970         * io/write.c (output_float): Remove unused variable.
971         * io/write.c (write_a, extract_int, extract_real, output_float,
972         write_float, write_int, write_i, write_b, write_o, write_z, write_d,
973         write_e, write_f, write_en, write_es, write_logical, write_integer,
974         write_character, write_real, write_complex): Add const.
975         * runtime/error.c (rtoa): Remove unused variable.
976         * runtime/select.c (select_string): Add const.
977         * runtime/stop.c (stop_string): Add const.
979 2003-08-10  Paul Brook  <paul@nowt.org>
981         * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
982         (FFLAGS): Add -fno-underscoring.
983         * Makefile.in: Regenerate.
984         * intrinsics/abort.c: New file.
986 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
988         * fmain.c (main): Do not call init and cleanup; call set_args instead.
989         * libgfortran.h (init, cleanup): Remove declarations.
990         (set_args): Add declaration.
991         * runtime/main.c (init, cleanup): Make them static, and give them
992         the constructor and destructor attributes.
993         (set_args): New function.
995 2003-08-10  Paul Brook  <paul@nowt.org>
997         * intrinsics/strinf_intrinsics.c (compare_string): Return value based
998         on which string is longest.
1000 2003-08-10  Paul Brook  <paul@nowt.org>
1002         * Makefile.am (EXTRA_DIST): Remove old files.
1003         * Makefile.in: Regenerate.
1005 2003-07-26  Paul Brook  <paul@nowt.org>
1007         Rename library to libgfortran.
1008         * libgfortran.h: Change prefix to _libgfortran_.
1010 2003-07-24  Paul Brook  <paul@nowt.org>
1012         * configure.in: Don't pull in system libtool.  Use toplevel
1013         auxiliary files.
1015 2003-07-22  Paul Brook  <paul@nowt.org>
1017         Regenerate all configury files.
1019 2003-07-09  Chun Huang  <compiler@sohu.com>
1021         * intrinsics/string_intrinsic.c (string_scan): New function.
1022         (string_verify): New function.
1024 2003-06-25  Paul Brook  <paul@nowt.org>
1026         * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
1027         (mem_seek): Don't bother setting physical_offset.
1029 2003-06-20  Paul Brook  <paul@nowt.org>
1031         * libgfor.h (stop_numeric): Declare.
1032         * runtime/pause.c: New file.
1033         * Makefile.am: Add it.
1035 2003-06-08  Paul Brook  <paul@nowt.org>
1037         * m4/cexp.m4 (cabs): Use correct typed version.
1038         (csqrt): New function.
1040 2003-06-07  Canqun Yang  <canqun@yahoo.com.cn>
1042         Spotted by Benjamin and Tobias:
1043         * io/list_read.c: Add Separator '\t'.
1044         (parse_real, read_real): Accept real values starting with an optional
1045         sign follows a decimal point.
1047 2003-06-06  Steven Bosscher  <steven@gcc.gnu.org>
1049         * Makefile.am: Don't put cmath objects in subdir.
1050         * configure.in: Rename MATHOBJ to MATH_OBJ.
1052 2003-06-02  Kejia Zhao  <Kejia_zh@yahoo.com.cn>
1054         * intrinsics/associated.c: New file.
1055         * Makefile.am: Add it. Regenerate Makefile.in.
1056         * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
1057         G95_DESCRIPTOR_DTYPE.
1059 2003-06-01  Canqun Yang  <canqun@yahoo.com.cn>
1061         * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
1062         (calculate_G_format): Rewrite it to eliminate an infinte loop and set
1063         the scale_factor to 0 for F editing.
1065 2003-05-11  Tobias Schlüter  <innenminister@gmx.de>
1067         * libgfor.h: Only include stdint.h if it exists.
1069 2003-05-07  Paul Brook  <paul@nowt.org>
1071         * libgfor.h: Use stdint.h types.
1072         * intrinsics/ishift.c: Ditto.
1073         * runtime/memory.c (malloc_t): Reorder fields for better alignment.
1075 2003-05-05  Steven Bosscher  <steven@gcc.gnu.org>
1077         * libgfor.h (offsetof): Define if nobody else does.
1078         * runtime/memory.c (HEADER_SIZE): Use it.
1080 2003-05-01  Tobias Schlüter  <innenminister@gmx.de>
1082         * configure.in: Require autoconf 2.54.
1084 2003-04-28  Tobias Schlüter  <innenminister@gmx.de>
1085         Paul Brook  <paul@nowt.org>
1087         * intrinsics/reshape_generic.c: Copy the whole element, not just the
1088         first byte.
1089         * m4/transpose.m4: New file.
1090         * Makefile.am: Add them.
1091         Regenerate generated files.
1093 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1095         * io/format.c (parse_format_list): Allow 'X' without integer
1096         prefix.  This is an extension.  Interpretation is '1X'.
1098 2003-04-18  Tobias Schlüter  <Tobias.Schlueter@physik.uni-muenchen.de>
1100         * io/format.c (parse_format_list): Allow '0P'.
1102 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1104         * Makefile.in: Re-regenerate for automake 1.7.3.
1106 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
1108         Port implementation for CHARACTER SELECT from Andy's tree.
1109         * runtime/select.c: New file
1110         * Makefile.am: Add it.
1111         * Makefile.in: Regenerate.
1113 2003-04-17  Xiaoqiang Zhang <zhangapache@yahoo.com>
1115         * io/transfer.c (formatted_transfer): Modified
1116         * io/unix.c (move_pos_offset): New Function.
1117         * io/format.c (parse_format_list): Modified.
1119 2003-04-15  Xiaoqiang Zhang <zhangapache@yahoo.com>
1121         * io/write.c (write_float,write_real): New implemention of
1122         FMT_G and default float editing.
1123         (calculate_exp,calculate_G_format,output_float): New Function.
1124         (write_float,write_real,write_logical): Modified
1125         * libgfor.h (default_rtoa): Remove Declaration.
1126         * runtime/error.c (default_rtoa): Remove Function.
1128 2003-04-15  Steven Bosscher  <steven@gcc.gnu.org>
1130         Spotted by Yang:
1131         * io/write.c (extract_real): Add missing break statement.
1133 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
1135         * cpu_time.c: Make sure we have a definition of HZ.  Don't
1136         rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
1138 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
1139             Paul Brook  <paul@nowt.org>
1141         * configure.in: Check for process time headers and GETTIMEOFDAY.
1142         * makefile.am: Add intrinsics/cpu_time.c.
1143         * acinclude.m4: New file.
1144         * intrinsics/cpu_time.c: New file.
1145         * m4/dotprodl.m4: Fix typo.
1146         Regenerate generated files.
1148 2003-04-11  Xiaoqiang Zhang <zhangapache@yahoo.com>
1150         * io/write.c (extract_real): Ouput floating point value.
1151         (write_float): New Function.
1152         (write_e, write_f, write_en, write_es): Modified
1153         * io/transfer.c (formatted_transfer): Modified.
1154         * libgfor.h (default_rtoa): Declaration.
1155         (rtoa): Declaration.
1156         * runtime/error.c (default_rtoa): New Function.
1157         (rtoa): New Function.
1159 2003-04-05  Paul Brook  <paul@nowt.org>
1161         * intrinsics/spread_generic.c: New file.
1162         * Makefile.am: Add it. Regenerate Makefile.in.
1164 2003-03-29  Paul Brook  <paul@nowt.org>
1166         * intrinsics/pack_generic.c: New file.
1167         * intrinsics/unpack_generic.c: New file.
1168         * Makefile.am: Add them. Regenerate Makefile.in.
1170 2003-03-25  Paul Brook  <paul@nowt.org>
1172         * intrinsics/eoshift0.c: New file.
1173         * intrinsics/eoshift2.c: New file.
1174         * m4/eoshift1.m4: New file.
1175         * m4/eoshift3.m4: New file.
1176         * Makefile.am: Add them.
1177         * in_unpack_generic.c: Initialize src.
1178         Regenerate generated files.
1180 2003-03-14  Paul Brook  <paul@nowt.org>
1182         * m4/shape.m4: Work properly with array temporaries.
1183         * m4/in_pack.m4: Skip redundant checks for array temporaries.
1184         * runtime/in_pack_generic.c: Ditto.
1186 2003-03-12  Paul Brook  <paul@nowt.org>
1188         * m4/shape.m4: Work properly with noncontiguous arrays.
1190 2003-03-08  Paul Brook  <paul@nowt.org>
1192         * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1193         * runtime/in_pack_generic.c: Ditto.
1195 2003-02-08  Paul Brook  <paul@nowt.org>
1197         * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1198         * io/close.c (st_close): Return void.
1199         * io/open.c (st_open): Return void.
1200         * libgfor.h (g95_array_char): Declare.
1201         (internal_malloc_size): Ditto.
1202         (internal_pack*, internal_unpack*): Ditto.
1203         * m4/in_pack.m4: Allocate storage if neccessary.  Fix logic for packed
1204         arrays.
1205         * m4/in_unpack.m4: Include file fixes.
1206         * m4/reshape.m4: Increment the correct source pointer.
1207         * Makefile.am (maxloc): Fix typo.
1208         * runtime/in_pack_generic.c: Call optimized functions. Allocate
1209         storage if neccessary. Fix logic for packed arrays.
1210         * runtime/in_unpack_generic.c: Call optimized functions.
1211         * runtime/main.c: Use runtime_error to report errors.
1212         * memory.c (internal_malloc_size): Make non-static.
1214 2003-02-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1216         * reshape_packed.c, lock.c: Add #include <string.h>.
1217         * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1218         environ.c, error.c, memory.c, string.c: Add const.
1219         * error.c (show_locus): Add void.
1221 2003-02-21  Paul Brook  <paul@nowt.org>
1223         * m4/in_pack.m4: Avoid returning const * parameter.
1224         * Makefile.am: Only regenerate files in maintainer mode.
1226 2003-02-20  Paul Brook  <paul@nowt.org>
1228         Add array repacking support functions.
1229         * m4/in_pack.m4, m4/in_unpack.m4: New files.
1230         * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1231         * Makefile.am: Build them.  Regenerate configury files.
1232         * generated/: New directory for generated files (need to move
1233         everything else there).
1235 2003-02-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1237         * m4/cexp.m4: Fix typo.
1239 2003-01-26  Paul Brook  <paul@nowt.org>
1241         * intrinsics/: Add missing generated files.
1243 2003-01-26  Paul Brook  <paul@nowt.org>
1245         * Makefile.am: Put -I before the filename.
1247 2003-01-24  Paul Brook  <paul@nowt.org>
1249         * configure.in: Add AM_MAINTAINER_MODE.
1251 2003-01-23  Paul Brook  <paul@nowt.org>
1253         * configure.in, Makefile.am: Modify to work with unmodified autoconf
1254         and auotmake.
1255         Also regenerate other configury files.
1257 2003-01-21  Paul Brook  <paul@nowt.org>
1259         * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1261 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1263         * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1264         Don't include "alloca.h".
1266 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1268         * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1269         * Makefile.am: Adjust file name.
1270         * Makefile.in: Regenerate.
1271         * gfortypes.h: Kill, include everything in...
1272         * libgfor.h: ...here.  Include config.h
1273         * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1274         intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1275         intrinsics/reshape_packed.c, intrinsics/size.c,
1276         m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1277         for prefix for all functions instead of hardcoded.
1279 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1281         * io/lock.c (library_end): Propagate library return
1282         code.
1284 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1286         Port fixes from Andy's tree:
1287         * io/read.c (read_decimal): Reverse sense of overflow
1288         comparison during integer reads.
1289         * io/format.c (revert): Fix comment.
1290         (next_format): Fix format revision.
1291         * io/unix.c: Fix and simplify mmap version of stream
1292         functions.
1294 2003-01-11  Paul Brook  <paul@nowt.org>
1296         * configure, Makefile.in: Regenerate.
1298 2003-01-11  Paul Brook  <paul@nowt.org>
1300         * runtime/stop.c: Rewrite.
1302 2003-01-08  Paul Brook  <paul@nowt.org>
1304         * configure, Makefile.in: Regenerate.
1306 2003-01-05  Paul Brook  <paul@nowt.org>
1308         * (*.m4) Move to m4/.
1309         * intrinsics/string.c (_gfor_string_index): New Function.
1311 2002-12-29  Paul Brook  <paul@nowt.org>
1313         * intrinsics/reshape.*: New files.
1314         * gcc_config.patch: Update to new GCC configure system.
1316 2002-10-10  Paul Brook  <paul@nowt.org>
1318         * intrinsics/size.c: New file.
1319         * intrinsics/shape.m4: New file.
1320         * Makefile.am: Add above files.
1322 2002-10-02  Paul Brook  <paul@nowt.org>
1324         * fmain.c (main): Move here.
1325         * libgfor.c: From here.
1326         * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1327         * Makefile.am: Build libgforbegin.
1328         * gcc_config.patch: Remove stray -march=athlon.
1329         * dotprodl.m4: Fix use of L8_TO_L4 macro.
1330         * ifunction.m4: Move variable declarations to allow compilation with
1331         gcc < 3.0
1332         * specific.m4, specific4.m4: Fix typo typecode->type_code.
1333         * README: Document use of patch -p1.
1335 2002-09-12  Paul Brook  <paul@nowt.org>
1337         * math/*: Add complex math library functions.
1338         * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1339         * Makefile.am: Add details for above.
1340         * configure.in: Use AC_PROG_F95.  Test for the presence of csin.
1342 2002-09-09  Paul Brook  <paul@nowt.org>
1344         * libgfor.c (determine_endianness): Use an array rather than a struct.
1345         * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1347 2002-09-09  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1349         * libgfor.c: Add fatal signal handler.
1350         Romove superfluous abort() calls.
1352 2002-09-07  Paul Brook <paul@nowt.org>
1354         * Makefile.am, intrinsics: Major rewrite.
1356 2002-09-02  Paul Brook <paul@nowt.org>
1358         * Makefile.am: Added -I$(srcdir) to m4 rule.
1360 2002-08-30  Paul Brook <paul@nowt.org>
1362         * io/*: Integrated libgforio.
1363         * Makefile.am, configure.in: Make compatable with GCC. Build code for
1364         intrinsics in the intrisics directory.
1365         * intrinsics/intrinsics.m4: Move here. Strip directories from the
1366         filename. Add 'and' and 'all' intrinsics.
1368 2002-08-17  Paul Brook <paul@nowt.org>
1370         * ALL: First release as more than just a single file