1 2004-12-05 Steven G. Kargl <kargls@comcast.net>
4 * gfortran.h: typedef GFC_INTEGER_1 and GFC_INTEGER_2
5 * intrinsics/cshift0.c (cshift0_1,cshift0_2): New functions.
6 * intrinsics/eoshift0.c (eoshift0_1,eoshift0_2): New functions.
7 * intrinsics/eoshift2.c (eoshift2_1,eoshift2_2): New functions.
9 2004-12-13 David Edelsohn <edelsohn@gnu.org>
11 * io/transfer.c (read_sf): Change bitwise "and" to logical "and".
13 2004-12-12 Richard Henderson <rth@redhat.com>
15 * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
16 intrinsics/pack_generic.c, intrinsics/reshape_generic.c,
17 intrinsics/spread_generic.c, intrinsics/transpose_generic.c,
18 intrinsics/unpack_generic.c, m4/cshift1.m4, m4/dotprod.m4,
19 m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
20 m4/iforeach.m4, m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4,
21 m4/reshape.m4, m4/shape.m4, m4/transpose.m4: Use standard prefix
23 * generated/*: Rebuild.
25 2004-12-12 Richard Henderson <rth@redhat.com>
27 * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY): New.
28 (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT): New.
29 (LIBGFOR_CHECK_ATTRIBUTE_ALIAS): New.
30 * configure.ac: Use them.
31 * configure, config.h.in, aclocal.m4: Rebuild.
32 * libgfortran.h (prefix): Remove.
33 (PREFIX, IPREFIX): New.
34 (sym_rename, sym_rename1, sym_rename2): New.
35 (internal_proto, export_proto, export_proto_np): New.
36 (iexport_proto, iexport): New.
37 (iexport_data_proto, iexport_data): New.
38 * intrinsics/abort.c, intrinsics/args.c, intrinsics/associated.c,
39 intrinsics/cpu_time.c, intrinsics/cshift0.c,
40 intrinsics/date_and_time.c, intrinsics/env.c, intrinsics/eoshift0.c,
41 intrinsics/eoshift2.c, intrinsics/etime.c, intrinsics/exit.c,
42 intrinsics/flush.c, intrinsics/fnum.c, intrinsics/getXid.c,
43 intrinsics/getcwd.c, intrinsics/ishftc.c, intrinsics/mvbits.c,
44 intrinsics/pack_generic.c, intrinsics/rand.c, intrinsics/random.c,
45 intrinsics/reshape_generic.c, intrinsics/size.c,
46 intrinsics/spread_generic.c, intrinsics/stat.c,
47 intrinsics/string_intrinsics.c, intrinsics/system.c,
48 intrinsics/system_clock.c, intrinsics/transpose_generic.c,
49 intrinsics/umask.c, intrinsics/unlink.c, intrinsics/unpack_generic.c,
50 io/backspace.c, io/close.c, io/endfile.c, io/inquire.c, io/io.h,
51 io/open.c, io/rewind.c, io/transfer.c, libgfortran.h, m4/cshift1.m4,
52 m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4,
53 m4/eoshift3.m4, m4/exponent.m4, m4/fraction.m4, m4/iforeach.m4,
54 m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/nearest.m4,
55 m4/pow.m4, m4/reshape.m4, m4/set_exponent.m4, m4/shape.m4,
56 m4/transpose.m4, runtime/environ.c, runtime/error.c,
57 runtime/in_pack_generic.c, runtime/in_unpack_generic.c,
58 runtime/main.c, runtime/memory.c, runtime/pause.c, runtime/select.c,
59 runtime/stop.c: Use them to mark symbols internal or external.
60 * generated/*: Rebuild.
62 2004-12-09 David Edelsohn <edelsohn@gnu.org>
65 Revert 2004-12-07 change.
66 * Makefile.am (AM_MAKEFLAGS): Delete.
67 * Makefile.in: Regenerate.
69 2004-12-07 Steve Ellcey <sje@cup.hp.com>
71 * libgfortran/Makefile.am (AM_MAKEFLAGS): New.
72 * libgfortran/Makefile.in: Regenerate
74 2004-12-07 Steve Ellcey <sje@cup.hp.com>
76 * io/io.h (open_external): Change prototype.
77 * io/unix.c (regular_file): Change prototype and set flags->action if
79 (open_external): Ditto.
80 * io/open.c (new_unit): Let open_external set flags->action.
82 2004-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
84 * configure.ac: Check for ieeefp.h. Check for fabsf in libm.
85 * configure: Regenerate.
86 * config.h.in: Likewise.
87 * c99_protos.h: New file.
88 * libgfortran.h: Include c99_protos.h and conditionally ieeefp.h.
89 * intrinsics/c99_functions.c (fabsf): New function.
91 2004-12-06 Richard Henderson <rth@redhat.com>
93 * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
94 intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
95 intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
96 m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
98 * generated/*: Rebuild.
100 2004-12-06 Richard Henderson <rth@redhat.com>
102 * intrinsics/c99_functions.c, intrinsics/eoshift0.c,
103 intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
104 intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
105 intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
106 intrinsics/spread_generic.c, intrinsics/stat.c,
107 intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
108 intrinsics/transpose_generic.c, intrinsics/unlink.c,
109 intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
110 io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
111 io/write.c, runtime/environ.c, runtime/error.c,
112 runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
113 runtime/memory.c, runtime/pause.c, runtime/stop.c,
114 runtime/string.c: Whitespace fixes.
116 2004-12-06 Richard Henderson <rth@redhat.com>
118 * Makefile.am: Generate all m4 output under $(srcdir).
119 * Makefile.in: Regenerate.
121 2004-12-02 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
124 * io/transfer.c (unformatted_read, unformatted_write): width of
125 a COMPLEX is twice its kind.
127 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
129 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
130 * configure, aclocal.m4, Makefile.in: Regenerate.
132 2004-12-02 Bud Davis <bdavis9659@comcast.net>
135 * io/unix.c (fd_alloc_w_at): Update file_length when extending.
136 * io/backspace.c (formatted_backspace): Reset endfile after backspace.
138 2004-12-02 Bud Davis <bdavis9659@comcast.net>
140 * io/inquire.c (inquire_via_unit): do not allow a direct access
141 file to be opened for sequential I/O.
143 2004-12-02 Steven G. Kargl <kargls@comcast.net>
144 Paul Brook <paul@codesourcery.com>
146 * intrinsics/flush.c: New file.
147 * intrinsics/fnum.c: ditto
148 * intrinsics/stat.c: ditto
149 * io/io.h (unit_to_fd): Add prototype.
150 * io/unix.c (unit_to_fd): New function.
151 * configure.ac: Add test for members of struct stat. Check for
152 sys/types.h and sys/stat.h
153 * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
154 * configure.in: Regenerate.
155 * config.h.in: Regenerate.
156 * Makefile.in: Regenerate.
158 2004-12-01 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
160 * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
162 2004-11-28 Bud Davis <bdavis9659@comcast.net>
164 * io/unix.c (mmap_alloc_w_a): check for a write to a location
165 less than the mapped area.
167 2004-11-27 Bud Davis <bdavis9659@comcast.net>
170 * io/endfile.c (st_endfile): flush the stream before truncating.
172 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
174 * configure: Regenerate for libtool change.
176 2004-11-22 Steven Bosscher <stevenb@suse.de>
179 * configure.ac: Check for finite in libm.
180 * libgfortran.h: Define isfinite macro if not defined.
181 * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
183 * io/write.c (write_float): Use isfinite instead of finite.
184 * configure, config.h.in: Rebuilt.
186 2004-11-20 Roger Sayle <roger@eyesopen.com>
188 * io/write.c (write_float, list_formatted_write): Fix indentation.
190 2004-11-20 Eric Botcazou <ebotcazou@libertysurf.fr>
193 * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
194 * configure.ac: Include LIBGFOR_TARGET_ILP32.
195 * configure: Regenerate.
196 * config.h.in: Likewise.
197 * libgfortran.h: Provide default definitions for C99 types
198 on ILP32 targets that don't have them.
201 * configure.ac: Check for snprintf.
202 * configure: Regenerate.
203 * config.h.in: Likewise.
204 * intrinsics/date_and_time.c (date_and_time): Do not
205 use snprinf if it is not available.
206 * io/write.c (output_float): Likewise.
208 2004-11-20 Steven G. Kargl <kargls@comcast.net>
210 * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
211 * Makefile.in: Regenerated
212 * intrinsics/umask.c: New file
213 * intrinsics/unlink.c: ditto
214 * intrinsics/exit.c: ditto
216 2004-11-18 Victor Leikehman <lei@il.ibm.com>
218 * m4/matmul.m4: Loops reordered to improve cache behavior.
219 * generated/matmul_??.c: Regenerated.
221 2004-11-10 Paul Brook <paul@codesourcery.com>
224 * configure.ac: Check for strtof.
225 * configure: Regenerate.
226 * config.h.in: Regenerate.
227 * io/read.c (convert_real): Use strtof if available.
228 (convert_precision_real): Remove.
229 (read_f): Avoid poor exponentiation algorithm.
231 2004-11-05 Andreas Schwab <schwab@suse.de>
233 * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
234 AC_PROG_F77, F77 and FFLAGS.
235 * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
236 FCCOMPILE instead of F77COMPILE.
237 * configure, Makefile.in: Regenerate.
239 2004-11-05 Kelley Cook <kcook@gcc.gnu.org>
241 * acinclude.m4: Properly quote AC_CACHE_CHECK.
242 * Makefile.am: Add in ACLOCAL_AMFLAGS.
243 * aclocal.m4, configure, Makefile.in: Regenerate.
245 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
247 * config.h.in: Regenerate.
248 * configure: Regenerate.
249 * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
250 * io/unix.c (S_IRGRP): Define if undefined.
254 (tempfile): Use mktemp if mkstemp missing, fix typos.
256 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
258 * intrinsics/system.c ("libgfortran.h"): Move after system headers.
260 2004-10-30 Canqun Yang <canqun@nudt.edu.cn>
262 * intrinsics/rand.c (irand): Handle NULL argument.
264 2004-10-07 Paul Brook <paul@codesourcery.com>
266 * io/transfer.c (finalize_transfer): Free internal streams.
267 * io/unix.c (mem_close): Free stream object.
269 2004-10-07 Paul Brook <paul@codesourcery.com>
271 * intrinsics/string_intrinsics.c (string_verify): Fix off by one
274 2004-10-06 Paul Brook <paul@codesourcery.com>
277 * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
279 2004-10-04 Andrew Pinski <pinskia@physics.uc.edu>
281 * intrinsics/mvbits.c: Commit the file.
283 2004-10-04 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
286 * intrinsics/pack_generic.c (__pack): Allocate memory for return array
287 if not done by caller.
288 (__pack_s): New function.
289 * runtime/memory.c (internal_malloc, internal_malloc64): Allow
290 allocating zero memory.
293 * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
294 * Makefile.in: Regenerate.
295 * intrinsics/mvbits.h: New file.
298 * intrinsics/system.c: New file.
299 * Makefile.am: Add dependency for the new file.
300 * Makefile.in: Regenerate.
302 2004-10-04 Paul Brook <paul@codesourcery.com>
303 Bud Davis <bdavis9659@comcast.net>
307 * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
309 * io/write.c (output_float): Don't output minus zero.
311 2004-10-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
313 * intrinsics/abort.c ("libgfortran.h"): Move.
314 * intrinsics/date_and_time.c ("libgfortran.h"): Same.
315 * intrinsics/write.c ("libgfortran.h"): Same.
317 2004-09-26 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
320 * config.h.in (HAVE_POWF): Undefine.
321 * configure.ac: Check for 'powf' in library.
322 * configure: Regenerate.
323 * intrinsics/c99_functions.c (powf): New function.
325 2004-09-24 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
327 * intrinsics/etime.c (etime_): New function.
329 2004-09-21 Steven G. Kargl <kargls@comcast.net>
331 * libgfortran.h: define gfc_alloca()
332 * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
334 2004-09-21 Bud Davis <bdavis9659@comcast.net>
337 * io/list_read.c (namelist_read): ignore spaces after
338 the '=' for namelist reads.
340 2004-09-15 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
342 * config.h.in: Regenerate.
343 * configure: Regenerate.
344 * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
345 * unix.c: Include stdio.h.
346 (HAVE_SYS_MMAN_H): Check.
347 (PROT_READ, PROT_WRITE): Provide default definitions.
349 2004-09-15 Steven G. Kargl <kargls@comcast.net>
351 * intrincics/getcwd.c: New file.
352 * Makefile.am: Add getcwd.c.
353 * Makefile.in: Regenerated.
355 2004-09-15 Steven G. Kargl <kargls@comcast.net>
356 Paul Brook <paul@codesourcery.com>
358 * intrinsics/env.c (getenv, get_environmental_variable): Remove
359 trailing white space. Use alloca. Honour trim_name.
361 2004-09-13 Bud Davis <bdavis9659@comcast.net>
365 * io/list_read.c (list_formatted_read): Handle trailing spaces
368 2004-09-06 Steven G. Kargl <kargls@comcast.net>
370 * io/write.c (output_float): Typo in comment. Remove debugging
371 printf. Fix format for FP of form 1e10.
373 2004-09-03 Richard Henderson <rth@redhat.com>
375 * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
376 copy_loop_double, copy_loop_ldouble): New.
377 (__cshift0): Make shift type ssize_t. Use % operator instead of
378 div. Use specialized versions of copy loop depending on the shape.
380 2004-09-02 Paul Brook <paul@codesourcery.com>
382 * io/format.c (parse_format_list): Set repeat count for P descriptors.
383 * write.c (output_float): Fix condition. Correctly handle nonzero
386 2004-09-01 Eric Botcazou <ebotcazou@libertysurf.fr>
388 * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
389 * mk-srk-inc.sh: Likewise.
391 2004-09-01 Paul Brook <paul@codesourcery.com>
393 * runtime/error.c (generate_error): Set both iostat and
396 2004-08-31 Paul Brook <paul@codesourcery.com>
399 * io/list_read.c (next_char): Don't signal EOF for internal files.
400 * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
402 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
404 * io/unit.c: Separate copyright years by ','.
405 (compare, insert_unit, delete_unit, is_internal_unit, close_units):
406 Remove blank line in beginning of function.
407 (get_unit): Simplify code.
409 2004-08-31 Paul Brook <paul@codesourcery.com>
411 * io/unit.c (get_unit): Remove superfluous if.
413 2004-08-31 Paul Brook <paul@codesourcery.com>
415 * io/transfer.c (read_sf): Rename uinty to readlen. Detect EOF.
416 (finalize_transfer): Move setjmp after namlist IO.
417 * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
419 2004-08-31 Paul Brook <paul@codesourcery.com>
421 * list_read.c (eat_separator): Set at_eo when a '/' is seen.
423 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
425 * libgfortran.h: Replace 'gfc_strlen_type' by
426 'gfc_charlen_type'. Update comment accordingly.
427 * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
428 Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
430 2004-08-31 Paul Brook <paul@codesourcery.com>
432 * libgfortran.h: Add comments.
434 2004-08-30 Richard Henderson <rth@redhat.com>
436 * Makefile.am (gfor_helper_src): Split selected_kind.f90.
437 (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
438 (selected_int_kind.inc selected_real_kind.inc): New rules.
439 * Makefile.in: Regenerate.
440 * mk-sik-inc.sh, mk-srk-inc.sh: New files.
441 * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
442 include table of detected kinds.
443 * intrinsics/selected_real_kind.f90: Similarly.
445 2004-08-29 Steven G. Kargl <kargls@comcast.net>
446 Paul Brook <paul@codesourcery.com>
448 * intrinsics/bessel.c: New file.
449 * intrinsics/erf.c: New file.
450 * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
451 * configure.ac: Test for C99 Bessel and Error functions.
452 * Makefile.in: Regenerate.
453 * config.h.in: Regenerate.
454 * configure: Regenerate.
456 2004-08-29 Steven G. Kargl <kargls@comcast.net>
457 Paul Brook <paul@codesourcery.com>
459 * Makefile.am: Add intrinsics/getXid.c.
460 * configure.ac: Add tests for get{g,p,u}id.
461 * config.h.in: Regenerate.
462 * Makefile.in: Regenerate.
463 * configure: Regenerate.
465 2004-08-28 Paul Brook <paul@codesourcery.com>
468 * libgfortran.h (rtoa): Remove prototype.
469 * runtime/error.c (rtoa): Remove.
470 * io/write.c (calculate_G_format): Don't add blanks if E format is
471 used. Add correct number of blanks when exponent width is specified.
472 (output_float): Rewrite.
474 2004-08-27 Paul Brook <paul@codesourcery.com>
476 * io/rewind.c (st_rewind): Reset unit to read mode.
478 2004-08-27 Bud Davis <bdavis9659@comcast.net>
481 * io/io.h: created typedef for unit_mode.
482 * io/io.h (gfc_unit): added mode to unit structure.
483 * io/transfer.c (data_transfer_init): flush if a write then
484 read is done on a unit (direct access files).
485 * io/rewind.c (st_rewind): Used unit mode instead of global.
487 2004-08-24 Bud Davis <bdavis9659@comcast.net>
490 * runtime/error.c (itoa): keep from overflowing during
491 mod operation by using unsigned variable.
493 2004-08-24 Bud Davis <bdavis9659@comcast.net>
496 * runtime/string_intrinsics.c (string_index):check for
497 substring longer than string.
499 2004-08-24 David Edelsohn <edelsohn@gnu.org>
501 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
502 * Makefile.in: Rebuilt.
504 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
506 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
507 Fix formatting issues, update copyright years.
509 2004-08-21 Bud Davis <bdavis9659@comcast.net>
512 * io/transfer.c (next_record_w): Do not blank pad.
513 * io/transfer.c (next_record): Take into account partial records.
515 2004-08-18 Victor Leikehman <lei@il.ibm.com>
518 * io/transfer.c (st_set_nml_var)
519 * io/write.c (namelist_write): Allow var_name and var_name_len to be
520 null. For strings, use string_length field instead of len.
521 * io/io.h (struct namelist_type): New field string_length.
522 (st_set_nml_var_char): New argument string_length.
524 2004-08-13 Bud Davis <bdavis9659@comcast.net>
527 * io/open.c (st_open): use flags instead of the unit structure.
529 2004-08-10 Victor Leikehman <lei@il.ibm.com>
531 * io/list_read.c (namelist_read): Convert variable names
532 to lower case, so that mixed-case names are recognized.
533 Don't read beyond terminating slash.
535 2004-08-09 Richard Henderson <rth@redhat.com>
536 Roger Sayle <roger@eyesopen.com>
538 * intrinsics/c99_functions.c (nextafterf): New implementation that
539 works correctly with denormalized numbers.
541 2004-08-09 Victor Leikehman <lei@il.ibm.com>
543 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
544 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
545 Allocate space if return value has NULL in its data field.
546 * generated/*.c: Regenerate.
548 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
550 * intrinsics/env.c: New file.
551 * Makefile.am: Add env.c to build.
552 * Makefile.in: Regenerate.
554 2004-08-05 Victor Leikehman <lei@il.ibm.com>
557 * io/read.c (read_radix): Understand letters f and F as hex digits.
559 2004-08-04 Victor Leikehman <lei@il.ibm.com>
561 * libgfortran.h (array_t, size0) New declarations.
562 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
563 space if return value descriptor has NULL in its data field,
564 and initialize bounds and stride.
565 * intrinsics/size.c (array_t, size0): Declarations moved to
567 * generated/*.c: Regenerate.
569 2004-08-03 Roger Sayle <roger@eyesopen.com>
572 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
573 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
574 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
575 * config.h.in: Regenerate.
576 * configure: Regenerate.
578 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
579 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
580 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
581 implementations for targets that don't support C99 float functions.
583 2004-08-01 Roger Sayle <roger@eyesopen.com>
585 * io/write.c (write_float): Use the slightly more portable isnan
586 in preference to isinf.
588 2004-07-18 Bud Davis <bdavis9659@comcast.net>
590 * configure.ac: Add check for LFS support.
591 * configure: Regenerate
593 2004-07-11 Paul Brook <paul@codesourcery.com>
596 * m4/cexp.m4 (carg): Return -pi to pi.
597 * generated/exp_c?.c: Regenerate.
599 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
602 * libgfortran/io/write.c: (write_float): Added length check.
603 Remove pointless memset calls.
605 2004-07-04 Bud Davis <bdavis9659@comcast.net>
606 Paul Brook <paul@codesourcery.com>
609 * io/transfer.c(us_write): set recl for seq unform writes to max size.
610 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
611 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
613 * io/unix.c(is_seekable): set based upon the file/device, not the
614 method being used to access it (fd or mmap).
615 * io/unix.c(fd_flush): don't set file_size if !seekable.
616 * io/unix.c(fd_truncate: ditto.
618 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
619 Paul Brook <paul@codesourcery.com>
623 * libgfortran.h (gfc_strlen_type): Define.
624 * intrinsics/args.c (getarg): Rename ...
625 (getarg_i4): ... to this.
626 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
627 get_command_i4, get_command_i8): New functions.
629 2004-07-04 Matthias Klose <doko@debian.org>
631 * libtool-version: New.
632 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
633 * Makefile.in: Regenerate.
634 * configure.ac: Remove libtool_VERSION macro
635 * configure: Regenerate
637 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
638 Steven Bosscher <stevenb@suse.de>
640 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
643 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
644 Paul Brook <paul@codesourcery.com>
646 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
648 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
650 2004-06-27 Bud Davis <bdavis9659@comcast.net>
653 * io/write.c (write_float): check signbit for Infinity.
655 2004-06-26 Bud Davis <bdavis9659@comcast.net>
658 * unix.c(regular_file): create file if it does not exist.
660 2004-06-24 Andrew Pinski <apinski@apple.com>
662 * configure.ac: Remove check for libmx.
663 * configure: Regenerate.
665 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
668 * inquire.c (st_inquire): Add comment
669 * io.h (st_parameter): Add iolength.
670 (st_iolength, st_iolength_done): Declare.
671 * transfer.c (iolength_transfer, iolength_transfer_init,
672 st_iolength, st_iolength_done): New functions.
674 2004-06-21 Steven G. Kargl <kargls@comcast.net>
676 * etime.c (etime_sub): Remove array rank check;
677 Add check for sufficient space.
679 2004-06-19 Bud Davis <bdavis9659@comcast.net>
682 * io/list_read.c(set_value): fixed spelling.
684 2004-06-19 Bud Davis <bdavis9659@comcast.net>
687 * io/list_read.c(set_value): don't copy if the string is null.
689 2004-06-14 Bud Davis <bdavis9659@comcast.net>
692 * intrinsics/c99_functions.c: Use fpclassify if it exists.
694 2004-06-13 Paul Brook <paul@codesourcery.com>
696 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
697 * configure.ac: Add checks for nextafter and nextafterf.
698 * Makefile.in, config.h.in, configure: Regenerate.
699 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
700 * intrinsics/rand.c (rand): Use normalize_r4_i4.
701 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
702 (random_r8): Use normalize_r8_i8.
703 * runtime/normalize.c: New file.
705 2004-06-13 Steven G. Kargl <kargls@comcast.net>
706 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
708 * random.c: Fix several spelling and formatting mistakes in
710 (random_r8): Fix loop to make random numbers range in [0,1(.
713 2004-06-13 Steven G. Kargl <kargls@comcast.net>
715 * random.c (random_r4): Burn a random number.
716 (random_r8): fix infinite loop.
718 2004-06-12 Bud Davis <bdavis9659@comcast.net>
719 Steve Kargl <sgk@troutmask.apl.washington.edu>
722 * intrinsics/c99_functions.c: New file.
723 * Makefile.am: Add new file.
724 * configure.ac: Added test for round/roundf.
725 * Makefile.in: Regenerate.
726 * configure: Regenerate.
727 * configure.h.in: Regenerate.
729 2004-06-12 Steven G. Kargl <kargls@comcast.net>
731 * Makefile.am: Add rand.c and etime.c
732 * Makefile.in: Regenerated.
733 * aclocal.in: Regenerated.
734 * cpu_time.c (second_sub, second): New functions.
735 * rand.c (irand, rand, srand): New file.
736 * etime.c (etime_sub, etime): New file.
738 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
739 Steven Bosscher <stevenb@suse.de>
742 * intrinsics/date_and_time.c: New file.
743 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
744 * Makefile.in, aclocal.m4: Regenerate.
745 * libgfortran.h: Prototype date_and_time().
747 2004-06-12 Bud Davis <bdavis9659@comcast.net>
750 * intrinsics/args.c: Implement GETARG and IARGC.
751 * Makefile.am: Add it.
752 * Makefile.in: Regenerate.
754 2004-06-12 Bud Davis <bdavis9659@comcast.net>
757 * io/write.c(write_float): Format inf and nan IAW F2003.
759 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
762 * io/transfer.c (formatted_transfer): position is unique
763 for T and TL edit descriptors.
764 (data_transfer_init): set record length to size of internal
767 2004-06-09 Bud Davis <bdavis9659@comcast.net>
770 * io/backspace.c(st_backspace): call correct routine for
771 formatted and un-formatted units.
773 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
776 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
777 (lib_LTLIBRARIES): Rename to ...
778 (toolexeclib_LTLIBRARIES): this for multilib support.
779 * configure.in: Rename to ...
780 * configure.ac: this. Update to modern autoconf style, enable
781 multilibs, support --enable-version-specific-runtime-libs.
782 * Makefile.in: Regenerated.
783 * configure: Regenerated.
784 * aclocal.m4: Regenerated.
786 2004-05-30 Steven G. Kargl <kargls@comcast.net>
788 * libgfortran.h (random_seed): Update prototype.
789 * intrinsics/random.c: Disable old implementation and add new one.
791 2004-05-30 Andreas Jaeger <aj@suse.de>
793 * intrinsics/random.c: Include unistd.h for close and read
794 prototypes, remove unneeded inclusion of assert.h.
796 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
797 unneeded inclusion of assert.h.
799 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
802 * intrinsics/associated.c: Remove enum.
803 (associated): Replace TRUE/FALSE by 1/0.
805 2004-05-23 Steven G. Kargl <kargls@comcast.net>
807 * random.c (random_seed): Use correct variable.
809 2004-05-22 Steven G. Kargl <kargls@comcast.net>
811 * intrinsics/system_clock: New file.
812 * Makefile.am: Add intrinsics/system_clock.c.
813 * Makefile.in: Regenerate.
815 2004-05-21 Roger Sayle <roger@eyesopen.com>
817 * io/format.c (parse_format_list): Allow the comma after a string
818 literal to be optional.
820 2004-05-18 Paul Brook <paul@codesourcery.com>
821 Feng Wang <fengwang@nudt.edu.cn>
823 * Makefile.am (i_pow_c): Set it. Add build rule.
824 (gfor_built_src): Use it.
825 (m4_files): add m4/pow.m4.
826 * Makefile.in: Regenerate.
827 * m4/pow.m4: New file.
828 * generated/pow_*.c: Regenerate.
830 2004-05-18 Paul Brook <paul@codesourcery.com>
832 * Makefile.am: Remove references to types.m4.
833 * m4/iparm.m4: Merge with types.m4.
834 * m4/types.m4: Remove.
835 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
836 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
837 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
838 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
839 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
840 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
841 Update to use new iparm.m4.
842 * generated/*.c: Regenerate.
844 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
847 * gfortran.h (offset_t): Rename to ...
848 (gfc_offset): ... this.
849 * io/backspace.c (formatted_backspace, unformatted_backspace),
850 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
851 transfer.c (us_read, us_write, next_record_r, next_record_w),
852 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
853 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
854 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
855 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
856 occurences of offset_t by gfc_offset.
858 2004-05-16 Paul Brook <paul@codesourcery.com>
860 * io/format.c (write_real): Don't include padding in format.
862 2004-05-16 Paul Brook <paul@codesourcery.com>
864 * io/format.c (format_lex): Make c an int.
866 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
867 Paul Brook <paul@codesourcery.com>
869 * io/write.c (write_logical): Don't print extra blank.
870 (write_integer): Base field width on kind.
871 (list_formatted_write): Output initial blank.
873 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
875 * io/io.h (flush): Add prototype.
876 * io/transfer.c (finalize_transfer): Flush partial records.
877 * io/unix.c (flush): New function.
879 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
882 * io/io.h (unit_t): Rename to ...
884 (unit_root, current_unit, find_file, find_unit, get_unit): Now
886 (delete_file, insert_unit, close_unit): Argument now of type
888 * backspace.c (st_backspace), close.c (st_close), endfile.c
889 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
890 (test_endfile, edit_modes, new_unit, already_open, st_open),
891 rewind.c (st_rewind), transfer.c (current_unit), unit.c
892 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
893 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
894 get_unit, init_units, close_unit), unix.c (find_file0,
895 find_file, delete_file): Replace all occurences of unit_t by
898 2004-05-15 Bud Davis <bdavis9659@comcast.net>
901 * io/write.c (write_a): right justify A edit output.
903 2004-05-14 Bud Davis <bdavis9659@comcast.net>
906 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
907 * runtime/main.c(init): Call random_seed as part of MAIN init.
909 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
911 * io/format.c: (parse_format_list): No comma is required after
914 2004-05-13 Bud Davis <bdavis9659@comcast.net>
917 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
919 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
920 Steven Bosscher <stevenb@suse.de>
923 * libgfortran.h: Include <inttypes.h> if available.
925 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
927 * io/unix.c (MAP_FAILED): Define if missing.
928 (mmap_alloc): Cast MAP_FAILED to char *.
929 (mmap_open): Likewise.
931 2004-04-26 Bud Davis <bdavis9659@comcast.net>
933 * generated/_abs_i8.f90: New file.
934 * generated/_abs_c4.f90: New file.
935 * generated/_abs_c8.f90: New file.
936 * Makefile.am: Add them.
937 * Makefile.in: Regenerate.
939 2004-04-26 Bud Davis <bdavis9659@comcast.net>
942 * generated/_abs_i4.f90: New file.
943 * Makefile.am: Add it.
944 * Makefile.in: Regenerate.
946 2004-04-25 Bud Davis <bdavis9659@comcast.net>
949 * io/list_read.c(list_formatted_read): finish consuming the
950 spaces and seperators at eoln to get ready for next item.
952 2004-04-23 Bud Davis <bdavis9659@comcast.net>
955 * io/read.c(read_a): Handle field width > destination and no field width.
957 2004-04-22 Bud Davis <bdavis9659@comcast.net>
960 * io/format.c (format_item): gracefully handle a ')'
961 when it is the first character encountered in the string.
963 2004-04-11 Bud Davis <bdavis9659@comcast.net>
966 * io/transfer.c (next_record): Update last_record when
967 more than one record is written to a direct access file
968 with one write statement.
970 2004-04-11 Bud Davis <bdavis9659@comcast.net>
973 * io/transfer.c (next_record_w) : No '\n' if internal.
974 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
976 2004-04-11 Bud Davis <bdavis9659@comcast.net>
978 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
979 Will need to change this later to support direct access files > 2gb.
981 2004-04-03 Bud Davis <bdavis9659@comcast.net>
984 * io/transfer.c (next_record_r) : Skip to next record.
986 2004-04-03 Bud Davis <bdavis9659@comcast.net>
989 * io/transfer.c (next_record): Update last_record for DIRECT
991 2004-04-03 Bud Davis <bdavis9659@comcast.net>
994 * io/unix.c (find_file0): Use fd field of struct
996 2004-04-03 Bud Davis <bdavis9659@comcast.net>
999 * io/inquire.c (inquire_via_unit): Changed return string for
1000 BLANK=NULL. Use correct variable for ACTION.
1002 2004-04-01 Bud Davis <bdavis9659@comcast.net>
1005 * io/read.c (read_f): Allow a decimal without a leading digit.
1006 * io/write.c (output_float): remove a leading '0' to keep from
1007 overflowing the field (F edit descriptor).
1009 2004-04-01 Bud Davis <bdavis9659@comcast.net>
1012 * io/open.c (new_unit),
1013 * io/io.h : new_unit is now visible
1014 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
1015 * io/transfer.c (data_transfer_init): remove compile warnings.
1016 * io/rewind.c (st_rewind): ftruncate if writing.
1018 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1020 * write.c (write_l): Use extract_int for 'L' edit descriptor.
1022 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1025 * io/io.h (global_t):
1026 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
1027 Move eof_jmp to a global structure.
1028 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
1030 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1032 * m4/cexp.m4 (csqrt): Actually use the passed value.
1033 * generated/exp_c?.c: Regenerate.
1035 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1038 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
1039 * open.c (new_unit): Moved test for positioned direct access error.
1040 (init_units): Corrected calculation of max records.
1042 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
1044 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
1045 * Makefile.in: Regenerate.
1046 * m4/dotprodc.m4: New file. Implement complex dot_product.
1047 * m4/dotprod.m4: Delete the complex implementation.
1048 * generated/dotprod_*: Update.
1050 2004-02-07 Bud Davis <bdavis9659@comcast.net>
1052 * transfer.c (write_constant_string): Do not delete H's in hollerith
1055 2004-01-05 Andrew Pinski <apinski@apple.com>
1057 * configure.in: Check for csin in -lmx also.
1058 * configure: Regenerate.
1060 2004-01-01 Paul Brook <paul@codesourcery.com>
1062 * io/list_read.c (find_nml_node): Make static.
1063 (match_namelist_name): Ditto.
1064 * io/read.c (convert_precision_real): Make static, fix spelling.
1065 * io/transfer.c (extract_real): Remove unused prototype.
1066 (st_set_nml_var): Make static.
1067 * io/write.c (extract_real): Make static.
1069 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
1071 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
1073 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
1075 * io/transfer.c (data_transfer_init): Give a runtime error for list
1076 formatted reads and writes from/to files opened for unformatted IO.
1078 2003-11-30 Paul Brook <paul@nowt.org>
1080 * runtime/memory.c (push_context): Remove.
1081 (pop_context): Remove.
1082 * libgfortran.h: Remove prototypes.
1084 2003-11-27 Paul Brook <paul@nowt.org>
1086 * runtime/memory.c (deallocate): Nullify pointer after freeing.
1088 2003-11-27 Paul Brook <paul@nowt.org>
1090 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
1091 * libgfortran.h: Ditto.
1092 * m4/in_pack.m4: Ditto.
1093 * runtime/in_pack_generic.c: Ditto.
1094 * runtime/memory.c: Ditto.
1096 2003-11-26 Richard Henderson <rth@redhat.com>
1098 * m4/exponent.m4, m4/fraction.m4: New.
1099 * m4/nearest.m4, m4/set_exponent.m4: New.
1100 * generated/*: Update.
1101 * Makefile.am: Add them.
1102 (AM_CFLAGS): New. Use -std=gnu99.
1103 * Makefile.in: Regenerate.
1105 2003-11-08 Paul Brook <paul@nowt.org>
1108 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
1109 * m4/maxloc1.m4: Ditto.
1110 * m4/minloc0.m4: Ditto.
1111 * m4/minloc1.m4: Ditto.
1112 * m4/ifunction.m4: Set return value for zero sized arrays.
1113 * m4/iforeach.m4: Ditto.
1114 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
1115 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
1116 * generated/*: Update.
1118 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
1121 * io/list_read.c (eat_spaces): Treat tab as space.
1123 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
1125 * intrinsics/random.c: Add reference to paper containing algorithm.
1126 (random_seed): Extra error checking and proper handling of arrays.
1127 (arandom_r4, arandom_r8): Implement.
1129 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
1132 * runtime/memory.c (allocate_size): Allow allocation
1133 of zero-sized objects.
1135 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
1138 * open.c (new_unit): Open without a file name opens
1139 a file with name fort.<unit>.
1141 2003-10-12 Feng Wang <wf_cs@yahoo.com>
1143 * intrinsics/cshift0.c: New file.
1144 * m4/cshift1.m4: New file
1145 * generated/cshift*.c: New files.
1146 * Makefile.am: Add them.
1147 * Makefile.in: Regenerate.
1149 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
1151 * io/list_read.c (read_character): Remove unwanted call to free_saved.
1153 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
1155 * intrinsics/string_intrinsics.c (string_trim): New function.
1156 (string_repeat): New function.
1158 2003-10-11 Paul Brook <paul@nowt.org>
1160 * intrinsics/dprod_r8.f90: New file.
1161 * Makefile.am (gfor_specific_src): Add it.
1162 (gfor_built_specific_src): Rename from gfor_build_specific_c.
1164 (gfor_specific2_src): Rename from gfor_built_specific2_c.
1166 * Makefile.in: Regenerate.
1167 * generated/_aint_*.f90: New files.
1168 * generated/_anint*.f90: New files.
1169 * generated/_atan2*.f90: New files.
1170 * generated/_mod*.f90: New files.
1172 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
1174 * intrinsics/selected_kind.f90: New file.
1175 * Makefile.am: Add it.
1176 * Makefile.in: regenerate.
1178 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
1179 Paul Brook <paul@nowt.org>
1181 * intrinsics/random.c: New file.
1182 * Makefile.am (gfor_hemper_src): Add it.
1183 (gfor_specific_c): Fix typo.
1185 2003-09-19 Paul Brook <paul@nowt.org>
1187 * All: rename g95->gfc.
1189 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
1191 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
1193 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
1195 * io/write.c (write_float): Dectection of positive infinite number,
1196 Not a Number(NaN) and negative infinite number.
1197 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
1198 output a very_very small number ( < 0.1e-100 ).
1200 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
1202 * libgfortran.h (xtoa, itoa): Parameter modified.
1203 * io/io.h (namelist_info): Declaration to support namelist I/O
1204 (st_parameter): Add namelist related component
1205 (ionml, empty_internal_buffer, st_set_nml_var_int,
1206 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
1207 st_set_nml_var_log): Declaration
1208 (set_integer, set_integer): Parameter changed
1209 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
1211 (parse_format_list): Fix bug about FMT_SLASH
1212 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
1213 newly allocated saved_string
1214 (next_char): Add detection of End_Of_Line support
1215 (convert_integer): Now can process 64 bits interger
1216 (read_real): Bug fixed
1217 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
1218 (match_namelist_name): New implemention
1219 * io/lock.c (ionml): New global variable
1220 (library_end): Free memory in ionml
1221 * io/open.c (st_open): Variable initializtion
1222 * io/read.c (max_value): 64 bits interger support
1223 (convert_precsion_real): New procedure to replace "strtod" with more
1225 (read_f, read_radix): Input bug fix
1226 * io/transfer.c: (sf_seen_eor): New static variable
1227 (read_sf): Zeroize base buffer; fix bugs: single read statement can
1228 not get input in mutli line when read from stdin
1229 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
1231 (data_transfer_init): Clear internal buffer for Internel File I/O.
1232 Internal File now worked. Detect some error condition for namelist.
1234 (next_record_w): Internal file and Namelist I/O support.
1235 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
1236 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
1237 * io/unit.c (implicit_unit): Deletion
1238 (get_unit): Now cannot open a unit implicitly.
1239 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
1241 (mem_alloc_r_at): Internal file I/O support added
1242 (empty_internal_buffer): New function
1243 * io/write.c (extract_int): Support 64 bits interger processing
1244 (output_float): Varibale initialization
1245 (write_float): Infinite real number detection.
1246 (write_int): 64 bits integer I/O support
1247 (write_decimal): New function to output decimal number
1248 (otoa, btoa): Better implemention and 64 bits interger support
1249 (namelist_write): New function
1250 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
1253 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1255 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
1256 get_mem ): Add attribute.
1257 * intrinsics/spread_generic.c (__spread): Fix spelling.
1258 * io/inquire.c (inquire_via_filename): Add const.
1259 * io/io.h (sys_exit): Add attribute.
1260 * io/io.h (move_pos_offset): Add move_pos_offset.
1261 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
1262 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
1263 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
1264 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
1265 write_z): Add const.
1266 * io/read.c (convert_real): Add const.
1267 * io/transfer.c (type_name): Add const.
1268 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
1269 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
1270 inquire_read, inquire_write, inquire_readwrite): Add const.
1271 * io/write.c (output_float): Remove unused variable.
1272 * io/write.c (write_a, extract_int, extract_real, output_float,
1273 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
1274 write_e, write_f, write_en, write_es, write_logical, write_integer,
1275 write_character, write_real, write_complex): Add const.
1276 * runtime/error.c (rtoa): Remove unused variable.
1277 * runtime/select.c (select_string): Add const.
1278 * runtime/stop.c (stop_string): Add const.
1280 2003-08-10 Paul Brook <paul@nowt.org>
1282 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
1283 (FFLAGS): Add -fno-underscoring.
1284 * Makefile.in: Regenerate.
1285 * intrinsics/abort.c: New file.
1287 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
1289 * fmain.c (main): Do not call init and cleanup; call set_args instead.
1290 * libgfortran.h (init, cleanup): Remove declarations.
1291 (set_args): Add declaration.
1292 * runtime/main.c (init, cleanup): Make them static, and give them
1293 the constructor and destructor attributes.
1294 (set_args): New function.
1296 2003-08-10 Paul Brook <paul@nowt.org>
1298 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
1299 on which string is longest.
1301 2003-08-10 Paul Brook <paul@nowt.org>
1303 * Makefile.am (EXTRA_DIST): Remove old files.
1304 * Makefile.in: Regenerate.
1306 2003-07-26 Paul Brook <paul@nowt.org>
1308 Rename library to libgfortran.
1309 * libgfortran.h: Change prefix to _libgfortran_.
1311 2003-07-24 Paul Brook <paul@nowt.org>
1313 * configure.in: Don't pull in system libtool. Use toplevel
1316 2003-07-22 Paul Brook <paul@nowt.org>
1318 Regenerate all configury files.
1320 2003-07-09 Chun Huang <compiler@sohu.com>
1322 * intrinsics/string_intrinsic.c (string_scan): New function.
1323 (string_verify): New function.
1325 2003-06-25 Paul Brook <paul@nowt.org>
1327 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
1328 (mem_seek): Don't bother setting physical_offset.
1330 2003-06-20 Paul Brook <paul@nowt.org>
1332 * libgfor.h (stop_numeric): Declare.
1333 * runtime/pause.c: New file.
1334 * Makefile.am: Add it.
1336 2003-06-08 Paul Brook <paul@nowt.org>
1338 * m4/cexp.m4 (cabs): Use correct typed version.
1339 (csqrt): New function.
1341 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
1343 Spotted by Benjamin and Tobias:
1344 * io/list_read.c: Add Separator '\t'.
1345 (parse_real, read_real): Accept real values starting with an optional
1346 sign follows a decimal point.
1348 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
1350 * Makefile.am: Don't put cmath objects in subdir.
1351 * configure.in: Rename MATHOBJ to MATH_OBJ.
1353 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
1355 * intrinsics/associated.c: New file.
1356 * Makefile.am: Add it. Regenerate Makefile.in.
1357 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
1358 G95_DESCRIPTOR_DTYPE.
1360 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
1362 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
1363 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
1364 the scale_factor to 0 for F editing.
1366 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
1368 * libgfor.h: Only include stdint.h if it exists.
1370 2003-05-07 Paul Brook <paul@nowt.org>
1372 * libgfor.h: Use stdint.h types.
1373 * intrinsics/ishift.c: Ditto.
1374 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
1376 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
1378 * libgfor.h (offsetof): Define if nobody else does.
1379 * runtime/memory.c (HEADER_SIZE): Use it.
1381 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
1383 * configure.in: Require autoconf 2.54.
1385 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
1386 Paul Brook <paul@nowt.org>
1388 * intrinsics/reshape_generic.c: Copy the whole element, not just the
1390 * m4/transpose.m4: New file.
1391 * Makefile.am: Add them.
1392 Regenerate generated files.
1394 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1396 * io/format.c (parse_format_list): Allow 'X' without integer
1397 prefix. This is an extension. Interpretation is '1X'.
1399 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
1401 * io/format.c (parse_format_list): Allow '0P'.
1403 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1405 * Makefile.in: Re-regenerate for automake 1.7.3.
1407 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
1409 Port implementation for CHARACTER SELECT from Andy's tree.
1410 * runtime/select.c: New file
1411 * Makefile.am: Add it.
1412 * Makefile.in: Regenerate.
1414 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
1416 * io/transfer.c (formatted_transfer): Modified
1417 * io/unix.c (move_pos_offset): New Function.
1418 * io/format.c (parse_format_list): Modified.
1420 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
1422 * io/write.c (write_float,write_real): New implemention of
1423 FMT_G and default float editing.
1424 (calculate_exp,calculate_G_format,output_float): New Function.
1425 (write_float,write_real,write_logical): Modified
1426 * libgfor.h (default_rtoa): Remove Declaration.
1427 * runtime/error.c (default_rtoa): Remove Function.
1429 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
1432 * io/write.c (extract_real): Add missing break statement.
1434 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1436 * cpu_time.c: Make sure we have a definition of HZ. Don't
1437 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
1439 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1440 Paul Brook <paul@nowt.org>
1442 * configure.in: Check for process time headers and GETTIMEOFDAY.
1443 * makefile.am: Add intrinsics/cpu_time.c.
1444 * acinclude.m4: New file.
1445 * intrinsics/cpu_time.c: New file.
1446 * m4/dotprodl.m4: Fix typo.
1447 Regenerate generated files.
1449 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
1451 * io/write.c (extract_real): Ouput floating point value.
1452 (write_float): New Function.
1453 (write_e, write_f, write_en, write_es): Modified
1454 * io/transfer.c (formatted_transfer): Modified.
1455 * libgfor.h (default_rtoa): Declaration.
1456 (rtoa): Declaration.
1457 * runtime/error.c (default_rtoa): New Function.
1458 (rtoa): New Function.
1460 2003-04-05 Paul Brook <paul@nowt.org>
1462 * intrinsics/spread_generic.c: New file.
1463 * Makefile.am: Add it. Regenerate Makefile.in.
1465 2003-03-29 Paul Brook <paul@nowt.org>
1467 * intrinsics/pack_generic.c: New file.
1468 * intrinsics/unpack_generic.c: New file.
1469 * Makefile.am: Add them. Regenerate Makefile.in.
1471 2003-03-25 Paul Brook <paul@nowt.org>
1473 * intrinsics/eoshift0.c: New file.
1474 * intrinsics/eoshift2.c: New file.
1475 * m4/eoshift1.m4: New file.
1476 * m4/eoshift3.m4: New file.
1477 * Makefile.am: Add them.
1478 * in_unpack_generic.c: Initialize src.
1479 Regenerate generated files.
1481 2003-03-14 Paul Brook <paul@nowt.org>
1483 * m4/shape.m4: Work properly with array temporaries.
1484 * m4/in_pack.m4: Skip redundant checks for array temporaries.
1485 * runtime/in_pack_generic.c: Ditto.
1487 2003-03-12 Paul Brook <paul@nowt.org>
1489 * m4/shape.m4: Work properly with noncontiguous arrays.
1491 2003-03-08 Paul Brook <paul@nowt.org>
1493 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1494 * runtime/in_pack_generic.c: Ditto.
1496 2003-02-08 Paul Brook <paul@nowt.org>
1498 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1499 * io/close.c (st_close): Return void.
1500 * io/open.c (st_open): Return void.
1501 * libgfor.h (g95_array_char): Declare.
1502 (internal_malloc_size): Ditto.
1503 (internal_pack*, internal_unpack*): Ditto.
1504 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1506 * m4/in_unpack.m4: Include file fixes.
1507 * m4/reshape.m4: Increment the correct source pointer.
1508 * Makefile.am (maxloc): Fix typo.
1509 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1510 storage if neccessary. Fix logic for packed arrays.
1511 * runtime/in_unpack_generic.c: Call optimized functions.
1512 * runtime/main.c: Use runtime_error to report errors.
1513 * memory.c (internal_malloc_size): Make non-static.
1515 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1517 * reshape_packed.c, lock.c: Add #include <string.h>.
1518 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1519 environ.c, error.c, memory.c, string.c: Add const.
1520 * error.c (show_locus): Add void.
1522 2003-02-21 Paul Brook <paul@nowt.org>
1524 * m4/in_pack.m4: Avoid returning const * parameter.
1525 * Makefile.am: Only regenerate files in maintainer mode.
1527 2003-02-20 Paul Brook <paul@nowt.org>
1529 Add array repacking support functions.
1530 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1531 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1532 * Makefile.am: Build them. Regenerate configury files.
1533 * generated/: New directory for generated files (need to move
1534 everything else there).
1536 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1538 * m4/cexp.m4: Fix typo.
1540 2003-01-26 Paul Brook <paul@nowt.org>
1542 * intrinsics/: Add missing generated files.
1544 2003-01-26 Paul Brook <paul@nowt.org>
1546 * Makefile.am: Put -I before the filename.
1548 2003-01-24 Paul Brook <paul@nowt.org>
1550 * configure.in: Add AM_MAINTAINER_MODE.
1552 2003-01-23 Paul Brook <paul@nowt.org>
1554 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1556 Also regenerate other configury files.
1558 2003-01-21 Paul Brook <paul@nowt.org>
1560 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1562 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1564 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1565 Don't include "alloca.h".
1567 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1569 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1570 * Makefile.am: Adjust file name.
1571 * Makefile.in: Regenerate.
1572 * gfortypes.h: Kill, include everything in...
1573 * libgfor.h: ...here. Include config.h
1574 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1575 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1576 intrinsics/reshape_packed.c, intrinsics/size.c,
1577 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1578 for prefix for all functions instead of hardcoded.
1580 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1582 * io/lock.c (library_end): Propagate library return
1585 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1587 Port fixes from Andy's tree:
1588 * io/read.c (read_decimal): Reverse sense of overflow
1589 comparison during integer reads.
1590 * io/format.c (revert): Fix comment.
1591 (next_format): Fix format revision.
1592 * io/unix.c: Fix and simplify mmap version of stream
1595 2003-01-11 Paul Brook <paul@nowt.org>
1597 * configure, Makefile.in: Regenerate.
1599 2003-01-11 Paul Brook <paul@nowt.org>
1601 * runtime/stop.c: Rewrite.
1603 2003-01-08 Paul Brook <paul@nowt.org>
1605 * configure, Makefile.in: Regenerate.
1607 2003-01-05 Paul Brook <paul@nowt.org>
1609 * (*.m4) Move to m4/.
1610 * intrinsics/string.c (_gfor_string_index): New Function.
1612 2002-12-29 Paul Brook <paul@nowt.org>
1614 * intrinsics/reshape.*: New files.
1615 * gcc_config.patch: Update to new GCC configure system.
1617 2002-10-10 Paul Brook <paul@nowt.org>
1619 * intrinsics/size.c: New file.
1620 * intrinsics/shape.m4: New file.
1621 * Makefile.am: Add above files.
1623 2002-10-02 Paul Brook <paul@nowt.org>
1625 * fmain.c (main): Move here.
1626 * libgfor.c: From here.
1627 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1628 * Makefile.am: Build libgforbegin.
1629 * gcc_config.patch: Remove stray -march=athlon.
1630 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1631 * ifunction.m4: Move variable declarations to allow compilation with
1633 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1634 * README: Document use of patch -p1.
1636 2002-09-12 Paul Brook <paul@nowt.org>
1638 * math/*: Add complex math library functions.
1639 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1640 * Makefile.am: Add details for above.
1641 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1643 2002-09-09 Paul Brook <paul@nowt.org>
1645 * libgfor.c (determine_endianness): Use an array rather than a struct.
1646 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1648 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1650 * libgfor.c: Add fatal signal handler.
1651 Romove superfluous abort() calls.
1653 2002-09-07 Paul Brook <paul@nowt.org>
1655 * Makefile.am, intrinsics: Major rewrite.
1657 2002-09-02 Paul Brook <paul@nowt.org>
1659 * Makefile.am: Added -I$(srcdir) to m4 rule.
1661 2002-08-30 Paul Brook <paul@nowt.org>
1663 * io/*: Integrated libgforio.
1664 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1665 intrinsics in the intrisics directory.
1666 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1667 filename. Add 'and' and 'all' intrinsics.
1669 2002-08-17 Paul Brook <paul@nowt.org>
1671 * ALL: First release as more than just a single file