1 2004-12-27 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
3 * libgfortran/libgfortran.h (GFC_UINTEGER_1, GFC_UINTEGER_2):
5 * intrinsics/ishftc.c: Update copyright years.
6 (ishftc8): Change 'shift' and 'size' to GFC_INTEGER_4.
7 * intrinsics/mvbits.c: Correct non-ASCII character in my name.
8 Add implementations for GFC_INTEGER_1 and GFC_INTEGER_2.
10 2004-12-23 Bud Davis <bdavis9659@comcast.net>
13 * io/tranfer.c (formatted_transfer): moved check for
14 format reversion inside the processing loop.
16 2004-12-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
19 * libgfortran.h (itoa): Rename to gfc_itoa.
20 * io/write.c (itoa): Same.
21 * runtime/environ.c (itoa): Same.
22 * runtime/error.c (itoa): Same.
24 2004-12-15 Bud Davis <bdavis9659@comcast.net>
25 Steven G. Kargl <kargls@comcast.net>
28 * io/list_read.c (read_real): do not push back a comma when
29 it delimits a real value without a decimal point
31 2004-12-14 Steve Ellcey <sje@cup.hp.com>
33 * libgfortran/io/transfer.c (us_read): Use memcpy/memset
34 instead of assignment to fill unaligned buffer.
36 (next_record_w): Ditto.
38 2004-12-14 Steven G. Kargl <kargls@comcast.net>
41 * gfortran.h: typedef GFC_INTEGER_1 and GFC_INTEGER_2
42 * intrinsics/cshift0.c (cshift0_1,cshift0_2): New functions.
43 * intrinsics/eoshift0.c (eoshift0_1,eoshift0_2): New functions.
44 * intrinsics/eoshift2.c (eoshift2_1,eoshift2_2): New functions.
46 2004-12-13 David Edelsohn <edelsohn@gnu.org>
48 * io/transfer.c (read_sf): Change bitwise "and" to logical "and".
50 2004-12-12 Richard Henderson <rth@redhat.com>
52 * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
53 intrinsics/pack_generic.c, intrinsics/reshape_generic.c,
54 intrinsics/spread_generic.c, intrinsics/transpose_generic.c,
55 intrinsics/unpack_generic.c, m4/cshift1.m4, m4/dotprod.m4,
56 m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
57 m4/iforeach.m4, m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4,
58 m4/reshape.m4, m4/shape.m4, m4/transpose.m4: Use standard prefix
60 * generated/*: Rebuild.
62 2004-12-12 Richard Henderson <rth@redhat.com>
64 * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY): New.
65 (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT): New.
66 (LIBGFOR_CHECK_ATTRIBUTE_ALIAS): New.
67 * configure.ac: Use them.
68 * configure, config.h.in, aclocal.m4: Rebuild.
69 * libgfortran.h (prefix): Remove.
70 (PREFIX, IPREFIX): New.
71 (sym_rename, sym_rename1, sym_rename2): New.
72 (internal_proto, export_proto, export_proto_np): New.
73 (iexport_proto, iexport): New.
74 (iexport_data_proto, iexport_data): New.
75 * intrinsics/abort.c, intrinsics/args.c, intrinsics/associated.c,
76 intrinsics/cpu_time.c, intrinsics/cshift0.c,
77 intrinsics/date_and_time.c, intrinsics/env.c, intrinsics/eoshift0.c,
78 intrinsics/eoshift2.c, intrinsics/etime.c, intrinsics/exit.c,
79 intrinsics/flush.c, intrinsics/fnum.c, intrinsics/getXid.c,
80 intrinsics/getcwd.c, intrinsics/ishftc.c, intrinsics/mvbits.c,
81 intrinsics/pack_generic.c, intrinsics/rand.c, intrinsics/random.c,
82 intrinsics/reshape_generic.c, intrinsics/size.c,
83 intrinsics/spread_generic.c, intrinsics/stat.c,
84 intrinsics/string_intrinsics.c, intrinsics/system.c,
85 intrinsics/system_clock.c, intrinsics/transpose_generic.c,
86 intrinsics/umask.c, intrinsics/unlink.c, intrinsics/unpack_generic.c,
87 io/backspace.c, io/close.c, io/endfile.c, io/inquire.c, io/io.h,
88 io/open.c, io/rewind.c, io/transfer.c, libgfortran.h, m4/cshift1.m4,
89 m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4,
90 m4/eoshift3.m4, m4/exponent.m4, m4/fraction.m4, m4/iforeach.m4,
91 m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/nearest.m4,
92 m4/pow.m4, m4/reshape.m4, m4/set_exponent.m4, m4/shape.m4,
93 m4/transpose.m4, runtime/environ.c, runtime/error.c,
94 runtime/in_pack_generic.c, runtime/in_unpack_generic.c,
95 runtime/main.c, runtime/memory.c, runtime/pause.c, runtime/select.c,
96 runtime/stop.c: Use them to mark symbols internal or external.
97 * generated/*: Rebuild.
99 2004-12-09 David Edelsohn <edelsohn@gnu.org>
102 Revert 2004-12-07 change.
103 * Makefile.am (AM_MAKEFLAGS): Delete.
104 * Makefile.in: Regenerate.
106 2004-12-07 Steve Ellcey <sje@cup.hp.com>
108 * libgfortran/Makefile.am (AM_MAKEFLAGS): New.
109 * libgfortran/Makefile.in: Regenerate
111 2004-12-07 Steve Ellcey <sje@cup.hp.com>
113 * io/io.h (open_external): Change prototype.
114 * io/unix.c (regular_file): Change prototype and set flags->action if
116 (open_external): Ditto.
117 * io/open.c (new_unit): Let open_external set flags->action.
119 2004-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
121 * configure.ac: Check for ieeefp.h. Check for fabsf in libm.
122 * configure: Regenerate.
123 * config.h.in: Likewise.
124 * c99_protos.h: New file.
125 * libgfortran.h: Include c99_protos.h and conditionally ieeefp.h.
126 * intrinsics/c99_functions.c (fabsf): New function.
128 2004-12-06 Richard Henderson <rth@redhat.com>
130 * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
131 intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
132 intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
133 m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
135 * generated/*: Rebuild.
137 2004-12-06 Richard Henderson <rth@redhat.com>
139 * intrinsics/c99_functions.c, intrinsics/eoshift0.c,
140 intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
141 intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
142 intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
143 intrinsics/spread_generic.c, intrinsics/stat.c,
144 intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
145 intrinsics/transpose_generic.c, intrinsics/unlink.c,
146 intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
147 io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
148 io/write.c, runtime/environ.c, runtime/error.c,
149 runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
150 runtime/memory.c, runtime/pause.c, runtime/stop.c,
151 runtime/string.c: Whitespace fixes.
153 2004-12-06 Richard Henderson <rth@redhat.com>
155 * Makefile.am: Generate all m4 output under $(srcdir).
156 * Makefile.in: Regenerate.
158 2004-12-02 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
161 * io/transfer.c (unformatted_read, unformatted_write): width of
162 a COMPLEX is twice its kind.
164 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
166 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
167 * configure, aclocal.m4, Makefile.in: Regenerate.
169 2004-12-02 Bud Davis <bdavis9659@comcast.net>
172 * io/unix.c (fd_alloc_w_at): Update file_length when extending.
173 * io/backspace.c (formatted_backspace): Reset endfile after backspace.
175 2004-12-02 Bud Davis <bdavis9659@comcast.net>
177 * io/inquire.c (inquire_via_unit): do not allow a direct access
178 file to be opened for sequential I/O.
180 2004-12-02 Steven G. Kargl <kargls@comcast.net>
181 Paul Brook <paul@codesourcery.com>
183 * intrinsics/flush.c: New file.
184 * intrinsics/fnum.c: ditto
185 * intrinsics/stat.c: ditto
186 * io/io.h (unit_to_fd): Add prototype.
187 * io/unix.c (unit_to_fd): New function.
188 * configure.ac: Add test for members of struct stat. Check for
189 sys/types.h and sys/stat.h
190 * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
191 * configure.in: Regenerate.
192 * config.h.in: Regenerate.
193 * Makefile.in: Regenerate.
195 2004-12-01 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
197 * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
199 2004-11-28 Bud Davis <bdavis9659@comcast.net>
201 * io/unix.c (mmap_alloc_w_a): check for a write to a location
202 less than the mapped area.
204 2004-11-27 Bud Davis <bdavis9659@comcast.net>
207 * io/endfile.c (st_endfile): flush the stream before truncating.
209 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
211 * configure: Regenerate for libtool change.
213 2004-11-22 Steven Bosscher <stevenb@suse.de>
216 * configure.ac: Check for finite in libm.
217 * libgfortran.h: Define isfinite macro if not defined.
218 * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
220 * io/write.c (write_float): Use isfinite instead of finite.
221 * configure, config.h.in: Rebuilt.
223 2004-11-20 Roger Sayle <roger@eyesopen.com>
225 * io/write.c (write_float, list_formatted_write): Fix indentation.
227 2004-11-20 Eric Botcazou <ebotcazou@libertysurf.fr>
230 * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
231 * configure.ac: Include LIBGFOR_TARGET_ILP32.
232 * configure: Regenerate.
233 * config.h.in: Likewise.
234 * libgfortran.h: Provide default definitions for C99 types
235 on ILP32 targets that don't have them.
238 * configure.ac: Check for snprintf.
239 * configure: Regenerate.
240 * config.h.in: Likewise.
241 * intrinsics/date_and_time.c (date_and_time): Do not
242 use snprinf if it is not available.
243 * io/write.c (output_float): Likewise.
245 2004-11-20 Steven G. Kargl <kargls@comcast.net>
247 * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
248 * Makefile.in: Regenerated
249 * intrinsics/umask.c: New file
250 * intrinsics/unlink.c: ditto
251 * intrinsics/exit.c: ditto
253 2004-11-18 Victor Leikehman <lei@il.ibm.com>
255 * m4/matmul.m4: Loops reordered to improve cache behavior.
256 * generated/matmul_??.c: Regenerated.
258 2004-11-10 Paul Brook <paul@codesourcery.com>
261 * configure.ac: Check for strtof.
262 * configure: Regenerate.
263 * config.h.in: Regenerate.
264 * io/read.c (convert_real): Use strtof if available.
265 (convert_precision_real): Remove.
266 (read_f): Avoid poor exponentiation algorithm.
268 2004-11-05 Andreas Schwab <schwab@suse.de>
270 * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
271 AC_PROG_F77, F77 and FFLAGS.
272 * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
273 FCCOMPILE instead of F77COMPILE.
274 * configure, Makefile.in: Regenerate.
276 2004-11-05 Kelley Cook <kcook@gcc.gnu.org>
278 * acinclude.m4: Properly quote AC_CACHE_CHECK.
279 * Makefile.am: Add in ACLOCAL_AMFLAGS.
280 * aclocal.m4, configure, Makefile.in: Regenerate.
282 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
284 * config.h.in: Regenerate.
285 * configure: Regenerate.
286 * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
287 * io/unix.c (S_IRGRP): Define if undefined.
291 (tempfile): Use mktemp if mkstemp missing, fix typos.
293 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
295 * intrinsics/system.c ("libgfortran.h"): Move after system headers.
297 2004-10-30 Canqun Yang <canqun@nudt.edu.cn>
299 * intrinsics/rand.c (irand): Handle NULL argument.
301 2004-10-07 Paul Brook <paul@codesourcery.com>
303 * io/transfer.c (finalize_transfer): Free internal streams.
304 * io/unix.c (mem_close): Free stream object.
306 2004-10-07 Paul Brook <paul@codesourcery.com>
308 * intrinsics/string_intrinsics.c (string_verify): Fix off by one
311 2004-10-06 Paul Brook <paul@codesourcery.com>
314 * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
316 2004-10-04 Andrew Pinski <pinskia@physics.uc.edu>
318 * intrinsics/mvbits.c: Commit the file.
320 2004-10-04 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
323 * intrinsics/pack_generic.c (__pack): Allocate memory for return array
324 if not done by caller.
325 (__pack_s): New function.
326 * runtime/memory.c (internal_malloc, internal_malloc64): Allow
327 allocating zero memory.
330 * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
331 * Makefile.in: Regenerate.
332 * intrinsics/mvbits.h: New file.
335 * intrinsics/system.c: New file.
336 * Makefile.am: Add dependency for the new file.
337 * Makefile.in: Regenerate.
339 2004-10-04 Paul Brook <paul@codesourcery.com>
340 Bud Davis <bdavis9659@comcast.net>
344 * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
346 * io/write.c (output_float): Don't output minus zero.
348 2004-10-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
350 * intrinsics/abort.c ("libgfortran.h"): Move.
351 * intrinsics/date_and_time.c ("libgfortran.h"): Same.
352 * intrinsics/write.c ("libgfortran.h"): Same.
354 2004-09-26 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
357 * config.h.in (HAVE_POWF): Undefine.
358 * configure.ac: Check for 'powf' in library.
359 * configure: Regenerate.
360 * intrinsics/c99_functions.c (powf): New function.
362 2004-09-24 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
364 * intrinsics/etime.c (etime_): New function.
366 2004-09-21 Steven G. Kargl <kargls@comcast.net>
368 * libgfortran.h: define gfc_alloca()
369 * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
371 2004-09-21 Bud Davis <bdavis9659@comcast.net>
374 * io/list_read.c (namelist_read): ignore spaces after
375 the '=' for namelist reads.
377 2004-09-15 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
379 * config.h.in: Regenerate.
380 * configure: Regenerate.
381 * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
382 * unix.c: Include stdio.h.
383 (HAVE_SYS_MMAN_H): Check.
384 (PROT_READ, PROT_WRITE): Provide default definitions.
386 2004-09-15 Steven G. Kargl <kargls@comcast.net>
388 * intrincics/getcwd.c: New file.
389 * Makefile.am: Add getcwd.c.
390 * Makefile.in: Regenerated.
392 2004-09-15 Steven G. Kargl <kargls@comcast.net>
393 Paul Brook <paul@codesourcery.com>
395 * intrinsics/env.c (getenv, get_environmental_variable): Remove
396 trailing white space. Use alloca. Honour trim_name.
398 2004-09-13 Bud Davis <bdavis9659@comcast.net>
402 * io/list_read.c (list_formatted_read): Handle trailing spaces
405 2004-09-06 Steven G. Kargl <kargls@comcast.net>
407 * io/write.c (output_float): Typo in comment. Remove debugging
408 printf. Fix format for FP of form 1e10.
410 2004-09-03 Richard Henderson <rth@redhat.com>
412 * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
413 copy_loop_double, copy_loop_ldouble): New.
414 (__cshift0): Make shift type ssize_t. Use % operator instead of
415 div. Use specialized versions of copy loop depending on the shape.
417 2004-09-02 Paul Brook <paul@codesourcery.com>
419 * io/format.c (parse_format_list): Set repeat count for P descriptors.
420 * write.c (output_float): Fix condition. Correctly handle nonzero
423 2004-09-01 Eric Botcazou <ebotcazou@libertysurf.fr>
425 * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
426 * mk-srk-inc.sh: Likewise.
428 2004-09-01 Paul Brook <paul@codesourcery.com>
430 * runtime/error.c (generate_error): Set both iostat and
433 2004-08-31 Paul Brook <paul@codesourcery.com>
436 * io/list_read.c (next_char): Don't signal EOF for internal files.
437 * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
439 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
441 * io/unit.c: Separate copyright years by ','.
442 (compare, insert_unit, delete_unit, is_internal_unit, close_units):
443 Remove blank line in beginning of function.
444 (get_unit): Simplify code.
446 2004-08-31 Paul Brook <paul@codesourcery.com>
448 * io/unit.c (get_unit): Remove superfluous if.
450 2004-08-31 Paul Brook <paul@codesourcery.com>
452 * io/transfer.c (read_sf): Rename uinty to readlen. Detect EOF.
453 (finalize_transfer): Move setjmp after namlist IO.
454 * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
456 2004-08-31 Paul Brook <paul@codesourcery.com>
458 * list_read.c (eat_separator): Set at_eo when a '/' is seen.
460 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
462 * libgfortran.h: Replace 'gfc_strlen_type' by
463 'gfc_charlen_type'. Update comment accordingly.
464 * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
465 Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
467 2004-08-31 Paul Brook <paul@codesourcery.com>
469 * libgfortran.h: Add comments.
471 2004-08-30 Richard Henderson <rth@redhat.com>
473 * Makefile.am (gfor_helper_src): Split selected_kind.f90.
474 (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
475 (selected_int_kind.inc selected_real_kind.inc): New rules.
476 * Makefile.in: Regenerate.
477 * mk-sik-inc.sh, mk-srk-inc.sh: New files.
478 * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
479 include table of detected kinds.
480 * intrinsics/selected_real_kind.f90: Similarly.
482 2004-08-29 Steven G. Kargl <kargls@comcast.net>
483 Paul Brook <paul@codesourcery.com>
485 * intrinsics/bessel.c: New file.
486 * intrinsics/erf.c: New file.
487 * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
488 * configure.ac: Test for C99 Bessel and Error functions.
489 * Makefile.in: Regenerate.
490 * config.h.in: Regenerate.
491 * configure: Regenerate.
493 2004-08-29 Steven G. Kargl <kargls@comcast.net>
494 Paul Brook <paul@codesourcery.com>
496 * Makefile.am: Add intrinsics/getXid.c.
497 * configure.ac: Add tests for get{g,p,u}id.
498 * config.h.in: Regenerate.
499 * Makefile.in: Regenerate.
500 * configure: Regenerate.
502 2004-08-28 Paul Brook <paul@codesourcery.com>
505 * libgfortran.h (rtoa): Remove prototype.
506 * runtime/error.c (rtoa): Remove.
507 * io/write.c (calculate_G_format): Don't add blanks if E format is
508 used. Add correct number of blanks when exponent width is specified.
509 (output_float): Rewrite.
511 2004-08-27 Paul Brook <paul@codesourcery.com>
513 * io/rewind.c (st_rewind): Reset unit to read mode.
515 2004-08-27 Bud Davis <bdavis9659@comcast.net>
518 * io/io.h: created typedef for unit_mode.
519 * io/io.h (gfc_unit): added mode to unit structure.
520 * io/transfer.c (data_transfer_init): flush if a write then
521 read is done on a unit (direct access files).
522 * io/rewind.c (st_rewind): Used unit mode instead of global.
524 2004-08-24 Bud Davis <bdavis9659@comcast.net>
527 * runtime/error.c (itoa): keep from overflowing during
528 mod operation by using unsigned variable.
530 2004-08-24 Bud Davis <bdavis9659@comcast.net>
533 * runtime/string_intrinsics.c (string_index):check for
534 substring longer than string.
536 2004-08-24 David Edelsohn <edelsohn@gnu.org>
538 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
539 * Makefile.in: Rebuilt.
541 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
543 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
544 Fix formatting issues, update copyright years.
546 2004-08-21 Bud Davis <bdavis9659@comcast.net>
549 * io/transfer.c (next_record_w): Do not blank pad.
550 * io/transfer.c (next_record): Take into account partial records.
552 2004-08-18 Victor Leikehman <lei@il.ibm.com>
555 * io/transfer.c (st_set_nml_var)
556 * io/write.c (namelist_write): Allow var_name and var_name_len to be
557 null. For strings, use string_length field instead of len.
558 * io/io.h (struct namelist_type): New field string_length.
559 (st_set_nml_var_char): New argument string_length.
561 2004-08-13 Bud Davis <bdavis9659@comcast.net>
564 * io/open.c (st_open): use flags instead of the unit structure.
566 2004-08-10 Victor Leikehman <lei@il.ibm.com>
568 * io/list_read.c (namelist_read): Convert variable names
569 to lower case, so that mixed-case names are recognized.
570 Don't read beyond terminating slash.
572 2004-08-09 Richard Henderson <rth@redhat.com>
573 Roger Sayle <roger@eyesopen.com>
575 * intrinsics/c99_functions.c (nextafterf): New implementation that
576 works correctly with denormalized numbers.
578 2004-08-09 Victor Leikehman <lei@il.ibm.com>
580 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
581 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
582 Allocate space if return value has NULL in its data field.
583 * generated/*.c: Regenerate.
585 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
587 * intrinsics/env.c: New file.
588 * Makefile.am: Add env.c to build.
589 * Makefile.in: Regenerate.
591 2004-08-05 Victor Leikehman <lei@il.ibm.com>
594 * io/read.c (read_radix): Understand letters f and F as hex digits.
596 2004-08-04 Victor Leikehman <lei@il.ibm.com>
598 * libgfortran.h (array_t, size0) New declarations.
599 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
600 space if return value descriptor has NULL in its data field,
601 and initialize bounds and stride.
602 * intrinsics/size.c (array_t, size0): Declarations moved to
604 * generated/*.c: Regenerate.
606 2004-08-03 Roger Sayle <roger@eyesopen.com>
609 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
610 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
611 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
612 * config.h.in: Regenerate.
613 * configure: Regenerate.
615 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
616 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
617 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
618 implementations for targets that don't support C99 float functions.
620 2004-08-01 Roger Sayle <roger@eyesopen.com>
622 * io/write.c (write_float): Use the slightly more portable isnan
623 in preference to isinf.
625 2004-07-18 Bud Davis <bdavis9659@comcast.net>
627 * configure.ac: Add check for LFS support.
628 * configure: Regenerate
630 2004-07-11 Paul Brook <paul@codesourcery.com>
633 * m4/cexp.m4 (carg): Return -pi to pi.
634 * generated/exp_c?.c: Regenerate.
636 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
639 * libgfortran/io/write.c: (write_float): Added length check.
640 Remove pointless memset calls.
642 2004-07-04 Bud Davis <bdavis9659@comcast.net>
643 Paul Brook <paul@codesourcery.com>
646 * io/transfer.c(us_write): set recl for seq unform writes to max size.
647 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
648 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
650 * io/unix.c(is_seekable): set based upon the file/device, not the
651 method being used to access it (fd or mmap).
652 * io/unix.c(fd_flush): don't set file_size if !seekable.
653 * io/unix.c(fd_truncate: ditto.
655 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
656 Paul Brook <paul@codesourcery.com>
660 * libgfortran.h (gfc_strlen_type): Define.
661 * intrinsics/args.c (getarg): Rename ...
662 (getarg_i4): ... to this.
663 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
664 get_command_i4, get_command_i8): New functions.
666 2004-07-04 Matthias Klose <doko@debian.org>
668 * libtool-version: New.
669 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
670 * Makefile.in: Regenerate.
671 * configure.ac: Remove libtool_VERSION macro
672 * configure: Regenerate
674 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
675 Steven Bosscher <stevenb@suse.de>
677 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
680 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
681 Paul Brook <paul@codesourcery.com>
683 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
685 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
687 2004-06-27 Bud Davis <bdavis9659@comcast.net>
690 * io/write.c (write_float): check signbit for Infinity.
692 2004-06-26 Bud Davis <bdavis9659@comcast.net>
695 * unix.c(regular_file): create file if it does not exist.
697 2004-06-24 Andrew Pinski <apinski@apple.com>
699 * configure.ac: Remove check for libmx.
700 * configure: Regenerate.
702 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
705 * inquire.c (st_inquire): Add comment
706 * io.h (st_parameter): Add iolength.
707 (st_iolength, st_iolength_done): Declare.
708 * transfer.c (iolength_transfer, iolength_transfer_init,
709 st_iolength, st_iolength_done): New functions.
711 2004-06-21 Steven G. Kargl <kargls@comcast.net>
713 * etime.c (etime_sub): Remove array rank check;
714 Add check for sufficient space.
716 2004-06-19 Bud Davis <bdavis9659@comcast.net>
719 * io/list_read.c(set_value): fixed spelling.
721 2004-06-19 Bud Davis <bdavis9659@comcast.net>
724 * io/list_read.c(set_value): don't copy if the string is null.
726 2004-06-14 Bud Davis <bdavis9659@comcast.net>
729 * intrinsics/c99_functions.c: Use fpclassify if it exists.
731 2004-06-13 Paul Brook <paul@codesourcery.com>
733 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
734 * configure.ac: Add checks for nextafter and nextafterf.
735 * Makefile.in, config.h.in, configure: Regenerate.
736 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
737 * intrinsics/rand.c (rand): Use normalize_r4_i4.
738 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
739 (random_r8): Use normalize_r8_i8.
740 * runtime/normalize.c: New file.
742 2004-06-13 Steven G. Kargl <kargls@comcast.net>
743 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
745 * random.c: Fix several spelling and formatting mistakes in
747 (random_r8): Fix loop to make random numbers range in [0,1(.
750 2004-06-13 Steven G. Kargl <kargls@comcast.net>
752 * random.c (random_r4): Burn a random number.
753 (random_r8): fix infinite loop.
755 2004-06-12 Bud Davis <bdavis9659@comcast.net>
756 Steve Kargl <sgk@troutmask.apl.washington.edu>
759 * intrinsics/c99_functions.c: New file.
760 * Makefile.am: Add new file.
761 * configure.ac: Added test for round/roundf.
762 * Makefile.in: Regenerate.
763 * configure: Regenerate.
764 * configure.h.in: Regenerate.
766 2004-06-12 Steven G. Kargl <kargls@comcast.net>
768 * Makefile.am: Add rand.c and etime.c
769 * Makefile.in: Regenerated.
770 * aclocal.in: Regenerated.
771 * cpu_time.c (second_sub, second): New functions.
772 * rand.c (irand, rand, srand): New file.
773 * etime.c (etime_sub, etime): New file.
775 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
776 Steven Bosscher <stevenb@suse.de>
779 * intrinsics/date_and_time.c: New file.
780 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
781 * Makefile.in, aclocal.m4: Regenerate.
782 * libgfortran.h: Prototype date_and_time().
784 2004-06-12 Bud Davis <bdavis9659@comcast.net>
787 * intrinsics/args.c: Implement GETARG and IARGC.
788 * Makefile.am: Add it.
789 * Makefile.in: Regenerate.
791 2004-06-12 Bud Davis <bdavis9659@comcast.net>
794 * io/write.c(write_float): Format inf and nan IAW F2003.
796 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
799 * io/transfer.c (formatted_transfer): position is unique
800 for T and TL edit descriptors.
801 (data_transfer_init): set record length to size of internal
804 2004-06-09 Bud Davis <bdavis9659@comcast.net>
807 * io/backspace.c(st_backspace): call correct routine for
808 formatted and un-formatted units.
810 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
813 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
814 (lib_LTLIBRARIES): Rename to ...
815 (toolexeclib_LTLIBRARIES): this for multilib support.
816 * configure.in: Rename to ...
817 * configure.ac: this. Update to modern autoconf style, enable
818 multilibs, support --enable-version-specific-runtime-libs.
819 * Makefile.in: Regenerated.
820 * configure: Regenerated.
821 * aclocal.m4: Regenerated.
823 2004-05-30 Steven G. Kargl <kargls@comcast.net>
825 * libgfortran.h (random_seed): Update prototype.
826 * intrinsics/random.c: Disable old implementation and add new one.
828 2004-05-30 Andreas Jaeger <aj@suse.de>
830 * intrinsics/random.c: Include unistd.h for close and read
831 prototypes, remove unneeded inclusion of assert.h.
833 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
834 unneeded inclusion of assert.h.
836 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
839 * intrinsics/associated.c: Remove enum.
840 (associated): Replace TRUE/FALSE by 1/0.
842 2004-05-23 Steven G. Kargl <kargls@comcast.net>
844 * random.c (random_seed): Use correct variable.
846 2004-05-22 Steven G. Kargl <kargls@comcast.net>
848 * intrinsics/system_clock: New file.
849 * Makefile.am: Add intrinsics/system_clock.c.
850 * Makefile.in: Regenerate.
852 2004-05-21 Roger Sayle <roger@eyesopen.com>
854 * io/format.c (parse_format_list): Allow the comma after a string
855 literal to be optional.
857 2004-05-18 Paul Brook <paul@codesourcery.com>
858 Feng Wang <fengwang@nudt.edu.cn>
860 * Makefile.am (i_pow_c): Set it. Add build rule.
861 (gfor_built_src): Use it.
862 (m4_files): add m4/pow.m4.
863 * Makefile.in: Regenerate.
864 * m4/pow.m4: New file.
865 * generated/pow_*.c: Regenerate.
867 2004-05-18 Paul Brook <paul@codesourcery.com>
869 * Makefile.am: Remove references to types.m4.
870 * m4/iparm.m4: Merge with types.m4.
871 * m4/types.m4: Remove.
872 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
873 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
874 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
875 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
876 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
877 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
878 Update to use new iparm.m4.
879 * generated/*.c: Regenerate.
881 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
884 * gfortran.h (offset_t): Rename to ...
885 (gfc_offset): ... this.
886 * io/backspace.c (formatted_backspace, unformatted_backspace),
887 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
888 transfer.c (us_read, us_write, next_record_r, next_record_w),
889 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
890 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
891 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
892 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
893 occurences of offset_t by gfc_offset.
895 2004-05-16 Paul Brook <paul@codesourcery.com>
897 * io/format.c (write_real): Don't include padding in format.
899 2004-05-16 Paul Brook <paul@codesourcery.com>
901 * io/format.c (format_lex): Make c an int.
903 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
904 Paul Brook <paul@codesourcery.com>
906 * io/write.c (write_logical): Don't print extra blank.
907 (write_integer): Base field width on kind.
908 (list_formatted_write): Output initial blank.
910 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
912 * io/io.h (flush): Add prototype.
913 * io/transfer.c (finalize_transfer): Flush partial records.
914 * io/unix.c (flush): New function.
916 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
919 * io/io.h (unit_t): Rename to ...
921 (unit_root, current_unit, find_file, find_unit, get_unit): Now
923 (delete_file, insert_unit, close_unit): Argument now of type
925 * backspace.c (st_backspace), close.c (st_close), endfile.c
926 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
927 (test_endfile, edit_modes, new_unit, already_open, st_open),
928 rewind.c (st_rewind), transfer.c (current_unit), unit.c
929 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
930 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
931 get_unit, init_units, close_unit), unix.c (find_file0,
932 find_file, delete_file): Replace all occurences of unit_t by
935 2004-05-15 Bud Davis <bdavis9659@comcast.net>
938 * io/write.c (write_a): right justify A edit output.
940 2004-05-14 Bud Davis <bdavis9659@comcast.net>
943 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
944 * runtime/main.c(init): Call random_seed as part of MAIN init.
946 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
948 * io/format.c: (parse_format_list): No comma is required after
951 2004-05-13 Bud Davis <bdavis9659@comcast.net>
954 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
956 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
957 Steven Bosscher <stevenb@suse.de>
960 * libgfortran.h: Include <inttypes.h> if available.
962 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
964 * io/unix.c (MAP_FAILED): Define if missing.
965 (mmap_alloc): Cast MAP_FAILED to char *.
966 (mmap_open): Likewise.
968 2004-04-26 Bud Davis <bdavis9659@comcast.net>
970 * generated/_abs_i8.f90: New file.
971 * generated/_abs_c4.f90: New file.
972 * generated/_abs_c8.f90: New file.
973 * Makefile.am: Add them.
974 * Makefile.in: Regenerate.
976 2004-04-26 Bud Davis <bdavis9659@comcast.net>
979 * generated/_abs_i4.f90: New file.
980 * Makefile.am: Add it.
981 * Makefile.in: Regenerate.
983 2004-04-25 Bud Davis <bdavis9659@comcast.net>
986 * io/list_read.c(list_formatted_read): finish consuming the
987 spaces and seperators at eoln to get ready for next item.
989 2004-04-23 Bud Davis <bdavis9659@comcast.net>
992 * io/read.c(read_a): Handle field width > destination and no field width.
994 2004-04-22 Bud Davis <bdavis9659@comcast.net>
997 * io/format.c (format_item): gracefully handle a ')'
998 when it is the first character encountered in the string.
1000 2004-04-11 Bud Davis <bdavis9659@comcast.net>
1003 * io/transfer.c (next_record): Update last_record when
1004 more than one record is written to a direct access file
1005 with one write statement.
1007 2004-04-11 Bud Davis <bdavis9659@comcast.net>
1010 * io/transfer.c (next_record_w) : No '\n' if internal.
1011 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
1013 2004-04-11 Bud Davis <bdavis9659@comcast.net>
1015 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
1016 Will need to change this later to support direct access files > 2gb.
1018 2004-04-03 Bud Davis <bdavis9659@comcast.net>
1021 * io/transfer.c (next_record_r) : Skip to next record.
1023 2004-04-03 Bud Davis <bdavis9659@comcast.net>
1026 * io/transfer.c (next_record): Update last_record for DIRECT
1028 2004-04-03 Bud Davis <bdavis9659@comcast.net>
1031 * io/unix.c (find_file0): Use fd field of struct
1033 2004-04-03 Bud Davis <bdavis9659@comcast.net>
1036 * io/inquire.c (inquire_via_unit): Changed return string for
1037 BLANK=NULL. Use correct variable for ACTION.
1039 2004-04-01 Bud Davis <bdavis9659@comcast.net>
1042 * io/read.c (read_f): Allow a decimal without a leading digit.
1043 * io/write.c (output_float): remove a leading '0' to keep from
1044 overflowing the field (F edit descriptor).
1046 2004-04-01 Bud Davis <bdavis9659@comcast.net>
1049 * io/open.c (new_unit),
1050 * io/io.h : new_unit is now visible
1051 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
1052 * io/transfer.c (data_transfer_init): remove compile warnings.
1053 * io/rewind.c (st_rewind): ftruncate if writing.
1055 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1057 * write.c (write_l): Use extract_int for 'L' edit descriptor.
1059 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1062 * io/io.h (global_t):
1063 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
1064 Move eof_jmp to a global structure.
1065 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
1067 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1069 * m4/cexp.m4 (csqrt): Actually use the passed value.
1070 * generated/exp_c?.c: Regenerate.
1072 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1075 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
1076 * open.c (new_unit): Moved test for positioned direct access error.
1077 (init_units): Corrected calculation of max records.
1079 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
1081 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
1082 * Makefile.in: Regenerate.
1083 * m4/dotprodc.m4: New file. Implement complex dot_product.
1084 * m4/dotprod.m4: Delete the complex implementation.
1085 * generated/dotprod_*: Update.
1087 2004-02-07 Bud Davis <bdavis9659@comcast.net>
1089 * transfer.c (write_constant_string): Do not delete H's in hollerith
1092 2004-01-05 Andrew Pinski <apinski@apple.com>
1094 * configure.in: Check for csin in -lmx also.
1095 * configure: Regenerate.
1097 2004-01-01 Paul Brook <paul@codesourcery.com>
1099 * io/list_read.c (find_nml_node): Make static.
1100 (match_namelist_name): Ditto.
1101 * io/read.c (convert_precision_real): Make static, fix spelling.
1102 * io/transfer.c (extract_real): Remove unused prototype.
1103 (st_set_nml_var): Make static.
1104 * io/write.c (extract_real): Make static.
1106 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
1108 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
1110 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
1112 * io/transfer.c (data_transfer_init): Give a runtime error for list
1113 formatted reads and writes from/to files opened for unformatted IO.
1115 2003-11-30 Paul Brook <paul@nowt.org>
1117 * runtime/memory.c (push_context): Remove.
1118 (pop_context): Remove.
1119 * libgfortran.h: Remove prototypes.
1121 2003-11-27 Paul Brook <paul@nowt.org>
1123 * runtime/memory.c (deallocate): Nullify pointer after freeing.
1125 2003-11-27 Paul Brook <paul@nowt.org>
1127 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
1128 * libgfortran.h: Ditto.
1129 * m4/in_pack.m4: Ditto.
1130 * runtime/in_pack_generic.c: Ditto.
1131 * runtime/memory.c: Ditto.
1133 2003-11-26 Richard Henderson <rth@redhat.com>
1135 * m4/exponent.m4, m4/fraction.m4: New.
1136 * m4/nearest.m4, m4/set_exponent.m4: New.
1137 * generated/*: Update.
1138 * Makefile.am: Add them.
1139 (AM_CFLAGS): New. Use -std=gnu99.
1140 * Makefile.in: Regenerate.
1142 2003-11-08 Paul Brook <paul@nowt.org>
1145 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
1146 * m4/maxloc1.m4: Ditto.
1147 * m4/minloc0.m4: Ditto.
1148 * m4/minloc1.m4: Ditto.
1149 * m4/ifunction.m4: Set return value for zero sized arrays.
1150 * m4/iforeach.m4: Ditto.
1151 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
1152 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
1153 * generated/*: Update.
1155 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
1158 * io/list_read.c (eat_spaces): Treat tab as space.
1160 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
1162 * intrinsics/random.c: Add reference to paper containing algorithm.
1163 (random_seed): Extra error checking and proper handling of arrays.
1164 (arandom_r4, arandom_r8): Implement.
1166 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
1169 * runtime/memory.c (allocate_size): Allow allocation
1170 of zero-sized objects.
1172 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
1175 * open.c (new_unit): Open without a file name opens
1176 a file with name fort.<unit>.
1178 2003-10-12 Feng Wang <wf_cs@yahoo.com>
1180 * intrinsics/cshift0.c: New file.
1181 * m4/cshift1.m4: New file
1182 * generated/cshift*.c: New files.
1183 * Makefile.am: Add them.
1184 * Makefile.in: Regenerate.
1186 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
1188 * io/list_read.c (read_character): Remove unwanted call to free_saved.
1190 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
1192 * intrinsics/string_intrinsics.c (string_trim): New function.
1193 (string_repeat): New function.
1195 2003-10-11 Paul Brook <paul@nowt.org>
1197 * intrinsics/dprod_r8.f90: New file.
1198 * Makefile.am (gfor_specific_src): Add it.
1199 (gfor_built_specific_src): Rename from gfor_build_specific_c.
1201 (gfor_specific2_src): Rename from gfor_built_specific2_c.
1203 * Makefile.in: Regenerate.
1204 * generated/_aint_*.f90: New files.
1205 * generated/_anint*.f90: New files.
1206 * generated/_atan2*.f90: New files.
1207 * generated/_mod*.f90: New files.
1209 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
1211 * intrinsics/selected_kind.f90: New file.
1212 * Makefile.am: Add it.
1213 * Makefile.in: regenerate.
1215 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
1216 Paul Brook <paul@nowt.org>
1218 * intrinsics/random.c: New file.
1219 * Makefile.am (gfor_hemper_src): Add it.
1220 (gfor_specific_c): Fix typo.
1222 2003-09-19 Paul Brook <paul@nowt.org>
1224 * All: rename g95->gfc.
1226 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
1228 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
1230 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
1232 * io/write.c (write_float): Dectection of positive infinite number,
1233 Not a Number(NaN) and negative infinite number.
1234 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
1235 output a very_very small number ( < 0.1e-100 ).
1237 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
1239 * libgfortran.h (xtoa, itoa): Parameter modified.
1240 * io/io.h (namelist_info): Declaration to support namelist I/O
1241 (st_parameter): Add namelist related component
1242 (ionml, empty_internal_buffer, st_set_nml_var_int,
1243 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
1244 st_set_nml_var_log): Declaration
1245 (set_integer, set_integer): Parameter changed
1246 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
1248 (parse_format_list): Fix bug about FMT_SLASH
1249 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
1250 newly allocated saved_string
1251 (next_char): Add detection of End_Of_Line support
1252 (convert_integer): Now can process 64 bits interger
1253 (read_real): Bug fixed
1254 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
1255 (match_namelist_name): New implemention
1256 * io/lock.c (ionml): New global variable
1257 (library_end): Free memory in ionml
1258 * io/open.c (st_open): Variable initializtion
1259 * io/read.c (max_value): 64 bits interger support
1260 (convert_precsion_real): New procedure to replace "strtod" with more
1262 (read_f, read_radix): Input bug fix
1263 * io/transfer.c: (sf_seen_eor): New static variable
1264 (read_sf): Zeroize base buffer; fix bugs: single read statement can
1265 not get input in mutli line when read from stdin
1266 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
1268 (data_transfer_init): Clear internal buffer for Internel File I/O.
1269 Internal File now worked. Detect some error condition for namelist.
1271 (next_record_w): Internal file and Namelist I/O support.
1272 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
1273 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
1274 * io/unit.c (implicit_unit): Deletion
1275 (get_unit): Now cannot open a unit implicitly.
1276 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
1278 (mem_alloc_r_at): Internal file I/O support added
1279 (empty_internal_buffer): New function
1280 * io/write.c (extract_int): Support 64 bits interger processing
1281 (output_float): Varibale initialization
1282 (write_float): Infinite real number detection.
1283 (write_int): 64 bits integer I/O support
1284 (write_decimal): New function to output decimal number
1285 (otoa, btoa): Better implemention and 64 bits interger support
1286 (namelist_write): New function
1287 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
1290 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1292 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
1293 get_mem ): Add attribute.
1294 * intrinsics/spread_generic.c (__spread): Fix spelling.
1295 * io/inquire.c (inquire_via_filename): Add const.
1296 * io/io.h (sys_exit): Add attribute.
1297 * io/io.h (move_pos_offset): Add move_pos_offset.
1298 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
1299 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
1300 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
1301 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
1302 write_z): Add const.
1303 * io/read.c (convert_real): Add const.
1304 * io/transfer.c (type_name): Add const.
1305 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
1306 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
1307 inquire_read, inquire_write, inquire_readwrite): Add const.
1308 * io/write.c (output_float): Remove unused variable.
1309 * io/write.c (write_a, extract_int, extract_real, output_float,
1310 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
1311 write_e, write_f, write_en, write_es, write_logical, write_integer,
1312 write_character, write_real, write_complex): Add const.
1313 * runtime/error.c (rtoa): Remove unused variable.
1314 * runtime/select.c (select_string): Add const.
1315 * runtime/stop.c (stop_string): Add const.
1317 2003-08-10 Paul Brook <paul@nowt.org>
1319 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
1320 (FFLAGS): Add -fno-underscoring.
1321 * Makefile.in: Regenerate.
1322 * intrinsics/abort.c: New file.
1324 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
1326 * fmain.c (main): Do not call init and cleanup; call set_args instead.
1327 * libgfortran.h (init, cleanup): Remove declarations.
1328 (set_args): Add declaration.
1329 * runtime/main.c (init, cleanup): Make them static, and give them
1330 the constructor and destructor attributes.
1331 (set_args): New function.
1333 2003-08-10 Paul Brook <paul@nowt.org>
1335 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
1336 on which string is longest.
1338 2003-08-10 Paul Brook <paul@nowt.org>
1340 * Makefile.am (EXTRA_DIST): Remove old files.
1341 * Makefile.in: Regenerate.
1343 2003-07-26 Paul Brook <paul@nowt.org>
1345 Rename library to libgfortran.
1346 * libgfortran.h: Change prefix to _libgfortran_.
1348 2003-07-24 Paul Brook <paul@nowt.org>
1350 * configure.in: Don't pull in system libtool. Use toplevel
1353 2003-07-22 Paul Brook <paul@nowt.org>
1355 Regenerate all configury files.
1357 2003-07-09 Chun Huang <compiler@sohu.com>
1359 * intrinsics/string_intrinsic.c (string_scan): New function.
1360 (string_verify): New function.
1362 2003-06-25 Paul Brook <paul@nowt.org>
1364 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
1365 (mem_seek): Don't bother setting physical_offset.
1367 2003-06-20 Paul Brook <paul@nowt.org>
1369 * libgfor.h (stop_numeric): Declare.
1370 * runtime/pause.c: New file.
1371 * Makefile.am: Add it.
1373 2003-06-08 Paul Brook <paul@nowt.org>
1375 * m4/cexp.m4 (cabs): Use correct typed version.
1376 (csqrt): New function.
1378 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
1380 Spotted by Benjamin and Tobias:
1381 * io/list_read.c: Add Separator '\t'.
1382 (parse_real, read_real): Accept real values starting with an optional
1383 sign follows a decimal point.
1385 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
1387 * Makefile.am: Don't put cmath objects in subdir.
1388 * configure.in: Rename MATHOBJ to MATH_OBJ.
1390 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
1392 * intrinsics/associated.c: New file.
1393 * Makefile.am: Add it. Regenerate Makefile.in.
1394 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
1395 G95_DESCRIPTOR_DTYPE.
1397 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
1399 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
1400 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
1401 the scale_factor to 0 for F editing.
1403 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
1405 * libgfor.h: Only include stdint.h if it exists.
1407 2003-05-07 Paul Brook <paul@nowt.org>
1409 * libgfor.h: Use stdint.h types.
1410 * intrinsics/ishift.c: Ditto.
1411 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
1413 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
1415 * libgfor.h (offsetof): Define if nobody else does.
1416 * runtime/memory.c (HEADER_SIZE): Use it.
1418 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
1420 * configure.in: Require autoconf 2.54.
1422 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
1423 Paul Brook <paul@nowt.org>
1425 * intrinsics/reshape_generic.c: Copy the whole element, not just the
1427 * m4/transpose.m4: New file.
1428 * Makefile.am: Add them.
1429 Regenerate generated files.
1431 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1433 * io/format.c (parse_format_list): Allow 'X' without integer
1434 prefix. This is an extension. Interpretation is '1X'.
1436 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
1438 * io/format.c (parse_format_list): Allow '0P'.
1440 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1442 * Makefile.in: Re-regenerate for automake 1.7.3.
1444 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
1446 Port implementation for CHARACTER SELECT from Andy's tree.
1447 * runtime/select.c: New file
1448 * Makefile.am: Add it.
1449 * Makefile.in: Regenerate.
1451 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
1453 * io/transfer.c (formatted_transfer): Modified
1454 * io/unix.c (move_pos_offset): New Function.
1455 * io/format.c (parse_format_list): Modified.
1457 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
1459 * io/write.c (write_float,write_real): New implemention of
1460 FMT_G and default float editing.
1461 (calculate_exp,calculate_G_format,output_float): New Function.
1462 (write_float,write_real,write_logical): Modified
1463 * libgfor.h (default_rtoa): Remove Declaration.
1464 * runtime/error.c (default_rtoa): Remove Function.
1466 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
1469 * io/write.c (extract_real): Add missing break statement.
1471 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1473 * cpu_time.c: Make sure we have a definition of HZ. Don't
1474 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
1476 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1477 Paul Brook <paul@nowt.org>
1479 * configure.in: Check for process time headers and GETTIMEOFDAY.
1480 * makefile.am: Add intrinsics/cpu_time.c.
1481 * acinclude.m4: New file.
1482 * intrinsics/cpu_time.c: New file.
1483 * m4/dotprodl.m4: Fix typo.
1484 Regenerate generated files.
1486 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
1488 * io/write.c (extract_real): Ouput floating point value.
1489 (write_float): New Function.
1490 (write_e, write_f, write_en, write_es): Modified
1491 * io/transfer.c (formatted_transfer): Modified.
1492 * libgfor.h (default_rtoa): Declaration.
1493 (rtoa): Declaration.
1494 * runtime/error.c (default_rtoa): New Function.
1495 (rtoa): New Function.
1497 2003-04-05 Paul Brook <paul@nowt.org>
1499 * intrinsics/spread_generic.c: New file.
1500 * Makefile.am: Add it. Regenerate Makefile.in.
1502 2003-03-29 Paul Brook <paul@nowt.org>
1504 * intrinsics/pack_generic.c: New file.
1505 * intrinsics/unpack_generic.c: New file.
1506 * Makefile.am: Add them. Regenerate Makefile.in.
1508 2003-03-25 Paul Brook <paul@nowt.org>
1510 * intrinsics/eoshift0.c: New file.
1511 * intrinsics/eoshift2.c: New file.
1512 * m4/eoshift1.m4: New file.
1513 * m4/eoshift3.m4: New file.
1514 * Makefile.am: Add them.
1515 * in_unpack_generic.c: Initialize src.
1516 Regenerate generated files.
1518 2003-03-14 Paul Brook <paul@nowt.org>
1520 * m4/shape.m4: Work properly with array temporaries.
1521 * m4/in_pack.m4: Skip redundant checks for array temporaries.
1522 * runtime/in_pack_generic.c: Ditto.
1524 2003-03-12 Paul Brook <paul@nowt.org>
1526 * m4/shape.m4: Work properly with noncontiguous arrays.
1528 2003-03-08 Paul Brook <paul@nowt.org>
1530 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1531 * runtime/in_pack_generic.c: Ditto.
1533 2003-02-08 Paul Brook <paul@nowt.org>
1535 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1536 * io/close.c (st_close): Return void.
1537 * io/open.c (st_open): Return void.
1538 * libgfor.h (g95_array_char): Declare.
1539 (internal_malloc_size): Ditto.
1540 (internal_pack*, internal_unpack*): Ditto.
1541 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1543 * m4/in_unpack.m4: Include file fixes.
1544 * m4/reshape.m4: Increment the correct source pointer.
1545 * Makefile.am (maxloc): Fix typo.
1546 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1547 storage if neccessary. Fix logic for packed arrays.
1548 * runtime/in_unpack_generic.c: Call optimized functions.
1549 * runtime/main.c: Use runtime_error to report errors.
1550 * memory.c (internal_malloc_size): Make non-static.
1552 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1554 * reshape_packed.c, lock.c: Add #include <string.h>.
1555 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1556 environ.c, error.c, memory.c, string.c: Add const.
1557 * error.c (show_locus): Add void.
1559 2003-02-21 Paul Brook <paul@nowt.org>
1561 * m4/in_pack.m4: Avoid returning const * parameter.
1562 * Makefile.am: Only regenerate files in maintainer mode.
1564 2003-02-20 Paul Brook <paul@nowt.org>
1566 Add array repacking support functions.
1567 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1568 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1569 * Makefile.am: Build them. Regenerate configury files.
1570 * generated/: New directory for generated files (need to move
1571 everything else there).
1573 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1575 * m4/cexp.m4: Fix typo.
1577 2003-01-26 Paul Brook <paul@nowt.org>
1579 * intrinsics/: Add missing generated files.
1581 2003-01-26 Paul Brook <paul@nowt.org>
1583 * Makefile.am: Put -I before the filename.
1585 2003-01-24 Paul Brook <paul@nowt.org>
1587 * configure.in: Add AM_MAINTAINER_MODE.
1589 2003-01-23 Paul Brook <paul@nowt.org>
1591 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1593 Also regenerate other configury files.
1595 2003-01-21 Paul Brook <paul@nowt.org>
1597 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1599 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1601 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1602 Don't include "alloca.h".
1604 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1606 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1607 * Makefile.am: Adjust file name.
1608 * Makefile.in: Regenerate.
1609 * gfortypes.h: Kill, include everything in...
1610 * libgfor.h: ...here. Include config.h
1611 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1612 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1613 intrinsics/reshape_packed.c, intrinsics/size.c,
1614 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1615 for prefix for all functions instead of hardcoded.
1617 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1619 * io/lock.c (library_end): Propagate library return
1622 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1624 Port fixes from Andy's tree:
1625 * io/read.c (read_decimal): Reverse sense of overflow
1626 comparison during integer reads.
1627 * io/format.c (revert): Fix comment.
1628 (next_format): Fix format revision.
1629 * io/unix.c: Fix and simplify mmap version of stream
1632 2003-01-11 Paul Brook <paul@nowt.org>
1634 * configure, Makefile.in: Regenerate.
1636 2003-01-11 Paul Brook <paul@nowt.org>
1638 * runtime/stop.c: Rewrite.
1640 2003-01-08 Paul Brook <paul@nowt.org>
1642 * configure, Makefile.in: Regenerate.
1644 2003-01-05 Paul Brook <paul@nowt.org>
1646 * (*.m4) Move to m4/.
1647 * intrinsics/string.c (_gfor_string_index): New Function.
1649 2002-12-29 Paul Brook <paul@nowt.org>
1651 * intrinsics/reshape.*: New files.
1652 * gcc_config.patch: Update to new GCC configure system.
1654 2002-10-10 Paul Brook <paul@nowt.org>
1656 * intrinsics/size.c: New file.
1657 * intrinsics/shape.m4: New file.
1658 * Makefile.am: Add above files.
1660 2002-10-02 Paul Brook <paul@nowt.org>
1662 * fmain.c (main): Move here.
1663 * libgfor.c: From here.
1664 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1665 * Makefile.am: Build libgforbegin.
1666 * gcc_config.patch: Remove stray -march=athlon.
1667 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1668 * ifunction.m4: Move variable declarations to allow compilation with
1670 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1671 * README: Document use of patch -p1.
1673 2002-09-12 Paul Brook <paul@nowt.org>
1675 * math/*: Add complex math library functions.
1676 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1677 * Makefile.am: Add details for above.
1678 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1680 2002-09-09 Paul Brook <paul@nowt.org>
1682 * libgfor.c (determine_endianness): Use an array rather than a struct.
1683 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1685 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1687 * libgfor.c: Add fatal signal handler.
1688 Romove superfluous abort() calls.
1690 2002-09-07 Paul Brook <paul@nowt.org>
1692 * Makefile.am, intrinsics: Major rewrite.
1694 2002-09-02 Paul Brook <paul@nowt.org>
1696 * Makefile.am: Added -I$(srcdir) to m4 rule.
1698 2002-08-30 Paul Brook <paul@nowt.org>
1700 * io/*: Integrated libgforio.
1701 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1702 intrinsics in the intrisics directory.
1703 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1704 filename. Add 'and' and 'all' intrinsics.
1706 2002-08-17 Paul Brook <paul@nowt.org>
1708 * ALL: First release as more than just a single file