1 2004-08-27 Bud Davis <bdavis9659@comcast.net>
4 * io/io.h: created typedef for unit_mode.
5 * io/io.h (gfc_unit): added mode to unit structure.
6 * io/transfer.c (data_transfer_init): flush if a write then
7 read is done on a unit (direct access files).
8 * io/rewind.c (st_rewind): Used unit mode instead of global.
10 2004-08-24 Bud Davis <bdavis9659@comcast.net>
13 * runtime/error.c (itoa): keep from overflowing during
14 mod operation by using unsigned variable.
16 2004-08-24 Bud Davis <bdavis9659@comcast.net>
19 * runtime/string_intrinsics.c (string_index):check for
20 substring longer than string.
22 2004-08-24 David Edelsohn <edelsohn@gnu.org>
24 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
25 * Makefile.in: Rebuilt.
27 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
29 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
30 Fix formatting issues, update copyright years.
32 2004-08-21 Bud Davis <bdavis9659@comcast.net>
35 * io/transfer.c (next_record_w): Do not blank pad.
36 * io/transfer.c (next_record): Take into account partial records.
38 2004-08-18 Victor Leikehman <lei@il.ibm.com>
41 * io/transfer.c (st_set_nml_var)
42 * io/write.c (namelist_write): Allow var_name and var_name_len to be
43 null. For strings, use string_length field instead of len.
44 * io/io.h (struct namelist_type): New field string_length.
45 (st_set_nml_var_char): New argument string_length.
47 2004-08-13 Bud Davis <bdavis9659@comcast.net>
50 * io/open.c (st_open): use flags instead of the unit structure.
52 2004-08-10 Victor Leikehman <lei@il.ibm.com>
54 * io/list_read.c (namelist_read): Convert variable names
55 to lower case, so that mixed-case names are recognized.
56 Don't read beyond terminating slash.
58 2004-08-09 Richard Henderson <rth@redhat.com>
59 Roger Sayle <roger@eyesopen.com>
61 * intrinsics/c99_functions.c (nextafterf): New implementation that
62 works correctly with denormalized numbers.
64 2004-08-09 Victor Leikehman <lei@il.ibm.com>
66 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
67 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
68 Allocate space if return value has NULL in its data field.
69 * generated/*.c: Regenerate.
71 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
73 * intrinsics/env.c: New file.
74 * Makefile.am: Add env.c to build.
75 * Makefile.in: Regenerate.
77 2004-08-05 Victor Leikehman <lei@il.ibm.com>
80 * io/read.c (read_radix): Understand letters f and F as hex digits.
82 2004-08-04 Victor Leikehman <lei@il.ibm.com>
84 * libgfortran.h (array_t, size0) New declarations.
85 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
86 space if return value descriptor has NULL in its data field,
87 and initialize bounds and stride.
88 * intrinsics/size.c (array_t, size0): Declarations moved to
90 * generated/*.c: Regenerate.
92 2004-08-03 Roger Sayle <roger@eyesopen.com>
95 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
96 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
97 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
98 * config.h.in: Regenerate.
99 * configure: Regenerate.
101 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
102 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
103 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
104 implementations for targets that don't support C99 float functions.
106 2004-08-01 Roger Sayle <roger@eyesopen.com>
108 * io/write.c (write_float): Use the slightly more portable isnan
109 in preference to isinf.
111 2004-07-18 Bud Davis <bdavis9659@comcast.net>
113 * configure.ac: Add check for LFS support.
114 * configure: Regenerate
116 2004-07-11 Paul Brook <paul@codesourcery.com>
119 * m4/cexp.m4 (carg): Return -pi to pi.
120 * generated/exp_c?.c: Regenerate.
122 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
125 * libgfortran/io/write.c: (write_float): Added length check.
126 Remove pointless memset calls.
128 2004-07-04 Bud Davis <bdavis9659@comcast.net>
129 Paul Brook <paul@codesourcery.com>
132 * io/transfer.c(us_write): set recl for seq unform writes to max size.
133 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
134 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
136 * io/unix.c(is_seekable): set based upon the file/device, not the
137 method being used to access it (fd or mmap).
138 * io/unix.c(fd_flush): don't set file_size if !seekable.
139 * io/unix.c(fd_truncate: ditto.
141 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
142 Paul Brook <paul@codesourcery.com>
146 * libgfortran.h (gfc_strlen_type): Define.
147 * intrinsics/args.c (getarg): Rename ...
148 (getarg_i4): ... to this.
149 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
150 get_command_i4, get_command_i8): New functions.
152 2004-07-04 Matthias Klose <doko@debian.org>
154 * libtool-version: New.
155 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
156 * Makefile.in: Regenerate.
157 * configure.ac: Remove libtool_VERSION macro
158 * configure: Regenerate
160 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
161 Steven Bosscher <stevenb@suse.de>
163 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
166 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
167 Paul Brook <paul@codesourcery.com>
169 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
171 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
173 2004-06-27 Bud Davis <bdavis9659@comcast.net>
176 * io/write.c (write_float): check signbit for Infinity.
178 2004-06-26 Bud Davis <bdavis9659@comcast.net>
181 * unix.c(regular_file): create file if it does not exist.
183 2004-06-24 Andrew Pinski <apinski@apple.com>
185 * configure.ac: Remove check for libmx.
186 * configure: Regenerate.
188 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
191 * inquire.c (st_inquire): Add comment
192 * io.h (st_parameter): Add iolength.
193 (st_iolength, st_iolength_done): Declare.
194 * transfer.c (iolength_transfer, iolength_transfer_init,
195 st_iolength, st_iolength_done): New functions.
197 2004-06-21 Steven G. Kargl <kargls@comcast.net>
199 * etime.c (etime_sub): Remove array rank check;
200 Add check for sufficient space.
202 2004-06-19 Bud Davis <bdavis9659@comcast.net>
205 * io/list_read.c(set_value): fixed spelling.
207 2004-06-19 Bud Davis <bdavis9659@comcast.net>
210 * io/list_read.c(set_value): don't copy if the string is null.
212 2004-06-14 Bud Davis <bdavis9659@comcast.net>
215 * intrinsics/c99_functions.c: Use fpclassify if it exists.
217 2004-06-13 Paul Brook <paul@codesourcery.com>
219 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
220 * configure.ac: Add checks for nextafter and nextafterf.
221 * Makefile.in, config.h.in, configure: Regenerate.
222 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
223 * intrinsics/rand.c (rand): Use normalize_r4_i4.
224 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
225 (random_r8): Use normalize_r8_i8.
226 * runtime/normalize.c: New file.
228 2004-06-13 Steven G. Kargl <kargls@comcast.net>
229 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
231 * random.c: Fix several spelling and formatting mistakes in
233 (random_r8): Fix loop to make random numbers range in [0,1(.
236 2004-06-13 Steven G. Kargl <kargls@comcast.net>
238 * random.c (random_r4): Burn a random number.
239 (random_r8): fix infinite loop.
241 2004-06-12 Bud Davis <bdavis9659@comcast.net>
242 Steve Kargl <sgk@troutmask.apl.washington.edu>
245 * intrinsics/c99_functions.c: New file.
246 * Makefile.am: Add new file.
247 * configure.ac: Added test for round/roundf.
248 * Makefile.in: Regenerate.
249 * configure: Regenerate.
250 * configure.h.in: Regenerate.
252 2004-06-12 Steven G. Kargl <kargls@comcast.net>
254 * Makefile.am: Add rand.c and etime.c
255 * Makefile.in: Regenerated.
256 * aclocal.in: Regenerated.
257 * cpu_time.c (second_sub, second): New functions.
258 * rand.c (irand, rand, srand): New file.
259 * etime.c (etime_sub, etime): New file.
261 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
262 Steven Bosscher <stevenb@suse.de>
265 * intrinsics/date_and_time.c: New file.
266 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
267 * Makefile.in, aclocal.m4: Regenerate.
268 * libgfortran.h: Prototype date_and_time().
270 2004-06-12 Bud Davis <bdavis9659@comcast.net>
273 * intrinsics/args.c: Implement GETARG and IARGC.
274 * Makefile.am: Add it.
275 * Makefile.in: Regenerate.
277 2004-06-12 Bud Davis <bdavis9659@comcast.net>
280 * io/write.c(write_float): Format inf and nan IAW F2003.
282 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
285 * io/transfer.c (formatted_transfer): position is unique
286 for T and TL edit descriptors.
287 (data_transfer_init): set record length to size of internal
290 2004-06-09 Bud Davis <bdavis9659@comcast.net>
293 * io/backspace.c(st_backspace): call correct routine for
294 formatted and un-formatted units.
296 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
299 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
300 (lib_LTLIBRARIES): Rename to ...
301 (toolexeclib_LTLIBRARIES): this for multilib support.
302 * configure.in: Rename to ...
303 * configure.ac: this. Update to modern autoconf style, enable
304 multilibs, support --enable-version-specific-runtime-libs.
305 * Makefile.in: Regenerated.
306 * configure: Regenerated.
307 * aclocal.m4: Regenerated.
309 2004-05-30 Steven G. Kargl <kargls@comcast.net>
311 * libgfortran.h (random_seed): Update prototype.
312 * intrinsics/random.c: Disable old implementation and add new one.
314 2004-05-30 Andreas Jaeger <aj@suse.de>
316 * intrinsics/random.c: Include unistd.h for close and read
317 prototypes, remove unneeded inclusion of assert.h.
319 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
320 unneeded inclusion of assert.h.
322 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
325 * intrinsics/associated.c: Remove enum.
326 (associated): Replace TRUE/FALSE by 1/0.
328 2004-05-23 Steven G. Kargl <kargls@comcast.net>
330 * random.c (random_seed): Use correct variable.
332 2004-05-22 Steven G. Kargl <kargls@comcast.net>
334 * intrinsics/system_clock: New file.
335 * Makefile.am: Add intrinsics/system_clock.c.
336 * Makefile.in: Regenerate.
338 2004-05-21 Roger Sayle <roger@eyesopen.com>
340 * io/format.c (parse_format_list): Allow the comma after a string
341 literal to be optional.
343 2004-05-18 Paul Brook <paul@codesourcery.com>
344 Feng Wang <fengwang@nudt.edu.cn>
346 * Makefile.am (i_pow_c): Set it. Add build rule.
347 (gfor_built_src): Use it.
348 (m4_files): add m4/pow.m4.
349 * Makefile.in: Regenerate.
350 * m4/pow.m4: New file.
351 * generated/pow_*.c: Regenerate.
353 2004-05-18 Paul Brook <paul@codesourcery.com>
355 * Makefile.am: Remove references to types.m4.
356 * m4/iparm.m4: Merge with types.m4.
357 * m4/types.m4: Remove.
358 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
359 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
360 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
361 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
362 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
363 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
364 Update to use new iparm.m4.
365 * generated/*.c: Regenerate.
367 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
370 * gfortran.h (offset_t): Rename to ...
371 (gfc_offset): ... this.
372 * io/backspace.c (formatted_backspace, unformatted_backspace),
373 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
374 transfer.c (us_read, us_write, next_record_r, next_record_w),
375 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
376 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
377 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
378 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
379 occurences of offset_t by gfc_offset.
381 2004-05-16 Paul Brook <paul@codesourcery.com>
383 * io/format.c (write_real): Don't include padding in format.
385 2004-05-16 Paul Brook <paul@codesourcery.com>
387 * io/format.c (format_lex): Make c an int.
389 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
390 Paul Brook <paul@codesourcery.com>
392 * io/write.c (write_logical): Don't print extra blank.
393 (write_integer): Base field width on kind.
394 (list_formatted_write): Output initial blank.
396 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
398 * io/io.h (flush): Add prototype.
399 * io/transfer.c (finalize_transfer): Flush partial records.
400 * io/unix.c (flush): New function.
402 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
405 * io/io.h (unit_t): Rename to ...
407 (unit_root, current_unit, find_file, find_unit, get_unit): Now
409 (delete_file, insert_unit, close_unit): Argument now of type
411 * backspace.c (st_backspace), close.c (st_close), endfile.c
412 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
413 (test_endfile, edit_modes, new_unit, already_open, st_open),
414 rewind.c (st_rewind), transfer.c (current_unit), unit.c
415 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
416 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
417 get_unit, init_units, close_unit), unix.c (find_file0,
418 find_file, delete_file): Replace all occurences of unit_t by
421 2004-05-15 Bud Davis <bdavis9659@comcast.net>
424 * io/write.c (write_a): right justify A edit output.
426 2004-05-14 Bud Davis <bdavis9659@comcast.net>
429 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
430 * runtime/main.c(init): Call random_seed as part of MAIN init.
432 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
434 * io/format.c: (parse_format_list): No comma is required after
437 2004-05-13 Bud Davis <bdavis9659@comcast.net>
440 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
442 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
443 Steven Bosscher <stevenb@suse.de>
446 * libgfortran.h: Include <inttypes.h> if available.
448 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
450 * io/unix.c (MAP_FAILED): Define if missing.
451 (mmap_alloc): Cast MAP_FAILED to char *.
452 (mmap_open): Likewise.
454 2004-04-26 Bud Davis <bdavis9659@comcast.net>
456 * generated/_abs_i8.f90: New file.
457 * generated/_abs_c4.f90: New file.
458 * generated/_abs_c8.f90: New file.
459 * Makefile.am: Add them.
460 * Makefile.in: Regenerate.
462 2004-04-26 Bud Davis <bdavis9659@comcast.net>
465 * generated/_abs_i4.f90: New file.
466 * Makefile.am: Add it.
467 * Makefile.in: Regenerate.
469 2004-04-25 Bud Davis <bdavis9659@comcast.net>
472 * io/list_read.c(list_formatted_read): finish consuming the
473 spaces and seperators at eoln to get ready for next item.
475 2004-04-23 Bud Davis <bdavis9659@comcast.net>
478 * io/read.c(read_a): Handle field width > destination and no field width.
480 2004-04-22 Bud Davis <bdavis9659@comcast.net>
483 * io/format.c (format_item): gracefully handle a ')'
484 when it is the first character encountered in the string.
486 2004-04-11 Bud Davis <bdavis9659@comcast.net>
489 * io/transfer.c (next_record): Update last_record when
490 more than one record is written to a direct access file
491 with one write statement.
493 2004-04-11 Bud Davis <bdavis9659@comcast.net>
496 * io/transfer.c (next_record_w) : No '\n' if internal.
497 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
499 2004-04-11 Bud Davis <bdavis9659@comcast.net>
501 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
502 Will need to change this later to support direct access files > 2gb.
504 2004-04-03 Bud Davis <bdavis9659@comcast.net>
507 * io/transfer.c (next_record_r) : Skip to next record.
509 2004-04-03 Bud Davis <bdavis9659@comcast.net>
512 * io/transfer.c (next_record): Update last_record for DIRECT
514 2004-04-03 Bud Davis <bdavis9659@comcast.net>
517 * io/unix.c (find_file0): Use fd field of struct
519 2004-04-03 Bud Davis <bdavis9659@comcast.net>
522 * io/inquire.c (inquire_via_unit): Changed return string for
523 BLANK=NULL. Use correct variable for ACTION.
525 2004-04-01 Bud Davis <bdavis9659@comcast.net>
528 * io/read.c (read_f): Allow a decimal without a leading digit.
529 * io/write.c (output_float): remove a leading '0' to keep from
530 overflowing the field (F edit descriptor).
532 2004-04-01 Bud Davis <bdavis9659@comcast.net>
535 * io/open.c (new_unit),
536 * io/io.h : new_unit is now visible
537 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
538 * io/transfer.c (data_transfer_init): remove compile warnings.
539 * io/rewind.c (st_rewind): ftruncate if writing.
541 2004-03-24 Bud Davis <bdavis9659@comcast.net>
543 * write.c (write_l): Use extract_int for 'L' edit descriptor.
545 2004-03-24 Bud Davis <bdavis9659@comcast.net>
548 * io/io.h (global_t):
549 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
550 Move eof_jmp to a global structure.
551 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
553 2004-03-24 Bud Davis <bdavis9659@comcast.net>
555 * m4/cexp.m4 (csqrt): Actually use the passed value.
556 * generated/exp_c?.c: Regenerate.
558 2004-03-24 Bud Davis <bdavis9659@comcast.net>
561 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
562 * open.c (new_unit): Moved test for positioned direct access error.
563 (init_units): Corrected calculation of max records.
565 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
567 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
568 * Makefile.in: Regenerate.
569 * m4/dotprodc.m4: New file. Implement complex dot_product.
570 * m4/dotprod.m4: Delete the complex implementation.
571 * generated/dotprod_*: Update.
573 2004-02-07 Bud Davis <bdavis9659@comcast.net>
575 * transfer.c (write_constant_string): Do not delete H's in hollerith
578 2004-01-05 Andrew Pinski <apinski@apple.com>
580 * configure.in: Check for csin in -lmx also.
581 * configure: Regenerate.
583 2004-01-01 Paul Brook <paul@codesourcery.com>
585 * io/list_read.c (find_nml_node): Make static.
586 (match_namelist_name): Ditto.
587 * io/read.c (convert_precision_real): Make static, fix spelling.
588 * io/transfer.c (extract_real): Remove unused prototype.
589 (st_set_nml_var): Make static.
590 * io/write.c (extract_real): Make static.
592 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
594 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
596 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
598 * io/transfer.c (data_transfer_init): Give a runtime error for list
599 formatted reads and writes from/to files opened for unformatted IO.
601 2003-11-30 Paul Brook <paul@nowt.org>
603 * runtime/memory.c (push_context): Remove.
604 (pop_context): Remove.
605 * libgfortran.h: Remove prototypes.
607 2003-11-27 Paul Brook <paul@nowt.org>
609 * runtime/memory.c (deallocate): Nullify pointer after freeing.
611 2003-11-27 Paul Brook <paul@nowt.org>
613 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
614 * libgfortran.h: Ditto.
615 * m4/in_pack.m4: Ditto.
616 * runtime/in_pack_generic.c: Ditto.
617 * runtime/memory.c: Ditto.
619 2003-11-26 Richard Henderson <rth@redhat.com>
621 * m4/exponent.m4, m4/fraction.m4: New.
622 * m4/nearest.m4, m4/set_exponent.m4: New.
623 * generated/*: Update.
624 * Makefile.am: Add them.
625 (AM_CFLAGS): New. Use -std=gnu99.
626 * Makefile.in: Regenerate.
628 2003-11-08 Paul Brook <paul@nowt.org>
631 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
632 * m4/maxloc1.m4: Ditto.
633 * m4/minloc0.m4: Ditto.
634 * m4/minloc1.m4: Ditto.
635 * m4/ifunction.m4: Set return value for zero sized arrays.
636 * m4/iforeach.m4: Ditto.
637 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
638 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
639 * generated/*: Update.
641 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
644 * io/list_read.c (eat_spaces): Treat tab as space.
646 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
648 * intrinsics/random.c: Add reference to paper containing algorithm.
649 (random_seed): Extra error checking and proper handling of arrays.
650 (arandom_r4, arandom_r8): Implement.
652 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
655 * runtime/memory.c (allocate_size): Allow allocation
656 of zero-sized objects.
658 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
661 * open.c (new_unit): Open without a file name opens
662 a file with name fort.<unit>.
664 2003-10-12 Feng Wang <wf_cs@yahoo.com>
666 * intrinsics/cshift0.c: New file.
667 * m4/cshift1.m4: New file
668 * generated/cshift*.c: New files.
669 * Makefile.am: Add them.
670 * Makefile.in: Regenerate.
672 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
674 * io/list_read.c (read_character): Remove unwanted call to free_saved.
676 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
678 * intrinsics/string_intrinsics.c (string_trim): New function.
679 (string_repeat): New function.
681 2003-10-11 Paul Brook <paul@nowt.org>
683 * intrinsics/dprod_r8.f90: New file.
684 * Makefile.am (gfor_specific_src): Add it.
685 (gfor_built_specific_src): Rename from gfor_build_specific_c.
687 (gfor_specific2_src): Rename from gfor_built_specific2_c.
689 * Makefile.in: Regenerate.
690 * generated/_aint_*.f90: New files.
691 * generated/_anint*.f90: New files.
692 * generated/_atan2*.f90: New files.
693 * generated/_mod*.f90: New files.
695 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
697 * intrinsics/selected_kind.f90: New file.
698 * Makefile.am: Add it.
699 * Makefile.in: regenerate.
701 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
702 Paul Brook <paul@nowt.org>
704 * intrinsics/random.c: New file.
705 * Makefile.am (gfor_hemper_src): Add it.
706 (gfor_specific_c): Fix typo.
708 2003-09-19 Paul Brook <paul@nowt.org>
710 * All: rename g95->gfc.
712 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
714 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
716 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
718 * io/write.c (write_float): Dectection of positive infinite number,
719 Not a Number(NaN) and negative infinite number.
720 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
721 output a very_very small number ( < 0.1e-100 ).
723 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
725 * libgfortran.h (xtoa, itoa): Parameter modified.
726 * io/io.h (namelist_info): Declaration to support namelist I/O
727 (st_parameter): Add namelist related component
728 (ionml, empty_internal_buffer, st_set_nml_var_int,
729 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
730 st_set_nml_var_log): Declaration
731 (set_integer, set_integer): Parameter changed
732 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
734 (parse_format_list): Fix bug about FMT_SLASH
735 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
736 newly allocated saved_string
737 (next_char): Add detection of End_Of_Line support
738 (convert_integer): Now can process 64 bits interger
739 (read_real): Bug fixed
740 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
741 (match_namelist_name): New implemention
742 * io/lock.c (ionml): New global variable
743 (library_end): Free memory in ionml
744 * io/open.c (st_open): Variable initializtion
745 * io/read.c (max_value): 64 bits interger support
746 (convert_precsion_real): New procedure to replace "strtod" with more
748 (read_f, read_radix): Input bug fix
749 * io/transfer.c: (sf_seen_eor): New static variable
750 (read_sf): Zeroize base buffer; fix bugs: single read statement can
751 not get input in mutli line when read from stdin
752 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
754 (data_transfer_init): Clear internal buffer for Internel File I/O.
755 Internal File now worked. Detect some error condition for namelist.
757 (next_record_w): Internal file and Namelist I/O support.
758 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
759 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
760 * io/unit.c (implicit_unit): Deletion
761 (get_unit): Now cannot open a unit implicitly.
762 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
764 (mem_alloc_r_at): Internal file I/O support added
765 (empty_internal_buffer): New function
766 * io/write.c (extract_int): Support 64 bits interger processing
767 (output_float): Varibale initialization
768 (write_float): Infinite real number detection.
769 (write_int): 64 bits integer I/O support
770 (write_decimal): New function to output decimal number
771 (otoa, btoa): Better implemention and 64 bits interger support
772 (namelist_write): New function
773 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
776 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
778 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
779 get_mem ): Add attribute.
780 * intrinsics/spread_generic.c (__spread): Fix spelling.
781 * io/inquire.c (inquire_via_filename): Add const.
782 * io/io.h (sys_exit): Add attribute.
783 * io/io.h (move_pos_offset): Add move_pos_offset.
784 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
785 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
786 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
787 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
789 * io/read.c (convert_real): Add const.
790 * io/transfer.c (type_name): Add const.
791 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
792 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
793 inquire_read, inquire_write, inquire_readwrite): Add const.
794 * io/write.c (output_float): Remove unused variable.
795 * io/write.c (write_a, extract_int, extract_real, output_float,
796 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
797 write_e, write_f, write_en, write_es, write_logical, write_integer,
798 write_character, write_real, write_complex): Add const.
799 * runtime/error.c (rtoa): Remove unused variable.
800 * runtime/select.c (select_string): Add const.
801 * runtime/stop.c (stop_string): Add const.
803 2003-08-10 Paul Brook <paul@nowt.org>
805 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
806 (FFLAGS): Add -fno-underscoring.
807 * Makefile.in: Regenerate.
808 * intrinsics/abort.c: New file.
810 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
812 * fmain.c (main): Do not call init and cleanup; call set_args instead.
813 * libgfortran.h (init, cleanup): Remove declarations.
814 (set_args): Add declaration.
815 * runtime/main.c (init, cleanup): Make them static, and give them
816 the constructor and destructor attributes.
817 (set_args): New function.
819 2003-08-10 Paul Brook <paul@nowt.org>
821 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
822 on which string is longest.
824 2003-08-10 Paul Brook <paul@nowt.org>
826 * Makefile.am (EXTRA_DIST): Remove old files.
827 * Makefile.in: Regenerate.
829 2003-07-26 Paul Brook <paul@nowt.org>
831 Rename library to libgfortran.
832 * libgfortran.h: Change prefix to _libgfortran_.
834 2003-07-24 Paul Brook <paul@nowt.org>
836 * configure.in: Don't pull in system libtool. Use toplevel
839 2003-07-22 Paul Brook <paul@nowt.org>
841 Regenerate all configury files.
843 2003-07-09 Chun Huang <compiler@sohu.com>
845 * intrinsics/string_intrinsic.c (string_scan): New function.
846 (string_verify): New function.
848 2003-06-25 Paul Brook <paul@nowt.org>
850 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
851 (mem_seek): Don't bother setting physical_offset.
853 2003-06-20 Paul Brook <paul@nowt.org>
855 * libgfor.h (stop_numeric): Declare.
856 * runtime/pause.c: New file.
857 * Makefile.am: Add it.
859 2003-06-08 Paul Brook <paul@nowt.org>
861 * m4/cexp.m4 (cabs): Use correct typed version.
862 (csqrt): New function.
864 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
866 Spotted by Benjamin and Tobias:
867 * io/list_read.c: Add Separator '\t'.
868 (parse_real, read_real): Accept real values starting with an optional
869 sign follows a decimal point.
871 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
873 * Makefile.am: Don't put cmath objects in subdir.
874 * configure.in: Rename MATHOBJ to MATH_OBJ.
876 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
878 * intrinsics/associated.c: New file.
879 * Makefile.am: Add it. Regenerate Makefile.in.
880 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
881 G95_DESCRIPTOR_DTYPE.
883 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
885 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
886 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
887 the scale_factor to 0 for F editing.
889 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
891 * libgfor.h: Only include stdint.h if it exists.
893 2003-05-07 Paul Brook <paul@nowt.org>
895 * libgfor.h: Use stdint.h types.
896 * intrinsics/ishift.c: Ditto.
897 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
899 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
901 * libgfor.h (offsetof): Define if nobody else does.
902 * runtime/memory.c (HEADER_SIZE): Use it.
904 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
906 * configure.in: Require autoconf 2.54.
908 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
909 Paul Brook <paul@nowt.org>
911 * intrinsics/reshape_generic.c: Copy the whole element, not just the
913 * m4/transpose.m4: New file.
914 * Makefile.am: Add them.
915 Regenerate generated files.
917 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
919 * io/format.c (parse_format_list): Allow 'X' without integer
920 prefix. This is an extension. Interpretation is '1X'.
922 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
924 * io/format.c (parse_format_list): Allow '0P'.
926 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
928 * Makefile.in: Re-regenerate for automake 1.7.3.
930 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
932 Port implementation for CHARACTER SELECT from Andy's tree.
933 * runtime/select.c: New file
934 * Makefile.am: Add it.
935 * Makefile.in: Regenerate.
937 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
939 * io/transfer.c (formatted_transfer): Modified
940 * io/unix.c (move_pos_offset): New Function.
941 * io/format.c (parse_format_list): Modified.
943 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
945 * io/write.c (write_float,write_real): New implemention of
946 FMT_G and default float editing.
947 (calculate_exp,calculate_G_format,output_float): New Function.
948 (write_float,write_real,write_logical): Modified
949 * libgfor.h (default_rtoa): Remove Declaration.
950 * runtime/error.c (default_rtoa): Remove Function.
952 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
955 * io/write.c (extract_real): Add missing break statement.
957 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
959 * cpu_time.c: Make sure we have a definition of HZ. Don't
960 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
962 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
963 Paul Brook <paul@nowt.org>
965 * configure.in: Check for process time headers and GETTIMEOFDAY.
966 * makefile.am: Add intrinsics/cpu_time.c.
967 * acinclude.m4: New file.
968 * intrinsics/cpu_time.c: New file.
969 * m4/dotprodl.m4: Fix typo.
970 Regenerate generated files.
972 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
974 * io/write.c (extract_real): Ouput floating point value.
975 (write_float): New Function.
976 (write_e, write_f, write_en, write_es): Modified
977 * io/transfer.c (formatted_transfer): Modified.
978 * libgfor.h (default_rtoa): Declaration.
980 * runtime/error.c (default_rtoa): New Function.
981 (rtoa): New Function.
983 2003-04-05 Paul Brook <paul@nowt.org>
985 * intrinsics/spread_generic.c: New file.
986 * Makefile.am: Add it. Regenerate Makefile.in.
988 2003-03-29 Paul Brook <paul@nowt.org>
990 * intrinsics/pack_generic.c: New file.
991 * intrinsics/unpack_generic.c: New file.
992 * Makefile.am: Add them. Regenerate Makefile.in.
994 2003-03-25 Paul Brook <paul@nowt.org>
996 * intrinsics/eoshift0.c: New file.
997 * intrinsics/eoshift2.c: New file.
998 * m4/eoshift1.m4: New file.
999 * m4/eoshift3.m4: New file.
1000 * Makefile.am: Add them.
1001 * in_unpack_generic.c: Initialize src.
1002 Regenerate generated files.
1004 2003-03-14 Paul Brook <paul@nowt.org>
1006 * m4/shape.m4: Work properly with array temporaries.
1007 * m4/in_pack.m4: Skip redundant checks for array temporaries.
1008 * runtime/in_pack_generic.c: Ditto.
1010 2003-03-12 Paul Brook <paul@nowt.org>
1012 * m4/shape.m4: Work properly with noncontiguous arrays.
1014 2003-03-08 Paul Brook <paul@nowt.org>
1016 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1017 * runtime/in_pack_generic.c: Ditto.
1019 2003-02-08 Paul Brook <paul@nowt.org>
1021 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1022 * io/close.c (st_close): Return void.
1023 * io/open.c (st_open): Return void.
1024 * libgfor.h (g95_array_char): Declare.
1025 (internal_malloc_size): Ditto.
1026 (internal_pack*, internal_unpack*): Ditto.
1027 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1029 * m4/in_unpack.m4: Include file fixes.
1030 * m4/reshape.m4: Increment the correct source pointer.
1031 * Makefile.am (maxloc): Fix typo.
1032 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1033 storage if neccessary. Fix logic for packed arrays.
1034 * runtime/in_unpack_generic.c: Call optimized functions.
1035 * runtime/main.c: Use runtime_error to report errors.
1036 * memory.c (internal_malloc_size): Make non-static.
1038 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1040 * reshape_packed.c, lock.c: Add #include <string.h>.
1041 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1042 environ.c, error.c, memory.c, string.c: Add const.
1043 * error.c (show_locus): Add void.
1045 2003-02-21 Paul Brook <paul@nowt.org>
1047 * m4/in_pack.m4: Avoid returning const * parameter.
1048 * Makefile.am: Only regenerate files in maintainer mode.
1050 2003-02-20 Paul Brook <paul@nowt.org>
1052 Add array repacking support functions.
1053 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1054 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1055 * Makefile.am: Build them. Regenerate configury files.
1056 * generated/: New directory for generated files (need to move
1057 everything else there).
1059 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1061 * m4/cexp.m4: Fix typo.
1063 2003-01-26 Paul Brook <paul@nowt.org>
1065 * intrinsics/: Add missing generated files.
1067 2003-01-26 Paul Brook <paul@nowt.org>
1069 * Makefile.am: Put -I before the filename.
1071 2003-01-24 Paul Brook <paul@nowt.org>
1073 * configure.in: Add AM_MAINTAINER_MODE.
1075 2003-01-23 Paul Brook <paul@nowt.org>
1077 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1079 Also regenerate other configury files.
1081 2003-01-21 Paul Brook <paul@nowt.org>
1083 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1085 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1087 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1088 Don't include "alloca.h".
1090 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1092 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1093 * Makefile.am: Adjust file name.
1094 * Makefile.in: Regenerate.
1095 * gfortypes.h: Kill, include everything in...
1096 * libgfor.h: ...here. Include config.h
1097 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1098 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1099 intrinsics/reshape_packed.c, intrinsics/size.c,
1100 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1101 for prefix for all functions instead of hardcoded.
1103 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1105 * io/lock.c (library_end): Propagate library return
1108 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1110 Port fixes from Andy's tree:
1111 * io/read.c (read_decimal): Reverse sense of overflow
1112 comparison during integer reads.
1113 * io/format.c (revert): Fix comment.
1114 (next_format): Fix format revision.
1115 * io/unix.c: Fix and simplify mmap version of stream
1118 2003-01-11 Paul Brook <paul@nowt.org>
1120 * configure, Makefile.in: Regenerate.
1122 2003-01-11 Paul Brook <paul@nowt.org>
1124 * runtime/stop.c: Rewrite.
1126 2003-01-08 Paul Brook <paul@nowt.org>
1128 * configure, Makefile.in: Regenerate.
1130 2003-01-05 Paul Brook <paul@nowt.org>
1132 * (*.m4) Move to m4/.
1133 * intrinsics/string.c (_gfor_string_index): New Function.
1135 2002-12-29 Paul Brook <paul@nowt.org>
1137 * intrinsics/reshape.*: New files.
1138 * gcc_config.patch: Update to new GCC configure system.
1140 2002-10-10 Paul Brook <paul@nowt.org>
1142 * intrinsics/size.c: New file.
1143 * intrinsics/shape.m4: New file.
1144 * Makefile.am: Add above files.
1146 2002-10-02 Paul Brook <paul@nowt.org>
1148 * fmain.c (main): Move here.
1149 * libgfor.c: From here.
1150 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1151 * Makefile.am: Build libgforbegin.
1152 * gcc_config.patch: Remove stray -march=athlon.
1153 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1154 * ifunction.m4: Move variable declarations to allow compilation with
1156 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1157 * README: Document use of patch -p1.
1159 2002-09-12 Paul Brook <paul@nowt.org>
1161 * math/*: Add complex math library functions.
1162 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1163 * Makefile.am: Add details for above.
1164 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1166 2002-09-09 Paul Brook <paul@nowt.org>
1168 * libgfor.c (determine_endianness): Use an array rather than a struct.
1169 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1171 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1173 * libgfor.c: Add fatal signal handler.
1174 Romove superfluous abort() calls.
1176 2002-09-07 Paul Brook <paul@nowt.org>
1178 * Makefile.am, intrinsics: Major rewrite.
1180 2002-09-02 Paul Brook <paul@nowt.org>
1182 * Makefile.am: Added -I$(srcdir) to m4 rule.
1184 2002-08-30 Paul Brook <paul@nowt.org>
1186 * io/*: Integrated libgforio.
1187 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1188 intrinsics in the intrisics directory.
1189 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1190 filename. Add 'and' and 'all' intrinsics.
1192 2002-08-17 Paul Brook <paul@nowt.org>
1194 * ALL: First release as more than just a single file