1 2005-01-07 Bud Davis <bdavis9659@comcast.net>
4 * transfer.c (next_record_r): always skip the
5 eol search if it was found during sf_read.
7 2004-12-27 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
9 * libgfortran/libgfortran.h (GFC_UINTEGER_1, GFC_UINTEGER_2):
11 * intrinsics/ishftc.c: Update copyright years.
12 (ishftc8): Change 'shift' and 'size' to GFC_INTEGER_4.
13 * intrinsics/mvbits.c: Correct non-ASCII character in my name.
14 Add implementations for GFC_INTEGER_1 and GFC_INTEGER_2.
16 2004-12-23 Bud Davis <bdavis9659@comcast.net>
19 * io/tranfer.c (formatted_transfer): moved check for
20 format reversion inside the processing loop.
22 2004-12-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
25 * libgfortran.h (itoa): Rename to gfc_itoa.
26 * io/write.c (itoa): Same.
27 * runtime/environ.c (itoa): Same.
28 * runtime/error.c (itoa): Same.
30 2004-12-15 Bud Davis <bdavis9659@comcast.net>
31 Steven G. Kargl <kargls@comcast.net>
34 * io/list_read.c (read_real): do not push back a comma when
35 it delimits a real value without a decimal point
37 2004-12-14 Steve Ellcey <sje@cup.hp.com>
39 * libgfortran/io/transfer.c (us_read): Use memcpy/memset
40 instead of assignment to fill unaligned buffer.
42 (next_record_w): Ditto.
44 2004-12-14 Steven G. Kargl <kargls@comcast.net>
47 * gfortran.h: typedef GFC_INTEGER_1 and GFC_INTEGER_2
48 * intrinsics/cshift0.c (cshift0_1,cshift0_2): New functions.
49 * intrinsics/eoshift0.c (eoshift0_1,eoshift0_2): New functions.
50 * intrinsics/eoshift2.c (eoshift2_1,eoshift2_2): New functions.
52 2004-12-13 David Edelsohn <edelsohn@gnu.org>
54 * io/transfer.c (read_sf): Change bitwise "and" to logical "and".
56 2004-12-12 Richard Henderson <rth@redhat.com>
58 * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
59 intrinsics/pack_generic.c, intrinsics/reshape_generic.c,
60 intrinsics/spread_generic.c, intrinsics/transpose_generic.c,
61 intrinsics/unpack_generic.c, m4/cshift1.m4, m4/dotprod.m4,
62 m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
63 m4/iforeach.m4, m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4,
64 m4/reshape.m4, m4/shape.m4, m4/transpose.m4: Use standard prefix
66 * generated/*: Rebuild.
68 2004-12-12 Richard Henderson <rth@redhat.com>
70 * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY): New.
71 (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT): New.
72 (LIBGFOR_CHECK_ATTRIBUTE_ALIAS): New.
73 * configure.ac: Use them.
74 * configure, config.h.in, aclocal.m4: Rebuild.
75 * libgfortran.h (prefix): Remove.
76 (PREFIX, IPREFIX): New.
77 (sym_rename, sym_rename1, sym_rename2): New.
78 (internal_proto, export_proto, export_proto_np): New.
79 (iexport_proto, iexport): New.
80 (iexport_data_proto, iexport_data): New.
81 * intrinsics/abort.c, intrinsics/args.c, intrinsics/associated.c,
82 intrinsics/cpu_time.c, intrinsics/cshift0.c,
83 intrinsics/date_and_time.c, intrinsics/env.c, intrinsics/eoshift0.c,
84 intrinsics/eoshift2.c, intrinsics/etime.c, intrinsics/exit.c,
85 intrinsics/flush.c, intrinsics/fnum.c, intrinsics/getXid.c,
86 intrinsics/getcwd.c, intrinsics/ishftc.c, intrinsics/mvbits.c,
87 intrinsics/pack_generic.c, intrinsics/rand.c, intrinsics/random.c,
88 intrinsics/reshape_generic.c, intrinsics/size.c,
89 intrinsics/spread_generic.c, intrinsics/stat.c,
90 intrinsics/string_intrinsics.c, intrinsics/system.c,
91 intrinsics/system_clock.c, intrinsics/transpose_generic.c,
92 intrinsics/umask.c, intrinsics/unlink.c, intrinsics/unpack_generic.c,
93 io/backspace.c, io/close.c, io/endfile.c, io/inquire.c, io/io.h,
94 io/open.c, io/rewind.c, io/transfer.c, libgfortran.h, m4/cshift1.m4,
95 m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4,
96 m4/eoshift3.m4, m4/exponent.m4, m4/fraction.m4, m4/iforeach.m4,
97 m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/nearest.m4,
98 m4/pow.m4, m4/reshape.m4, m4/set_exponent.m4, m4/shape.m4,
99 m4/transpose.m4, runtime/environ.c, runtime/error.c,
100 runtime/in_pack_generic.c, runtime/in_unpack_generic.c,
101 runtime/main.c, runtime/memory.c, runtime/pause.c, runtime/select.c,
102 runtime/stop.c: Use them to mark symbols internal or external.
103 * generated/*: Rebuild.
105 2004-12-09 David Edelsohn <edelsohn@gnu.org>
108 Revert 2004-12-07 change.
109 * Makefile.am (AM_MAKEFLAGS): Delete.
110 * Makefile.in: Regenerate.
112 2004-12-07 Steve Ellcey <sje@cup.hp.com>
114 * libgfortran/Makefile.am (AM_MAKEFLAGS): New.
115 * libgfortran/Makefile.in: Regenerate
117 2004-12-07 Steve Ellcey <sje@cup.hp.com>
119 * io/io.h (open_external): Change prototype.
120 * io/unix.c (regular_file): Change prototype and set flags->action if
122 (open_external): Ditto.
123 * io/open.c (new_unit): Let open_external set flags->action.
125 2004-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
127 * configure.ac: Check for ieeefp.h. Check for fabsf in libm.
128 * configure: Regenerate.
129 * config.h.in: Likewise.
130 * c99_protos.h: New file.
131 * libgfortran.h: Include c99_protos.h and conditionally ieeefp.h.
132 * intrinsics/c99_functions.c (fabsf): New function.
134 2004-12-06 Richard Henderson <rth@redhat.com>
136 * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
137 intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
138 intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
139 m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
141 * generated/*: Rebuild.
143 2004-12-06 Richard Henderson <rth@redhat.com>
145 * intrinsics/c99_functions.c, intrinsics/eoshift0.c,
146 intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
147 intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
148 intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
149 intrinsics/spread_generic.c, intrinsics/stat.c,
150 intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
151 intrinsics/transpose_generic.c, intrinsics/unlink.c,
152 intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
153 io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
154 io/write.c, runtime/environ.c, runtime/error.c,
155 runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
156 runtime/memory.c, runtime/pause.c, runtime/stop.c,
157 runtime/string.c: Whitespace fixes.
159 2004-12-06 Richard Henderson <rth@redhat.com>
161 * Makefile.am: Generate all m4 output under $(srcdir).
162 * Makefile.in: Regenerate.
164 2004-12-02 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
167 * io/transfer.c (unformatted_read, unformatted_write): width of
168 a COMPLEX is twice its kind.
170 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
172 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
173 * configure, aclocal.m4, Makefile.in: Regenerate.
175 2004-12-02 Bud Davis <bdavis9659@comcast.net>
178 * io/unix.c (fd_alloc_w_at): Update file_length when extending.
179 * io/backspace.c (formatted_backspace): Reset endfile after backspace.
181 2004-12-02 Bud Davis <bdavis9659@comcast.net>
183 * io/inquire.c (inquire_via_unit): do not allow a direct access
184 file to be opened for sequential I/O.
186 2004-12-02 Steven G. Kargl <kargls@comcast.net>
187 Paul Brook <paul@codesourcery.com>
189 * intrinsics/flush.c: New file.
190 * intrinsics/fnum.c: ditto
191 * intrinsics/stat.c: ditto
192 * io/io.h (unit_to_fd): Add prototype.
193 * io/unix.c (unit_to_fd): New function.
194 * configure.ac: Add test for members of struct stat. Check for
195 sys/types.h and sys/stat.h
196 * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
197 * configure.in: Regenerate.
198 * config.h.in: Regenerate.
199 * Makefile.in: Regenerate.
201 2004-12-01 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
203 * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
205 2004-11-28 Bud Davis <bdavis9659@comcast.net>
207 * io/unix.c (mmap_alloc_w_a): check for a write to a location
208 less than the mapped area.
210 2004-11-27 Bud Davis <bdavis9659@comcast.net>
213 * io/endfile.c (st_endfile): flush the stream before truncating.
215 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
217 * configure: Regenerate for libtool change.
219 2004-11-22 Steven Bosscher <stevenb@suse.de>
222 * configure.ac: Check for finite in libm.
223 * libgfortran.h: Define isfinite macro if not defined.
224 * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
226 * io/write.c (write_float): Use isfinite instead of finite.
227 * configure, config.h.in: Rebuilt.
229 2004-11-20 Roger Sayle <roger@eyesopen.com>
231 * io/write.c (write_float, list_formatted_write): Fix indentation.
233 2004-11-20 Eric Botcazou <ebotcazou@libertysurf.fr>
236 * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
237 * configure.ac: Include LIBGFOR_TARGET_ILP32.
238 * configure: Regenerate.
239 * config.h.in: Likewise.
240 * libgfortran.h: Provide default definitions for C99 types
241 on ILP32 targets that don't have them.
244 * configure.ac: Check for snprintf.
245 * configure: Regenerate.
246 * config.h.in: Likewise.
247 * intrinsics/date_and_time.c (date_and_time): Do not
248 use snprinf if it is not available.
249 * io/write.c (output_float): Likewise.
251 2004-11-20 Steven G. Kargl <kargls@comcast.net>
253 * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
254 * Makefile.in: Regenerated
255 * intrinsics/umask.c: New file
256 * intrinsics/unlink.c: ditto
257 * intrinsics/exit.c: ditto
259 2004-11-18 Victor Leikehman <lei@il.ibm.com>
261 * m4/matmul.m4: Loops reordered to improve cache behavior.
262 * generated/matmul_??.c: Regenerated.
264 2004-11-10 Paul Brook <paul@codesourcery.com>
267 * configure.ac: Check for strtof.
268 * configure: Regenerate.
269 * config.h.in: Regenerate.
270 * io/read.c (convert_real): Use strtof if available.
271 (convert_precision_real): Remove.
272 (read_f): Avoid poor exponentiation algorithm.
274 2004-11-05 Andreas Schwab <schwab@suse.de>
276 * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
277 AC_PROG_F77, F77 and FFLAGS.
278 * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
279 FCCOMPILE instead of F77COMPILE.
280 * configure, Makefile.in: Regenerate.
282 2004-11-05 Kelley Cook <kcook@gcc.gnu.org>
284 * acinclude.m4: Properly quote AC_CACHE_CHECK.
285 * Makefile.am: Add in ACLOCAL_AMFLAGS.
286 * aclocal.m4, configure, Makefile.in: Regenerate.
288 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
290 * config.h.in: Regenerate.
291 * configure: Regenerate.
292 * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
293 * io/unix.c (S_IRGRP): Define if undefined.
297 (tempfile): Use mktemp if mkstemp missing, fix typos.
299 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
301 * intrinsics/system.c ("libgfortran.h"): Move after system headers.
303 2004-10-30 Canqun Yang <canqun@nudt.edu.cn>
305 * intrinsics/rand.c (irand): Handle NULL argument.
307 2004-10-07 Paul Brook <paul@codesourcery.com>
309 * io/transfer.c (finalize_transfer): Free internal streams.
310 * io/unix.c (mem_close): Free stream object.
312 2004-10-07 Paul Brook <paul@codesourcery.com>
314 * intrinsics/string_intrinsics.c (string_verify): Fix off by one
317 2004-10-06 Paul Brook <paul@codesourcery.com>
320 * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
322 2004-10-04 Andrew Pinski <pinskia@physics.uc.edu>
324 * intrinsics/mvbits.c: Commit the file.
326 2004-10-04 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
329 * intrinsics/pack_generic.c (__pack): Allocate memory for return array
330 if not done by caller.
331 (__pack_s): New function.
332 * runtime/memory.c (internal_malloc, internal_malloc64): Allow
333 allocating zero memory.
336 * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
337 * Makefile.in: Regenerate.
338 * intrinsics/mvbits.h: New file.
341 * intrinsics/system.c: New file.
342 * Makefile.am: Add dependency for the new file.
343 * Makefile.in: Regenerate.
345 2004-10-04 Paul Brook <paul@codesourcery.com>
346 Bud Davis <bdavis9659@comcast.net>
350 * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
352 * io/write.c (output_float): Don't output minus zero.
354 2004-10-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
356 * intrinsics/abort.c ("libgfortran.h"): Move.
357 * intrinsics/date_and_time.c ("libgfortran.h"): Same.
358 * intrinsics/write.c ("libgfortran.h"): Same.
360 2004-09-26 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
363 * config.h.in (HAVE_POWF): Undefine.
364 * configure.ac: Check for 'powf' in library.
365 * configure: Regenerate.
366 * intrinsics/c99_functions.c (powf): New function.
368 2004-09-24 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
370 * intrinsics/etime.c (etime_): New function.
372 2004-09-21 Steven G. Kargl <kargls@comcast.net>
374 * libgfortran.h: define gfc_alloca()
375 * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
377 2004-09-21 Bud Davis <bdavis9659@comcast.net>
380 * io/list_read.c (namelist_read): ignore spaces after
381 the '=' for namelist reads.
383 2004-09-15 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
385 * config.h.in: Regenerate.
386 * configure: Regenerate.
387 * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
388 * unix.c: Include stdio.h.
389 (HAVE_SYS_MMAN_H): Check.
390 (PROT_READ, PROT_WRITE): Provide default definitions.
392 2004-09-15 Steven G. Kargl <kargls@comcast.net>
394 * intrincics/getcwd.c: New file.
395 * Makefile.am: Add getcwd.c.
396 * Makefile.in: Regenerated.
398 2004-09-15 Steven G. Kargl <kargls@comcast.net>
399 Paul Brook <paul@codesourcery.com>
401 * intrinsics/env.c (getenv, get_environmental_variable): Remove
402 trailing white space. Use alloca. Honour trim_name.
404 2004-09-13 Bud Davis <bdavis9659@comcast.net>
408 * io/list_read.c (list_formatted_read): Handle trailing spaces
411 2004-09-06 Steven G. Kargl <kargls@comcast.net>
413 * io/write.c (output_float): Typo in comment. Remove debugging
414 printf. Fix format for FP of form 1e10.
416 2004-09-03 Richard Henderson <rth@redhat.com>
418 * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
419 copy_loop_double, copy_loop_ldouble): New.
420 (__cshift0): Make shift type ssize_t. Use % operator instead of
421 div. Use specialized versions of copy loop depending on the shape.
423 2004-09-02 Paul Brook <paul@codesourcery.com>
425 * io/format.c (parse_format_list): Set repeat count for P descriptors.
426 * write.c (output_float): Fix condition. Correctly handle nonzero
429 2004-09-01 Eric Botcazou <ebotcazou@libertysurf.fr>
431 * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
432 * mk-srk-inc.sh: Likewise.
434 2004-09-01 Paul Brook <paul@codesourcery.com>
436 * runtime/error.c (generate_error): Set both iostat and
439 2004-08-31 Paul Brook <paul@codesourcery.com>
442 * io/list_read.c (next_char): Don't signal EOF for internal files.
443 * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
445 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
447 * io/unit.c: Separate copyright years by ','.
448 (compare, insert_unit, delete_unit, is_internal_unit, close_units):
449 Remove blank line in beginning of function.
450 (get_unit): Simplify code.
452 2004-08-31 Paul Brook <paul@codesourcery.com>
454 * io/unit.c (get_unit): Remove superfluous if.
456 2004-08-31 Paul Brook <paul@codesourcery.com>
458 * io/transfer.c (read_sf): Rename uinty to readlen. Detect EOF.
459 (finalize_transfer): Move setjmp after namlist IO.
460 * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
462 2004-08-31 Paul Brook <paul@codesourcery.com>
464 * list_read.c (eat_separator): Set at_eo when a '/' is seen.
466 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
468 * libgfortran.h: Replace 'gfc_strlen_type' by
469 'gfc_charlen_type'. Update comment accordingly.
470 * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
471 Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
473 2004-08-31 Paul Brook <paul@codesourcery.com>
475 * libgfortran.h: Add comments.
477 2004-08-30 Richard Henderson <rth@redhat.com>
479 * Makefile.am (gfor_helper_src): Split selected_kind.f90.
480 (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
481 (selected_int_kind.inc selected_real_kind.inc): New rules.
482 * Makefile.in: Regenerate.
483 * mk-sik-inc.sh, mk-srk-inc.sh: New files.
484 * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
485 include table of detected kinds.
486 * intrinsics/selected_real_kind.f90: Similarly.
488 2004-08-29 Steven G. Kargl <kargls@comcast.net>
489 Paul Brook <paul@codesourcery.com>
491 * intrinsics/bessel.c: New file.
492 * intrinsics/erf.c: New file.
493 * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
494 * configure.ac: Test for C99 Bessel and Error functions.
495 * Makefile.in: Regenerate.
496 * config.h.in: Regenerate.
497 * configure: Regenerate.
499 2004-08-29 Steven G. Kargl <kargls@comcast.net>
500 Paul Brook <paul@codesourcery.com>
502 * Makefile.am: Add intrinsics/getXid.c.
503 * configure.ac: Add tests for get{g,p,u}id.
504 * config.h.in: Regenerate.
505 * Makefile.in: Regenerate.
506 * configure: Regenerate.
508 2004-08-28 Paul Brook <paul@codesourcery.com>
511 * libgfortran.h (rtoa): Remove prototype.
512 * runtime/error.c (rtoa): Remove.
513 * io/write.c (calculate_G_format): Don't add blanks if E format is
514 used. Add correct number of blanks when exponent width is specified.
515 (output_float): Rewrite.
517 2004-08-27 Paul Brook <paul@codesourcery.com>
519 * io/rewind.c (st_rewind): Reset unit to read mode.
521 2004-08-27 Bud Davis <bdavis9659@comcast.net>
524 * io/io.h: created typedef for unit_mode.
525 * io/io.h (gfc_unit): added mode to unit structure.
526 * io/transfer.c (data_transfer_init): flush if a write then
527 read is done on a unit (direct access files).
528 * io/rewind.c (st_rewind): Used unit mode instead of global.
530 2004-08-24 Bud Davis <bdavis9659@comcast.net>
533 * runtime/error.c (itoa): keep from overflowing during
534 mod operation by using unsigned variable.
536 2004-08-24 Bud Davis <bdavis9659@comcast.net>
539 * runtime/string_intrinsics.c (string_index):check for
540 substring longer than string.
542 2004-08-24 David Edelsohn <edelsohn@gnu.org>
544 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
545 * Makefile.in: Rebuilt.
547 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
549 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
550 Fix formatting issues, update copyright years.
552 2004-08-21 Bud Davis <bdavis9659@comcast.net>
555 * io/transfer.c (next_record_w): Do not blank pad.
556 * io/transfer.c (next_record): Take into account partial records.
558 2004-08-18 Victor Leikehman <lei@il.ibm.com>
561 * io/transfer.c (st_set_nml_var)
562 * io/write.c (namelist_write): Allow var_name and var_name_len to be
563 null. For strings, use string_length field instead of len.
564 * io/io.h (struct namelist_type): New field string_length.
565 (st_set_nml_var_char): New argument string_length.
567 2004-08-13 Bud Davis <bdavis9659@comcast.net>
570 * io/open.c (st_open): use flags instead of the unit structure.
572 2004-08-10 Victor Leikehman <lei@il.ibm.com>
574 * io/list_read.c (namelist_read): Convert variable names
575 to lower case, so that mixed-case names are recognized.
576 Don't read beyond terminating slash.
578 2004-08-09 Richard Henderson <rth@redhat.com>
579 Roger Sayle <roger@eyesopen.com>
581 * intrinsics/c99_functions.c (nextafterf): New implementation that
582 works correctly with denormalized numbers.
584 2004-08-09 Victor Leikehman <lei@il.ibm.com>
586 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
587 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
588 Allocate space if return value has NULL in its data field.
589 * generated/*.c: Regenerate.
591 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
593 * intrinsics/env.c: New file.
594 * Makefile.am: Add env.c to build.
595 * Makefile.in: Regenerate.
597 2004-08-05 Victor Leikehman <lei@il.ibm.com>
600 * io/read.c (read_radix): Understand letters f and F as hex digits.
602 2004-08-04 Victor Leikehman <lei@il.ibm.com>
604 * libgfortran.h (array_t, size0) New declarations.
605 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
606 space if return value descriptor has NULL in its data field,
607 and initialize bounds and stride.
608 * intrinsics/size.c (array_t, size0): Declarations moved to
610 * generated/*.c: Regenerate.
612 2004-08-03 Roger Sayle <roger@eyesopen.com>
615 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
616 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
617 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
618 * config.h.in: Regenerate.
619 * configure: Regenerate.
621 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
622 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
623 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
624 implementations for targets that don't support C99 float functions.
626 2004-08-01 Roger Sayle <roger@eyesopen.com>
628 * io/write.c (write_float): Use the slightly more portable isnan
629 in preference to isinf.
631 2004-07-18 Bud Davis <bdavis9659@comcast.net>
633 * configure.ac: Add check for LFS support.
634 * configure: Regenerate
636 2004-07-11 Paul Brook <paul@codesourcery.com>
639 * m4/cexp.m4 (carg): Return -pi to pi.
640 * generated/exp_c?.c: Regenerate.
642 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
645 * libgfortran/io/write.c: (write_float): Added length check.
646 Remove pointless memset calls.
648 2004-07-04 Bud Davis <bdavis9659@comcast.net>
649 Paul Brook <paul@codesourcery.com>
652 * io/transfer.c(us_write): set recl for seq unform writes to max size.
653 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
654 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
656 * io/unix.c(is_seekable): set based upon the file/device, not the
657 method being used to access it (fd or mmap).
658 * io/unix.c(fd_flush): don't set file_size if !seekable.
659 * io/unix.c(fd_truncate: ditto.
661 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
662 Paul Brook <paul@codesourcery.com>
666 * libgfortran.h (gfc_strlen_type): Define.
667 * intrinsics/args.c (getarg): Rename ...
668 (getarg_i4): ... to this.
669 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
670 get_command_i4, get_command_i8): New functions.
672 2004-07-04 Matthias Klose <doko@debian.org>
674 * libtool-version: New.
675 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
676 * Makefile.in: Regenerate.
677 * configure.ac: Remove libtool_VERSION macro
678 * configure: Regenerate
680 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
681 Steven Bosscher <stevenb@suse.de>
683 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
686 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
687 Paul Brook <paul@codesourcery.com>
689 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
691 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
693 2004-06-27 Bud Davis <bdavis9659@comcast.net>
696 * io/write.c (write_float): check signbit for Infinity.
698 2004-06-26 Bud Davis <bdavis9659@comcast.net>
701 * unix.c(regular_file): create file if it does not exist.
703 2004-06-24 Andrew Pinski <apinski@apple.com>
705 * configure.ac: Remove check for libmx.
706 * configure: Regenerate.
708 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
711 * inquire.c (st_inquire): Add comment
712 * io.h (st_parameter): Add iolength.
713 (st_iolength, st_iolength_done): Declare.
714 * transfer.c (iolength_transfer, iolength_transfer_init,
715 st_iolength, st_iolength_done): New functions.
717 2004-06-21 Steven G. Kargl <kargls@comcast.net>
719 * etime.c (etime_sub): Remove array rank check;
720 Add check for sufficient space.
722 2004-06-19 Bud Davis <bdavis9659@comcast.net>
725 * io/list_read.c(set_value): fixed spelling.
727 2004-06-19 Bud Davis <bdavis9659@comcast.net>
730 * io/list_read.c(set_value): don't copy if the string is null.
732 2004-06-14 Bud Davis <bdavis9659@comcast.net>
735 * intrinsics/c99_functions.c: Use fpclassify if it exists.
737 2004-06-13 Paul Brook <paul@codesourcery.com>
739 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
740 * configure.ac: Add checks for nextafter and nextafterf.
741 * Makefile.in, config.h.in, configure: Regenerate.
742 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
743 * intrinsics/rand.c (rand): Use normalize_r4_i4.
744 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
745 (random_r8): Use normalize_r8_i8.
746 * runtime/normalize.c: New file.
748 2004-06-13 Steven G. Kargl <kargls@comcast.net>
749 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
751 * random.c: Fix several spelling and formatting mistakes in
753 (random_r8): Fix loop to make random numbers range in [0,1(.
756 2004-06-13 Steven G. Kargl <kargls@comcast.net>
758 * random.c (random_r4): Burn a random number.
759 (random_r8): fix infinite loop.
761 2004-06-12 Bud Davis <bdavis9659@comcast.net>
762 Steve Kargl <sgk@troutmask.apl.washington.edu>
765 * intrinsics/c99_functions.c: New file.
766 * Makefile.am: Add new file.
767 * configure.ac: Added test for round/roundf.
768 * Makefile.in: Regenerate.
769 * configure: Regenerate.
770 * configure.h.in: Regenerate.
772 2004-06-12 Steven G. Kargl <kargls@comcast.net>
774 * Makefile.am: Add rand.c and etime.c
775 * Makefile.in: Regenerated.
776 * aclocal.in: Regenerated.
777 * cpu_time.c (second_sub, second): New functions.
778 * rand.c (irand, rand, srand): New file.
779 * etime.c (etime_sub, etime): New file.
781 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
782 Steven Bosscher <stevenb@suse.de>
785 * intrinsics/date_and_time.c: New file.
786 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
787 * Makefile.in, aclocal.m4: Regenerate.
788 * libgfortran.h: Prototype date_and_time().
790 2004-06-12 Bud Davis <bdavis9659@comcast.net>
793 * intrinsics/args.c: Implement GETARG and IARGC.
794 * Makefile.am: Add it.
795 * Makefile.in: Regenerate.
797 2004-06-12 Bud Davis <bdavis9659@comcast.net>
800 * io/write.c(write_float): Format inf and nan IAW F2003.
802 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
805 * io/transfer.c (formatted_transfer): position is unique
806 for T and TL edit descriptors.
807 (data_transfer_init): set record length to size of internal
810 2004-06-09 Bud Davis <bdavis9659@comcast.net>
813 * io/backspace.c(st_backspace): call correct routine for
814 formatted and un-formatted units.
816 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
819 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
820 (lib_LTLIBRARIES): Rename to ...
821 (toolexeclib_LTLIBRARIES): this for multilib support.
822 * configure.in: Rename to ...
823 * configure.ac: this. Update to modern autoconf style, enable
824 multilibs, support --enable-version-specific-runtime-libs.
825 * Makefile.in: Regenerated.
826 * configure: Regenerated.
827 * aclocal.m4: Regenerated.
829 2004-05-30 Steven G. Kargl <kargls@comcast.net>
831 * libgfortran.h (random_seed): Update prototype.
832 * intrinsics/random.c: Disable old implementation and add new one.
834 2004-05-30 Andreas Jaeger <aj@suse.de>
836 * intrinsics/random.c: Include unistd.h for close and read
837 prototypes, remove unneeded inclusion of assert.h.
839 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
840 unneeded inclusion of assert.h.
842 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
845 * intrinsics/associated.c: Remove enum.
846 (associated): Replace TRUE/FALSE by 1/0.
848 2004-05-23 Steven G. Kargl <kargls@comcast.net>
850 * random.c (random_seed): Use correct variable.
852 2004-05-22 Steven G. Kargl <kargls@comcast.net>
854 * intrinsics/system_clock: New file.
855 * Makefile.am: Add intrinsics/system_clock.c.
856 * Makefile.in: Regenerate.
858 2004-05-21 Roger Sayle <roger@eyesopen.com>
860 * io/format.c (parse_format_list): Allow the comma after a string
861 literal to be optional.
863 2004-05-18 Paul Brook <paul@codesourcery.com>
864 Feng Wang <fengwang@nudt.edu.cn>
866 * Makefile.am (i_pow_c): Set it. Add build rule.
867 (gfor_built_src): Use it.
868 (m4_files): add m4/pow.m4.
869 * Makefile.in: Regenerate.
870 * m4/pow.m4: New file.
871 * generated/pow_*.c: Regenerate.
873 2004-05-18 Paul Brook <paul@codesourcery.com>
875 * Makefile.am: Remove references to types.m4.
876 * m4/iparm.m4: Merge with types.m4.
877 * m4/types.m4: Remove.
878 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
879 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
880 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
881 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
882 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
883 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
884 Update to use new iparm.m4.
885 * generated/*.c: Regenerate.
887 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
890 * gfortran.h (offset_t): Rename to ...
891 (gfc_offset): ... this.
892 * io/backspace.c (formatted_backspace, unformatted_backspace),
893 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
894 transfer.c (us_read, us_write, next_record_r, next_record_w),
895 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
896 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
897 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
898 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
899 occurences of offset_t by gfc_offset.
901 2004-05-16 Paul Brook <paul@codesourcery.com>
903 * io/format.c (write_real): Don't include padding in format.
905 2004-05-16 Paul Brook <paul@codesourcery.com>
907 * io/format.c (format_lex): Make c an int.
909 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
910 Paul Brook <paul@codesourcery.com>
912 * io/write.c (write_logical): Don't print extra blank.
913 (write_integer): Base field width on kind.
914 (list_formatted_write): Output initial blank.
916 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
918 * io/io.h (flush): Add prototype.
919 * io/transfer.c (finalize_transfer): Flush partial records.
920 * io/unix.c (flush): New function.
922 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
925 * io/io.h (unit_t): Rename to ...
927 (unit_root, current_unit, find_file, find_unit, get_unit): Now
929 (delete_file, insert_unit, close_unit): Argument now of type
931 * backspace.c (st_backspace), close.c (st_close), endfile.c
932 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
933 (test_endfile, edit_modes, new_unit, already_open, st_open),
934 rewind.c (st_rewind), transfer.c (current_unit), unit.c
935 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
936 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
937 get_unit, init_units, close_unit), unix.c (find_file0,
938 find_file, delete_file): Replace all occurences of unit_t by
941 2004-05-15 Bud Davis <bdavis9659@comcast.net>
944 * io/write.c (write_a): right justify A edit output.
946 2004-05-14 Bud Davis <bdavis9659@comcast.net>
949 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
950 * runtime/main.c(init): Call random_seed as part of MAIN init.
952 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
954 * io/format.c: (parse_format_list): No comma is required after
957 2004-05-13 Bud Davis <bdavis9659@comcast.net>
960 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
962 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
963 Steven Bosscher <stevenb@suse.de>
966 * libgfortran.h: Include <inttypes.h> if available.
968 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
970 * io/unix.c (MAP_FAILED): Define if missing.
971 (mmap_alloc): Cast MAP_FAILED to char *.
972 (mmap_open): Likewise.
974 2004-04-26 Bud Davis <bdavis9659@comcast.net>
976 * generated/_abs_i8.f90: New file.
977 * generated/_abs_c4.f90: New file.
978 * generated/_abs_c8.f90: New file.
979 * Makefile.am: Add them.
980 * Makefile.in: Regenerate.
982 2004-04-26 Bud Davis <bdavis9659@comcast.net>
985 * generated/_abs_i4.f90: New file.
986 * Makefile.am: Add it.
987 * Makefile.in: Regenerate.
989 2004-04-25 Bud Davis <bdavis9659@comcast.net>
992 * io/list_read.c(list_formatted_read): finish consuming the
993 spaces and seperators at eoln to get ready for next item.
995 2004-04-23 Bud Davis <bdavis9659@comcast.net>
998 * io/read.c(read_a): Handle field width > destination and no field width.
1000 2004-04-22 Bud Davis <bdavis9659@comcast.net>
1003 * io/format.c (format_item): gracefully handle a ')'
1004 when it is the first character encountered in the string.
1006 2004-04-11 Bud Davis <bdavis9659@comcast.net>
1009 * io/transfer.c (next_record): Update last_record when
1010 more than one record is written to a direct access file
1011 with one write statement.
1013 2004-04-11 Bud Davis <bdavis9659@comcast.net>
1016 * io/transfer.c (next_record_w) : No '\n' if internal.
1017 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
1019 2004-04-11 Bud Davis <bdavis9659@comcast.net>
1021 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
1022 Will need to change this later to support direct access files > 2gb.
1024 2004-04-03 Bud Davis <bdavis9659@comcast.net>
1027 * io/transfer.c (next_record_r) : Skip to next record.
1029 2004-04-03 Bud Davis <bdavis9659@comcast.net>
1032 * io/transfer.c (next_record): Update last_record for DIRECT
1034 2004-04-03 Bud Davis <bdavis9659@comcast.net>
1037 * io/unix.c (find_file0): Use fd field of struct
1039 2004-04-03 Bud Davis <bdavis9659@comcast.net>
1042 * io/inquire.c (inquire_via_unit): Changed return string for
1043 BLANK=NULL. Use correct variable for ACTION.
1045 2004-04-01 Bud Davis <bdavis9659@comcast.net>
1048 * io/read.c (read_f): Allow a decimal without a leading digit.
1049 * io/write.c (output_float): remove a leading '0' to keep from
1050 overflowing the field (F edit descriptor).
1052 2004-04-01 Bud Davis <bdavis9659@comcast.net>
1055 * io/open.c (new_unit),
1056 * io/io.h : new_unit is now visible
1057 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
1058 * io/transfer.c (data_transfer_init): remove compile warnings.
1059 * io/rewind.c (st_rewind): ftruncate if writing.
1061 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1063 * write.c (write_l): Use extract_int for 'L' edit descriptor.
1065 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1068 * io/io.h (global_t):
1069 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
1070 Move eof_jmp to a global structure.
1071 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
1073 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1075 * m4/cexp.m4 (csqrt): Actually use the passed value.
1076 * generated/exp_c?.c: Regenerate.
1078 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1081 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
1082 * open.c (new_unit): Moved test for positioned direct access error.
1083 (init_units): Corrected calculation of max records.
1085 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
1087 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
1088 * Makefile.in: Regenerate.
1089 * m4/dotprodc.m4: New file. Implement complex dot_product.
1090 * m4/dotprod.m4: Delete the complex implementation.
1091 * generated/dotprod_*: Update.
1093 2004-02-07 Bud Davis <bdavis9659@comcast.net>
1095 * transfer.c (write_constant_string): Do not delete H's in hollerith
1098 2004-01-05 Andrew Pinski <apinski@apple.com>
1100 * configure.in: Check for csin in -lmx also.
1101 * configure: Regenerate.
1103 2004-01-01 Paul Brook <paul@codesourcery.com>
1105 * io/list_read.c (find_nml_node): Make static.
1106 (match_namelist_name): Ditto.
1107 * io/read.c (convert_precision_real): Make static, fix spelling.
1108 * io/transfer.c (extract_real): Remove unused prototype.
1109 (st_set_nml_var): Make static.
1110 * io/write.c (extract_real): Make static.
1112 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
1114 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
1116 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
1118 * io/transfer.c (data_transfer_init): Give a runtime error for list
1119 formatted reads and writes from/to files opened for unformatted IO.
1121 2003-11-30 Paul Brook <paul@nowt.org>
1123 * runtime/memory.c (push_context): Remove.
1124 (pop_context): Remove.
1125 * libgfortran.h: Remove prototypes.
1127 2003-11-27 Paul Brook <paul@nowt.org>
1129 * runtime/memory.c (deallocate): Nullify pointer after freeing.
1131 2003-11-27 Paul Brook <paul@nowt.org>
1133 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
1134 * libgfortran.h: Ditto.
1135 * m4/in_pack.m4: Ditto.
1136 * runtime/in_pack_generic.c: Ditto.
1137 * runtime/memory.c: Ditto.
1139 2003-11-26 Richard Henderson <rth@redhat.com>
1141 * m4/exponent.m4, m4/fraction.m4: New.
1142 * m4/nearest.m4, m4/set_exponent.m4: New.
1143 * generated/*: Update.
1144 * Makefile.am: Add them.
1145 (AM_CFLAGS): New. Use -std=gnu99.
1146 * Makefile.in: Regenerate.
1148 2003-11-08 Paul Brook <paul@nowt.org>
1151 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
1152 * m4/maxloc1.m4: Ditto.
1153 * m4/minloc0.m4: Ditto.
1154 * m4/minloc1.m4: Ditto.
1155 * m4/ifunction.m4: Set return value for zero sized arrays.
1156 * m4/iforeach.m4: Ditto.
1157 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
1158 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
1159 * generated/*: Update.
1161 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
1164 * io/list_read.c (eat_spaces): Treat tab as space.
1166 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
1168 * intrinsics/random.c: Add reference to paper containing algorithm.
1169 (random_seed): Extra error checking and proper handling of arrays.
1170 (arandom_r4, arandom_r8): Implement.
1172 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
1175 * runtime/memory.c (allocate_size): Allow allocation
1176 of zero-sized objects.
1178 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
1181 * open.c (new_unit): Open without a file name opens
1182 a file with name fort.<unit>.
1184 2003-10-12 Feng Wang <wf_cs@yahoo.com>
1186 * intrinsics/cshift0.c: New file.
1187 * m4/cshift1.m4: New file
1188 * generated/cshift*.c: New files.
1189 * Makefile.am: Add them.
1190 * Makefile.in: Regenerate.
1192 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
1194 * io/list_read.c (read_character): Remove unwanted call to free_saved.
1196 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
1198 * intrinsics/string_intrinsics.c (string_trim): New function.
1199 (string_repeat): New function.
1201 2003-10-11 Paul Brook <paul@nowt.org>
1203 * intrinsics/dprod_r8.f90: New file.
1204 * Makefile.am (gfor_specific_src): Add it.
1205 (gfor_built_specific_src): Rename from gfor_build_specific_c.
1207 (gfor_specific2_src): Rename from gfor_built_specific2_c.
1209 * Makefile.in: Regenerate.
1210 * generated/_aint_*.f90: New files.
1211 * generated/_anint*.f90: New files.
1212 * generated/_atan2*.f90: New files.
1213 * generated/_mod*.f90: New files.
1215 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
1217 * intrinsics/selected_kind.f90: New file.
1218 * Makefile.am: Add it.
1219 * Makefile.in: regenerate.
1221 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
1222 Paul Brook <paul@nowt.org>
1224 * intrinsics/random.c: New file.
1225 * Makefile.am (gfor_hemper_src): Add it.
1226 (gfor_specific_c): Fix typo.
1228 2003-09-19 Paul Brook <paul@nowt.org>
1230 * All: rename g95->gfc.
1232 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
1234 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
1236 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
1238 * io/write.c (write_float): Dectection of positive infinite number,
1239 Not a Number(NaN) and negative infinite number.
1240 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
1241 output a very_very small number ( < 0.1e-100 ).
1243 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
1245 * libgfortran.h (xtoa, itoa): Parameter modified.
1246 * io/io.h (namelist_info): Declaration to support namelist I/O
1247 (st_parameter): Add namelist related component
1248 (ionml, empty_internal_buffer, st_set_nml_var_int,
1249 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
1250 st_set_nml_var_log): Declaration
1251 (set_integer, set_integer): Parameter changed
1252 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
1254 (parse_format_list): Fix bug about FMT_SLASH
1255 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
1256 newly allocated saved_string
1257 (next_char): Add detection of End_Of_Line support
1258 (convert_integer): Now can process 64 bits interger
1259 (read_real): Bug fixed
1260 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
1261 (match_namelist_name): New implemention
1262 * io/lock.c (ionml): New global variable
1263 (library_end): Free memory in ionml
1264 * io/open.c (st_open): Variable initializtion
1265 * io/read.c (max_value): 64 bits interger support
1266 (convert_precsion_real): New procedure to replace "strtod" with more
1268 (read_f, read_radix): Input bug fix
1269 * io/transfer.c: (sf_seen_eor): New static variable
1270 (read_sf): Zeroize base buffer; fix bugs: single read statement can
1271 not get input in mutli line when read from stdin
1272 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
1274 (data_transfer_init): Clear internal buffer for Internel File I/O.
1275 Internal File now worked. Detect some error condition for namelist.
1277 (next_record_w): Internal file and Namelist I/O support.
1278 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
1279 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
1280 * io/unit.c (implicit_unit): Deletion
1281 (get_unit): Now cannot open a unit implicitly.
1282 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
1284 (mem_alloc_r_at): Internal file I/O support added
1285 (empty_internal_buffer): New function
1286 * io/write.c (extract_int): Support 64 bits interger processing
1287 (output_float): Varibale initialization
1288 (write_float): Infinite real number detection.
1289 (write_int): 64 bits integer I/O support
1290 (write_decimal): New function to output decimal number
1291 (otoa, btoa): Better implemention and 64 bits interger support
1292 (namelist_write): New function
1293 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
1296 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1298 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
1299 get_mem ): Add attribute.
1300 * intrinsics/spread_generic.c (__spread): Fix spelling.
1301 * io/inquire.c (inquire_via_filename): Add const.
1302 * io/io.h (sys_exit): Add attribute.
1303 * io/io.h (move_pos_offset): Add move_pos_offset.
1304 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
1305 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
1306 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
1307 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
1308 write_z): Add const.
1309 * io/read.c (convert_real): Add const.
1310 * io/transfer.c (type_name): Add const.
1311 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
1312 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
1313 inquire_read, inquire_write, inquire_readwrite): Add const.
1314 * io/write.c (output_float): Remove unused variable.
1315 * io/write.c (write_a, extract_int, extract_real, output_float,
1316 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
1317 write_e, write_f, write_en, write_es, write_logical, write_integer,
1318 write_character, write_real, write_complex): Add const.
1319 * runtime/error.c (rtoa): Remove unused variable.
1320 * runtime/select.c (select_string): Add const.
1321 * runtime/stop.c (stop_string): Add const.
1323 2003-08-10 Paul Brook <paul@nowt.org>
1325 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
1326 (FFLAGS): Add -fno-underscoring.
1327 * Makefile.in: Regenerate.
1328 * intrinsics/abort.c: New file.
1330 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
1332 * fmain.c (main): Do not call init and cleanup; call set_args instead.
1333 * libgfortran.h (init, cleanup): Remove declarations.
1334 (set_args): Add declaration.
1335 * runtime/main.c (init, cleanup): Make them static, and give them
1336 the constructor and destructor attributes.
1337 (set_args): New function.
1339 2003-08-10 Paul Brook <paul@nowt.org>
1341 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
1342 on which string is longest.
1344 2003-08-10 Paul Brook <paul@nowt.org>
1346 * Makefile.am (EXTRA_DIST): Remove old files.
1347 * Makefile.in: Regenerate.
1349 2003-07-26 Paul Brook <paul@nowt.org>
1351 Rename library to libgfortran.
1352 * libgfortran.h: Change prefix to _libgfortran_.
1354 2003-07-24 Paul Brook <paul@nowt.org>
1356 * configure.in: Don't pull in system libtool. Use toplevel
1359 2003-07-22 Paul Brook <paul@nowt.org>
1361 Regenerate all configury files.
1363 2003-07-09 Chun Huang <compiler@sohu.com>
1365 * intrinsics/string_intrinsic.c (string_scan): New function.
1366 (string_verify): New function.
1368 2003-06-25 Paul Brook <paul@nowt.org>
1370 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
1371 (mem_seek): Don't bother setting physical_offset.
1373 2003-06-20 Paul Brook <paul@nowt.org>
1375 * libgfor.h (stop_numeric): Declare.
1376 * runtime/pause.c: New file.
1377 * Makefile.am: Add it.
1379 2003-06-08 Paul Brook <paul@nowt.org>
1381 * m4/cexp.m4 (cabs): Use correct typed version.
1382 (csqrt): New function.
1384 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
1386 Spotted by Benjamin and Tobias:
1387 * io/list_read.c: Add Separator '\t'.
1388 (parse_real, read_real): Accept real values starting with an optional
1389 sign follows a decimal point.
1391 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
1393 * Makefile.am: Don't put cmath objects in subdir.
1394 * configure.in: Rename MATHOBJ to MATH_OBJ.
1396 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
1398 * intrinsics/associated.c: New file.
1399 * Makefile.am: Add it. Regenerate Makefile.in.
1400 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
1401 G95_DESCRIPTOR_DTYPE.
1403 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
1405 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
1406 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
1407 the scale_factor to 0 for F editing.
1409 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
1411 * libgfor.h: Only include stdint.h if it exists.
1413 2003-05-07 Paul Brook <paul@nowt.org>
1415 * libgfor.h: Use stdint.h types.
1416 * intrinsics/ishift.c: Ditto.
1417 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
1419 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
1421 * libgfor.h (offsetof): Define if nobody else does.
1422 * runtime/memory.c (HEADER_SIZE): Use it.
1424 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
1426 * configure.in: Require autoconf 2.54.
1428 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
1429 Paul Brook <paul@nowt.org>
1431 * intrinsics/reshape_generic.c: Copy the whole element, not just the
1433 * m4/transpose.m4: New file.
1434 * Makefile.am: Add them.
1435 Regenerate generated files.
1437 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1439 * io/format.c (parse_format_list): Allow 'X' without integer
1440 prefix. This is an extension. Interpretation is '1X'.
1442 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
1444 * io/format.c (parse_format_list): Allow '0P'.
1446 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1448 * Makefile.in: Re-regenerate for automake 1.7.3.
1450 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
1452 Port implementation for CHARACTER SELECT from Andy's tree.
1453 * runtime/select.c: New file
1454 * Makefile.am: Add it.
1455 * Makefile.in: Regenerate.
1457 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
1459 * io/transfer.c (formatted_transfer): Modified
1460 * io/unix.c (move_pos_offset): New Function.
1461 * io/format.c (parse_format_list): Modified.
1463 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
1465 * io/write.c (write_float,write_real): New implemention of
1466 FMT_G and default float editing.
1467 (calculate_exp,calculate_G_format,output_float): New Function.
1468 (write_float,write_real,write_logical): Modified
1469 * libgfor.h (default_rtoa): Remove Declaration.
1470 * runtime/error.c (default_rtoa): Remove Function.
1472 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
1475 * io/write.c (extract_real): Add missing break statement.
1477 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1479 * cpu_time.c: Make sure we have a definition of HZ. Don't
1480 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
1482 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1483 Paul Brook <paul@nowt.org>
1485 * configure.in: Check for process time headers and GETTIMEOFDAY.
1486 * makefile.am: Add intrinsics/cpu_time.c.
1487 * acinclude.m4: New file.
1488 * intrinsics/cpu_time.c: New file.
1489 * m4/dotprodl.m4: Fix typo.
1490 Regenerate generated files.
1492 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
1494 * io/write.c (extract_real): Ouput floating point value.
1495 (write_float): New Function.
1496 (write_e, write_f, write_en, write_es): Modified
1497 * io/transfer.c (formatted_transfer): Modified.
1498 * libgfor.h (default_rtoa): Declaration.
1499 (rtoa): Declaration.
1500 * runtime/error.c (default_rtoa): New Function.
1501 (rtoa): New Function.
1503 2003-04-05 Paul Brook <paul@nowt.org>
1505 * intrinsics/spread_generic.c: New file.
1506 * Makefile.am: Add it. Regenerate Makefile.in.
1508 2003-03-29 Paul Brook <paul@nowt.org>
1510 * intrinsics/pack_generic.c: New file.
1511 * intrinsics/unpack_generic.c: New file.
1512 * Makefile.am: Add them. Regenerate Makefile.in.
1514 2003-03-25 Paul Brook <paul@nowt.org>
1516 * intrinsics/eoshift0.c: New file.
1517 * intrinsics/eoshift2.c: New file.
1518 * m4/eoshift1.m4: New file.
1519 * m4/eoshift3.m4: New file.
1520 * Makefile.am: Add them.
1521 * in_unpack_generic.c: Initialize src.
1522 Regenerate generated files.
1524 2003-03-14 Paul Brook <paul@nowt.org>
1526 * m4/shape.m4: Work properly with array temporaries.
1527 * m4/in_pack.m4: Skip redundant checks for array temporaries.
1528 * runtime/in_pack_generic.c: Ditto.
1530 2003-03-12 Paul Brook <paul@nowt.org>
1532 * m4/shape.m4: Work properly with noncontiguous arrays.
1534 2003-03-08 Paul Brook <paul@nowt.org>
1536 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1537 * runtime/in_pack_generic.c: Ditto.
1539 2003-02-08 Paul Brook <paul@nowt.org>
1541 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1542 * io/close.c (st_close): Return void.
1543 * io/open.c (st_open): Return void.
1544 * libgfor.h (g95_array_char): Declare.
1545 (internal_malloc_size): Ditto.
1546 (internal_pack*, internal_unpack*): Ditto.
1547 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1549 * m4/in_unpack.m4: Include file fixes.
1550 * m4/reshape.m4: Increment the correct source pointer.
1551 * Makefile.am (maxloc): Fix typo.
1552 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1553 storage if neccessary. Fix logic for packed arrays.
1554 * runtime/in_unpack_generic.c: Call optimized functions.
1555 * runtime/main.c: Use runtime_error to report errors.
1556 * memory.c (internal_malloc_size): Make non-static.
1558 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1560 * reshape_packed.c, lock.c: Add #include <string.h>.
1561 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1562 environ.c, error.c, memory.c, string.c: Add const.
1563 * error.c (show_locus): Add void.
1565 2003-02-21 Paul Brook <paul@nowt.org>
1567 * m4/in_pack.m4: Avoid returning const * parameter.
1568 * Makefile.am: Only regenerate files in maintainer mode.
1570 2003-02-20 Paul Brook <paul@nowt.org>
1572 Add array repacking support functions.
1573 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1574 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1575 * Makefile.am: Build them. Regenerate configury files.
1576 * generated/: New directory for generated files (need to move
1577 everything else there).
1579 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1581 * m4/cexp.m4: Fix typo.
1583 2003-01-26 Paul Brook <paul@nowt.org>
1585 * intrinsics/: Add missing generated files.
1587 2003-01-26 Paul Brook <paul@nowt.org>
1589 * Makefile.am: Put -I before the filename.
1591 2003-01-24 Paul Brook <paul@nowt.org>
1593 * configure.in: Add AM_MAINTAINER_MODE.
1595 2003-01-23 Paul Brook <paul@nowt.org>
1597 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1599 Also regenerate other configury files.
1601 2003-01-21 Paul Brook <paul@nowt.org>
1603 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1605 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1607 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1608 Don't include "alloca.h".
1610 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1612 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1613 * Makefile.am: Adjust file name.
1614 * Makefile.in: Regenerate.
1615 * gfortypes.h: Kill, include everything in...
1616 * libgfor.h: ...here. Include config.h
1617 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1618 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1619 intrinsics/reshape_packed.c, intrinsics/size.c,
1620 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1621 for prefix for all functions instead of hardcoded.
1623 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1625 * io/lock.c (library_end): Propagate library return
1628 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1630 Port fixes from Andy's tree:
1631 * io/read.c (read_decimal): Reverse sense of overflow
1632 comparison during integer reads.
1633 * io/format.c (revert): Fix comment.
1634 (next_format): Fix format revision.
1635 * io/unix.c: Fix and simplify mmap version of stream
1638 2003-01-11 Paul Brook <paul@nowt.org>
1640 * configure, Makefile.in: Regenerate.
1642 2003-01-11 Paul Brook <paul@nowt.org>
1644 * runtime/stop.c: Rewrite.
1646 2003-01-08 Paul Brook <paul@nowt.org>
1648 * configure, Makefile.in: Regenerate.
1650 2003-01-05 Paul Brook <paul@nowt.org>
1652 * (*.m4) Move to m4/.
1653 * intrinsics/string.c (_gfor_string_index): New Function.
1655 2002-12-29 Paul Brook <paul@nowt.org>
1657 * intrinsics/reshape.*: New files.
1658 * gcc_config.patch: Update to new GCC configure system.
1660 2002-10-10 Paul Brook <paul@nowt.org>
1662 * intrinsics/size.c: New file.
1663 * intrinsics/shape.m4: New file.
1664 * Makefile.am: Add above files.
1666 2002-10-02 Paul Brook <paul@nowt.org>
1668 * fmain.c (main): Move here.
1669 * libgfor.c: From here.
1670 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1671 * Makefile.am: Build libgforbegin.
1672 * gcc_config.patch: Remove stray -march=athlon.
1673 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1674 * ifunction.m4: Move variable declarations to allow compilation with
1676 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1677 * README: Document use of patch -p1.
1679 2002-09-12 Paul Brook <paul@nowt.org>
1681 * math/*: Add complex math library functions.
1682 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1683 * Makefile.am: Add details for above.
1684 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1686 2002-09-09 Paul Brook <paul@nowt.org>
1688 * libgfor.c (determine_endianness): Use an array rather than a struct.
1689 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1691 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1693 * libgfor.c: Add fatal signal handler.
1694 Romove superfluous abort() calls.
1696 2002-09-07 Paul Brook <paul@nowt.org>
1698 * Makefile.am, intrinsics: Major rewrite.
1700 2002-09-02 Paul Brook <paul@nowt.org>
1702 * Makefile.am: Added -I$(srcdir) to m4 rule.
1704 2002-08-30 Paul Brook <paul@nowt.org>
1706 * io/*: Integrated libgforio.
1707 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1708 intrinsics in the intrisics directory.
1709 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1710 filename. Add 'and' and 'all' intrinsics.
1712 2002-08-17 Paul Brook <paul@nowt.org>
1714 * ALL: First release as more than just a single file