1 2004-08-27 Paul Brook <paul@codesourcery.com>
3 * io/rewind.c (st_rewind): Reset unit to read mode.
5 2004-08-27 Bud Davis <bdavis9659@comcast.net>
8 * io/io.h: created typedef for unit_mode.
9 * io/io.h (gfc_unit): added mode to unit structure.
10 * io/transfer.c (data_transfer_init): flush if a write then
11 read is done on a unit (direct access files).
12 * io/rewind.c (st_rewind): Used unit mode instead of global.
14 2004-08-24 Bud Davis <bdavis9659@comcast.net>
17 * runtime/error.c (itoa): keep from overflowing during
18 mod operation by using unsigned variable.
20 2004-08-24 Bud Davis <bdavis9659@comcast.net>
23 * runtime/string_intrinsics.c (string_index):check for
24 substring longer than string.
26 2004-08-24 David Edelsohn <edelsohn@gnu.org>
28 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
29 * Makefile.in: Rebuilt.
31 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
33 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
34 Fix formatting issues, update copyright years.
36 2004-08-21 Bud Davis <bdavis9659@comcast.net>
39 * io/transfer.c (next_record_w): Do not blank pad.
40 * io/transfer.c (next_record): Take into account partial records.
42 2004-08-18 Victor Leikehman <lei@il.ibm.com>
45 * io/transfer.c (st_set_nml_var)
46 * io/write.c (namelist_write): Allow var_name and var_name_len to be
47 null. For strings, use string_length field instead of len.
48 * io/io.h (struct namelist_type): New field string_length.
49 (st_set_nml_var_char): New argument string_length.
51 2004-08-13 Bud Davis <bdavis9659@comcast.net>
54 * io/open.c (st_open): use flags instead of the unit structure.
56 2004-08-10 Victor Leikehman <lei@il.ibm.com>
58 * io/list_read.c (namelist_read): Convert variable names
59 to lower case, so that mixed-case names are recognized.
60 Don't read beyond terminating slash.
62 2004-08-09 Richard Henderson <rth@redhat.com>
63 Roger Sayle <roger@eyesopen.com>
65 * intrinsics/c99_functions.c (nextafterf): New implementation that
66 works correctly with denormalized numbers.
68 2004-08-09 Victor Leikehman <lei@il.ibm.com>
70 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
71 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
72 Allocate space if return value has NULL in its data field.
73 * generated/*.c: Regenerate.
75 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
77 * intrinsics/env.c: New file.
78 * Makefile.am: Add env.c to build.
79 * Makefile.in: Regenerate.
81 2004-08-05 Victor Leikehman <lei@il.ibm.com>
84 * io/read.c (read_radix): Understand letters f and F as hex digits.
86 2004-08-04 Victor Leikehman <lei@il.ibm.com>
88 * libgfortran.h (array_t, size0) New declarations.
89 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
90 space if return value descriptor has NULL in its data field,
91 and initialize bounds and stride.
92 * intrinsics/size.c (array_t, size0): Declarations moved to
94 * generated/*.c: Regenerate.
96 2004-08-03 Roger Sayle <roger@eyesopen.com>
99 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
100 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
101 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
102 * config.h.in: Regenerate.
103 * configure: Regenerate.
105 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
106 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
107 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
108 implementations for targets that don't support C99 float functions.
110 2004-08-01 Roger Sayle <roger@eyesopen.com>
112 * io/write.c (write_float): Use the slightly more portable isnan
113 in preference to isinf.
115 2004-07-18 Bud Davis <bdavis9659@comcast.net>
117 * configure.ac: Add check for LFS support.
118 * configure: Regenerate
120 2004-07-11 Paul Brook <paul@codesourcery.com>
123 * m4/cexp.m4 (carg): Return -pi to pi.
124 * generated/exp_c?.c: Regenerate.
126 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
129 * libgfortran/io/write.c: (write_float): Added length check.
130 Remove pointless memset calls.
132 2004-07-04 Bud Davis <bdavis9659@comcast.net>
133 Paul Brook <paul@codesourcery.com>
136 * io/transfer.c(us_write): set recl for seq unform writes to max size.
137 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
138 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
140 * io/unix.c(is_seekable): set based upon the file/device, not the
141 method being used to access it (fd or mmap).
142 * io/unix.c(fd_flush): don't set file_size if !seekable.
143 * io/unix.c(fd_truncate: ditto.
145 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
146 Paul Brook <paul@codesourcery.com>
150 * libgfortran.h (gfc_strlen_type): Define.
151 * intrinsics/args.c (getarg): Rename ...
152 (getarg_i4): ... to this.
153 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
154 get_command_i4, get_command_i8): New functions.
156 2004-07-04 Matthias Klose <doko@debian.org>
158 * libtool-version: New.
159 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
160 * Makefile.in: Regenerate.
161 * configure.ac: Remove libtool_VERSION macro
162 * configure: Regenerate
164 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
165 Steven Bosscher <stevenb@suse.de>
167 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
170 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
171 Paul Brook <paul@codesourcery.com>
173 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
175 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
177 2004-06-27 Bud Davis <bdavis9659@comcast.net>
180 * io/write.c (write_float): check signbit for Infinity.
182 2004-06-26 Bud Davis <bdavis9659@comcast.net>
185 * unix.c(regular_file): create file if it does not exist.
187 2004-06-24 Andrew Pinski <apinski@apple.com>
189 * configure.ac: Remove check for libmx.
190 * configure: Regenerate.
192 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
195 * inquire.c (st_inquire): Add comment
196 * io.h (st_parameter): Add iolength.
197 (st_iolength, st_iolength_done): Declare.
198 * transfer.c (iolength_transfer, iolength_transfer_init,
199 st_iolength, st_iolength_done): New functions.
201 2004-06-21 Steven G. Kargl <kargls@comcast.net>
203 * etime.c (etime_sub): Remove array rank check;
204 Add check for sufficient space.
206 2004-06-19 Bud Davis <bdavis9659@comcast.net>
209 * io/list_read.c(set_value): fixed spelling.
211 2004-06-19 Bud Davis <bdavis9659@comcast.net>
214 * io/list_read.c(set_value): don't copy if the string is null.
216 2004-06-14 Bud Davis <bdavis9659@comcast.net>
219 * intrinsics/c99_functions.c: Use fpclassify if it exists.
221 2004-06-13 Paul Brook <paul@codesourcery.com>
223 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
224 * configure.ac: Add checks for nextafter and nextafterf.
225 * Makefile.in, config.h.in, configure: Regenerate.
226 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
227 * intrinsics/rand.c (rand): Use normalize_r4_i4.
228 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
229 (random_r8): Use normalize_r8_i8.
230 * runtime/normalize.c: New file.
232 2004-06-13 Steven G. Kargl <kargls@comcast.net>
233 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
235 * random.c: Fix several spelling and formatting mistakes in
237 (random_r8): Fix loop to make random numbers range in [0,1(.
240 2004-06-13 Steven G. Kargl <kargls@comcast.net>
242 * random.c (random_r4): Burn a random number.
243 (random_r8): fix infinite loop.
245 2004-06-12 Bud Davis <bdavis9659@comcast.net>
246 Steve Kargl <sgk@troutmask.apl.washington.edu>
249 * intrinsics/c99_functions.c: New file.
250 * Makefile.am: Add new file.
251 * configure.ac: Added test for round/roundf.
252 * Makefile.in: Regenerate.
253 * configure: Regenerate.
254 * configure.h.in: Regenerate.
256 2004-06-12 Steven G. Kargl <kargls@comcast.net>
258 * Makefile.am: Add rand.c and etime.c
259 * Makefile.in: Regenerated.
260 * aclocal.in: Regenerated.
261 * cpu_time.c (second_sub, second): New functions.
262 * rand.c (irand, rand, srand): New file.
263 * etime.c (etime_sub, etime): New file.
265 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
266 Steven Bosscher <stevenb@suse.de>
269 * intrinsics/date_and_time.c: New file.
270 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
271 * Makefile.in, aclocal.m4: Regenerate.
272 * libgfortran.h: Prototype date_and_time().
274 2004-06-12 Bud Davis <bdavis9659@comcast.net>
277 * intrinsics/args.c: Implement GETARG and IARGC.
278 * Makefile.am: Add it.
279 * Makefile.in: Regenerate.
281 2004-06-12 Bud Davis <bdavis9659@comcast.net>
284 * io/write.c(write_float): Format inf and nan IAW F2003.
286 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
289 * io/transfer.c (formatted_transfer): position is unique
290 for T and TL edit descriptors.
291 (data_transfer_init): set record length to size of internal
294 2004-06-09 Bud Davis <bdavis9659@comcast.net>
297 * io/backspace.c(st_backspace): call correct routine for
298 formatted and un-formatted units.
300 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
303 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
304 (lib_LTLIBRARIES): Rename to ...
305 (toolexeclib_LTLIBRARIES): this for multilib support.
306 * configure.in: Rename to ...
307 * configure.ac: this. Update to modern autoconf style, enable
308 multilibs, support --enable-version-specific-runtime-libs.
309 * Makefile.in: Regenerated.
310 * configure: Regenerated.
311 * aclocal.m4: Regenerated.
313 2004-05-30 Steven G. Kargl <kargls@comcast.net>
315 * libgfortran.h (random_seed): Update prototype.
316 * intrinsics/random.c: Disable old implementation and add new one.
318 2004-05-30 Andreas Jaeger <aj@suse.de>
320 * intrinsics/random.c: Include unistd.h for close and read
321 prototypes, remove unneeded inclusion of assert.h.
323 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
324 unneeded inclusion of assert.h.
326 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
329 * intrinsics/associated.c: Remove enum.
330 (associated): Replace TRUE/FALSE by 1/0.
332 2004-05-23 Steven G. Kargl <kargls@comcast.net>
334 * random.c (random_seed): Use correct variable.
336 2004-05-22 Steven G. Kargl <kargls@comcast.net>
338 * intrinsics/system_clock: New file.
339 * Makefile.am: Add intrinsics/system_clock.c.
340 * Makefile.in: Regenerate.
342 2004-05-21 Roger Sayle <roger@eyesopen.com>
344 * io/format.c (parse_format_list): Allow the comma after a string
345 literal to be optional.
347 2004-05-18 Paul Brook <paul@codesourcery.com>
348 Feng Wang <fengwang@nudt.edu.cn>
350 * Makefile.am (i_pow_c): Set it. Add build rule.
351 (gfor_built_src): Use it.
352 (m4_files): add m4/pow.m4.
353 * Makefile.in: Regenerate.
354 * m4/pow.m4: New file.
355 * generated/pow_*.c: Regenerate.
357 2004-05-18 Paul Brook <paul@codesourcery.com>
359 * Makefile.am: Remove references to types.m4.
360 * m4/iparm.m4: Merge with types.m4.
361 * m4/types.m4: Remove.
362 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
363 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
364 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
365 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
366 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
367 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
368 Update to use new iparm.m4.
369 * generated/*.c: Regenerate.
371 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
374 * gfortran.h (offset_t): Rename to ...
375 (gfc_offset): ... this.
376 * io/backspace.c (formatted_backspace, unformatted_backspace),
377 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
378 transfer.c (us_read, us_write, next_record_r, next_record_w),
379 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
380 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
381 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
382 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
383 occurences of offset_t by gfc_offset.
385 2004-05-16 Paul Brook <paul@codesourcery.com>
387 * io/format.c (write_real): Don't include padding in format.
389 2004-05-16 Paul Brook <paul@codesourcery.com>
391 * io/format.c (format_lex): Make c an int.
393 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
394 Paul Brook <paul@codesourcery.com>
396 * io/write.c (write_logical): Don't print extra blank.
397 (write_integer): Base field width on kind.
398 (list_formatted_write): Output initial blank.
400 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
402 * io/io.h (flush): Add prototype.
403 * io/transfer.c (finalize_transfer): Flush partial records.
404 * io/unix.c (flush): New function.
406 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
409 * io/io.h (unit_t): Rename to ...
411 (unit_root, current_unit, find_file, find_unit, get_unit): Now
413 (delete_file, insert_unit, close_unit): Argument now of type
415 * backspace.c (st_backspace), close.c (st_close), endfile.c
416 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
417 (test_endfile, edit_modes, new_unit, already_open, st_open),
418 rewind.c (st_rewind), transfer.c (current_unit), unit.c
419 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
420 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
421 get_unit, init_units, close_unit), unix.c (find_file0,
422 find_file, delete_file): Replace all occurences of unit_t by
425 2004-05-15 Bud Davis <bdavis9659@comcast.net>
428 * io/write.c (write_a): right justify A edit output.
430 2004-05-14 Bud Davis <bdavis9659@comcast.net>
433 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
434 * runtime/main.c(init): Call random_seed as part of MAIN init.
436 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
438 * io/format.c: (parse_format_list): No comma is required after
441 2004-05-13 Bud Davis <bdavis9659@comcast.net>
444 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
446 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
447 Steven Bosscher <stevenb@suse.de>
450 * libgfortran.h: Include <inttypes.h> if available.
452 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
454 * io/unix.c (MAP_FAILED): Define if missing.
455 (mmap_alloc): Cast MAP_FAILED to char *.
456 (mmap_open): Likewise.
458 2004-04-26 Bud Davis <bdavis9659@comcast.net>
460 * generated/_abs_i8.f90: New file.
461 * generated/_abs_c4.f90: New file.
462 * generated/_abs_c8.f90: New file.
463 * Makefile.am: Add them.
464 * Makefile.in: Regenerate.
466 2004-04-26 Bud Davis <bdavis9659@comcast.net>
469 * generated/_abs_i4.f90: New file.
470 * Makefile.am: Add it.
471 * Makefile.in: Regenerate.
473 2004-04-25 Bud Davis <bdavis9659@comcast.net>
476 * io/list_read.c(list_formatted_read): finish consuming the
477 spaces and seperators at eoln to get ready for next item.
479 2004-04-23 Bud Davis <bdavis9659@comcast.net>
482 * io/read.c(read_a): Handle field width > destination and no field width.
484 2004-04-22 Bud Davis <bdavis9659@comcast.net>
487 * io/format.c (format_item): gracefully handle a ')'
488 when it is the first character encountered in the string.
490 2004-04-11 Bud Davis <bdavis9659@comcast.net>
493 * io/transfer.c (next_record): Update last_record when
494 more than one record is written to a direct access file
495 with one write statement.
497 2004-04-11 Bud Davis <bdavis9659@comcast.net>
500 * io/transfer.c (next_record_w) : No '\n' if internal.
501 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
503 2004-04-11 Bud Davis <bdavis9659@comcast.net>
505 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
506 Will need to change this later to support direct access files > 2gb.
508 2004-04-03 Bud Davis <bdavis9659@comcast.net>
511 * io/transfer.c (next_record_r) : Skip to next record.
513 2004-04-03 Bud Davis <bdavis9659@comcast.net>
516 * io/transfer.c (next_record): Update last_record for DIRECT
518 2004-04-03 Bud Davis <bdavis9659@comcast.net>
521 * io/unix.c (find_file0): Use fd field of struct
523 2004-04-03 Bud Davis <bdavis9659@comcast.net>
526 * io/inquire.c (inquire_via_unit): Changed return string for
527 BLANK=NULL. Use correct variable for ACTION.
529 2004-04-01 Bud Davis <bdavis9659@comcast.net>
532 * io/read.c (read_f): Allow a decimal without a leading digit.
533 * io/write.c (output_float): remove a leading '0' to keep from
534 overflowing the field (F edit descriptor).
536 2004-04-01 Bud Davis <bdavis9659@comcast.net>
539 * io/open.c (new_unit),
540 * io/io.h : new_unit is now visible
541 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
542 * io/transfer.c (data_transfer_init): remove compile warnings.
543 * io/rewind.c (st_rewind): ftruncate if writing.
545 2004-03-24 Bud Davis <bdavis9659@comcast.net>
547 * write.c (write_l): Use extract_int for 'L' edit descriptor.
549 2004-03-24 Bud Davis <bdavis9659@comcast.net>
552 * io/io.h (global_t):
553 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
554 Move eof_jmp to a global structure.
555 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
557 2004-03-24 Bud Davis <bdavis9659@comcast.net>
559 * m4/cexp.m4 (csqrt): Actually use the passed value.
560 * generated/exp_c?.c: Regenerate.
562 2004-03-24 Bud Davis <bdavis9659@comcast.net>
565 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
566 * open.c (new_unit): Moved test for positioned direct access error.
567 (init_units): Corrected calculation of max records.
569 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
571 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
572 * Makefile.in: Regenerate.
573 * m4/dotprodc.m4: New file. Implement complex dot_product.
574 * m4/dotprod.m4: Delete the complex implementation.
575 * generated/dotprod_*: Update.
577 2004-02-07 Bud Davis <bdavis9659@comcast.net>
579 * transfer.c (write_constant_string): Do not delete H's in hollerith
582 2004-01-05 Andrew Pinski <apinski@apple.com>
584 * configure.in: Check for csin in -lmx also.
585 * configure: Regenerate.
587 2004-01-01 Paul Brook <paul@codesourcery.com>
589 * io/list_read.c (find_nml_node): Make static.
590 (match_namelist_name): Ditto.
591 * io/read.c (convert_precision_real): Make static, fix spelling.
592 * io/transfer.c (extract_real): Remove unused prototype.
593 (st_set_nml_var): Make static.
594 * io/write.c (extract_real): Make static.
596 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
598 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
600 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
602 * io/transfer.c (data_transfer_init): Give a runtime error for list
603 formatted reads and writes from/to files opened for unformatted IO.
605 2003-11-30 Paul Brook <paul@nowt.org>
607 * runtime/memory.c (push_context): Remove.
608 (pop_context): Remove.
609 * libgfortran.h: Remove prototypes.
611 2003-11-27 Paul Brook <paul@nowt.org>
613 * runtime/memory.c (deallocate): Nullify pointer after freeing.
615 2003-11-27 Paul Brook <paul@nowt.org>
617 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
618 * libgfortran.h: Ditto.
619 * m4/in_pack.m4: Ditto.
620 * runtime/in_pack_generic.c: Ditto.
621 * runtime/memory.c: Ditto.
623 2003-11-26 Richard Henderson <rth@redhat.com>
625 * m4/exponent.m4, m4/fraction.m4: New.
626 * m4/nearest.m4, m4/set_exponent.m4: New.
627 * generated/*: Update.
628 * Makefile.am: Add them.
629 (AM_CFLAGS): New. Use -std=gnu99.
630 * Makefile.in: Regenerate.
632 2003-11-08 Paul Brook <paul@nowt.org>
635 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
636 * m4/maxloc1.m4: Ditto.
637 * m4/minloc0.m4: Ditto.
638 * m4/minloc1.m4: Ditto.
639 * m4/ifunction.m4: Set return value for zero sized arrays.
640 * m4/iforeach.m4: Ditto.
641 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
642 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
643 * generated/*: Update.
645 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
648 * io/list_read.c (eat_spaces): Treat tab as space.
650 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
652 * intrinsics/random.c: Add reference to paper containing algorithm.
653 (random_seed): Extra error checking and proper handling of arrays.
654 (arandom_r4, arandom_r8): Implement.
656 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
659 * runtime/memory.c (allocate_size): Allow allocation
660 of zero-sized objects.
662 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
665 * open.c (new_unit): Open without a file name opens
666 a file with name fort.<unit>.
668 2003-10-12 Feng Wang <wf_cs@yahoo.com>
670 * intrinsics/cshift0.c: New file.
671 * m4/cshift1.m4: New file
672 * generated/cshift*.c: New files.
673 * Makefile.am: Add them.
674 * Makefile.in: Regenerate.
676 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
678 * io/list_read.c (read_character): Remove unwanted call to free_saved.
680 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
682 * intrinsics/string_intrinsics.c (string_trim): New function.
683 (string_repeat): New function.
685 2003-10-11 Paul Brook <paul@nowt.org>
687 * intrinsics/dprod_r8.f90: New file.
688 * Makefile.am (gfor_specific_src): Add it.
689 (gfor_built_specific_src): Rename from gfor_build_specific_c.
691 (gfor_specific2_src): Rename from gfor_built_specific2_c.
693 * Makefile.in: Regenerate.
694 * generated/_aint_*.f90: New files.
695 * generated/_anint*.f90: New files.
696 * generated/_atan2*.f90: New files.
697 * generated/_mod*.f90: New files.
699 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
701 * intrinsics/selected_kind.f90: New file.
702 * Makefile.am: Add it.
703 * Makefile.in: regenerate.
705 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
706 Paul Brook <paul@nowt.org>
708 * intrinsics/random.c: New file.
709 * Makefile.am (gfor_hemper_src): Add it.
710 (gfor_specific_c): Fix typo.
712 2003-09-19 Paul Brook <paul@nowt.org>
714 * All: rename g95->gfc.
716 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
718 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
720 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
722 * io/write.c (write_float): Dectection of positive infinite number,
723 Not a Number(NaN) and negative infinite number.
724 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
725 output a very_very small number ( < 0.1e-100 ).
727 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
729 * libgfortran.h (xtoa, itoa): Parameter modified.
730 * io/io.h (namelist_info): Declaration to support namelist I/O
731 (st_parameter): Add namelist related component
732 (ionml, empty_internal_buffer, st_set_nml_var_int,
733 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
734 st_set_nml_var_log): Declaration
735 (set_integer, set_integer): Parameter changed
736 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
738 (parse_format_list): Fix bug about FMT_SLASH
739 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
740 newly allocated saved_string
741 (next_char): Add detection of End_Of_Line support
742 (convert_integer): Now can process 64 bits interger
743 (read_real): Bug fixed
744 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
745 (match_namelist_name): New implemention
746 * io/lock.c (ionml): New global variable
747 (library_end): Free memory in ionml
748 * io/open.c (st_open): Variable initializtion
749 * io/read.c (max_value): 64 bits interger support
750 (convert_precsion_real): New procedure to replace "strtod" with more
752 (read_f, read_radix): Input bug fix
753 * io/transfer.c: (sf_seen_eor): New static variable
754 (read_sf): Zeroize base buffer; fix bugs: single read statement can
755 not get input in mutli line when read from stdin
756 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
758 (data_transfer_init): Clear internal buffer for Internel File I/O.
759 Internal File now worked. Detect some error condition for namelist.
761 (next_record_w): Internal file and Namelist I/O support.
762 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
763 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
764 * io/unit.c (implicit_unit): Deletion
765 (get_unit): Now cannot open a unit implicitly.
766 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
768 (mem_alloc_r_at): Internal file I/O support added
769 (empty_internal_buffer): New function
770 * io/write.c (extract_int): Support 64 bits interger processing
771 (output_float): Varibale initialization
772 (write_float): Infinite real number detection.
773 (write_int): 64 bits integer I/O support
774 (write_decimal): New function to output decimal number
775 (otoa, btoa): Better implemention and 64 bits interger support
776 (namelist_write): New function
777 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
780 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
782 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
783 get_mem ): Add attribute.
784 * intrinsics/spread_generic.c (__spread): Fix spelling.
785 * io/inquire.c (inquire_via_filename): Add const.
786 * io/io.h (sys_exit): Add attribute.
787 * io/io.h (move_pos_offset): Add move_pos_offset.
788 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
789 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
790 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
791 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
793 * io/read.c (convert_real): Add const.
794 * io/transfer.c (type_name): Add const.
795 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
796 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
797 inquire_read, inquire_write, inquire_readwrite): Add const.
798 * io/write.c (output_float): Remove unused variable.
799 * io/write.c (write_a, extract_int, extract_real, output_float,
800 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
801 write_e, write_f, write_en, write_es, write_logical, write_integer,
802 write_character, write_real, write_complex): Add const.
803 * runtime/error.c (rtoa): Remove unused variable.
804 * runtime/select.c (select_string): Add const.
805 * runtime/stop.c (stop_string): Add const.
807 2003-08-10 Paul Brook <paul@nowt.org>
809 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
810 (FFLAGS): Add -fno-underscoring.
811 * Makefile.in: Regenerate.
812 * intrinsics/abort.c: New file.
814 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
816 * fmain.c (main): Do not call init and cleanup; call set_args instead.
817 * libgfortran.h (init, cleanup): Remove declarations.
818 (set_args): Add declaration.
819 * runtime/main.c (init, cleanup): Make them static, and give them
820 the constructor and destructor attributes.
821 (set_args): New function.
823 2003-08-10 Paul Brook <paul@nowt.org>
825 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
826 on which string is longest.
828 2003-08-10 Paul Brook <paul@nowt.org>
830 * Makefile.am (EXTRA_DIST): Remove old files.
831 * Makefile.in: Regenerate.
833 2003-07-26 Paul Brook <paul@nowt.org>
835 Rename library to libgfortran.
836 * libgfortran.h: Change prefix to _libgfortran_.
838 2003-07-24 Paul Brook <paul@nowt.org>
840 * configure.in: Don't pull in system libtool. Use toplevel
843 2003-07-22 Paul Brook <paul@nowt.org>
845 Regenerate all configury files.
847 2003-07-09 Chun Huang <compiler@sohu.com>
849 * intrinsics/string_intrinsic.c (string_scan): New function.
850 (string_verify): New function.
852 2003-06-25 Paul Brook <paul@nowt.org>
854 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
855 (mem_seek): Don't bother setting physical_offset.
857 2003-06-20 Paul Brook <paul@nowt.org>
859 * libgfor.h (stop_numeric): Declare.
860 * runtime/pause.c: New file.
861 * Makefile.am: Add it.
863 2003-06-08 Paul Brook <paul@nowt.org>
865 * m4/cexp.m4 (cabs): Use correct typed version.
866 (csqrt): New function.
868 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
870 Spotted by Benjamin and Tobias:
871 * io/list_read.c: Add Separator '\t'.
872 (parse_real, read_real): Accept real values starting with an optional
873 sign follows a decimal point.
875 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
877 * Makefile.am: Don't put cmath objects in subdir.
878 * configure.in: Rename MATHOBJ to MATH_OBJ.
880 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
882 * intrinsics/associated.c: New file.
883 * Makefile.am: Add it. Regenerate Makefile.in.
884 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
885 G95_DESCRIPTOR_DTYPE.
887 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
889 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
890 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
891 the scale_factor to 0 for F editing.
893 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
895 * libgfor.h: Only include stdint.h if it exists.
897 2003-05-07 Paul Brook <paul@nowt.org>
899 * libgfor.h: Use stdint.h types.
900 * intrinsics/ishift.c: Ditto.
901 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
903 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
905 * libgfor.h (offsetof): Define if nobody else does.
906 * runtime/memory.c (HEADER_SIZE): Use it.
908 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
910 * configure.in: Require autoconf 2.54.
912 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
913 Paul Brook <paul@nowt.org>
915 * intrinsics/reshape_generic.c: Copy the whole element, not just the
917 * m4/transpose.m4: New file.
918 * Makefile.am: Add them.
919 Regenerate generated files.
921 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
923 * io/format.c (parse_format_list): Allow 'X' without integer
924 prefix. This is an extension. Interpretation is '1X'.
926 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
928 * io/format.c (parse_format_list): Allow '0P'.
930 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
932 * Makefile.in: Re-regenerate for automake 1.7.3.
934 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
936 Port implementation for CHARACTER SELECT from Andy's tree.
937 * runtime/select.c: New file
938 * Makefile.am: Add it.
939 * Makefile.in: Regenerate.
941 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
943 * io/transfer.c (formatted_transfer): Modified
944 * io/unix.c (move_pos_offset): New Function.
945 * io/format.c (parse_format_list): Modified.
947 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
949 * io/write.c (write_float,write_real): New implemention of
950 FMT_G and default float editing.
951 (calculate_exp,calculate_G_format,output_float): New Function.
952 (write_float,write_real,write_logical): Modified
953 * libgfor.h (default_rtoa): Remove Declaration.
954 * runtime/error.c (default_rtoa): Remove Function.
956 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
959 * io/write.c (extract_real): Add missing break statement.
961 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
963 * cpu_time.c: Make sure we have a definition of HZ. Don't
964 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
966 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
967 Paul Brook <paul@nowt.org>
969 * configure.in: Check for process time headers and GETTIMEOFDAY.
970 * makefile.am: Add intrinsics/cpu_time.c.
971 * acinclude.m4: New file.
972 * intrinsics/cpu_time.c: New file.
973 * m4/dotprodl.m4: Fix typo.
974 Regenerate generated files.
976 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
978 * io/write.c (extract_real): Ouput floating point value.
979 (write_float): New Function.
980 (write_e, write_f, write_en, write_es): Modified
981 * io/transfer.c (formatted_transfer): Modified.
982 * libgfor.h (default_rtoa): Declaration.
984 * runtime/error.c (default_rtoa): New Function.
985 (rtoa): New Function.
987 2003-04-05 Paul Brook <paul@nowt.org>
989 * intrinsics/spread_generic.c: New file.
990 * Makefile.am: Add it. Regenerate Makefile.in.
992 2003-03-29 Paul Brook <paul@nowt.org>
994 * intrinsics/pack_generic.c: New file.
995 * intrinsics/unpack_generic.c: New file.
996 * Makefile.am: Add them. Regenerate Makefile.in.
998 2003-03-25 Paul Brook <paul@nowt.org>
1000 * intrinsics/eoshift0.c: New file.
1001 * intrinsics/eoshift2.c: New file.
1002 * m4/eoshift1.m4: New file.
1003 * m4/eoshift3.m4: New file.
1004 * Makefile.am: Add them.
1005 * in_unpack_generic.c: Initialize src.
1006 Regenerate generated files.
1008 2003-03-14 Paul Brook <paul@nowt.org>
1010 * m4/shape.m4: Work properly with array temporaries.
1011 * m4/in_pack.m4: Skip redundant checks for array temporaries.
1012 * runtime/in_pack_generic.c: Ditto.
1014 2003-03-12 Paul Brook <paul@nowt.org>
1016 * m4/shape.m4: Work properly with noncontiguous arrays.
1018 2003-03-08 Paul Brook <paul@nowt.org>
1020 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1021 * runtime/in_pack_generic.c: Ditto.
1023 2003-02-08 Paul Brook <paul@nowt.org>
1025 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1026 * io/close.c (st_close): Return void.
1027 * io/open.c (st_open): Return void.
1028 * libgfor.h (g95_array_char): Declare.
1029 (internal_malloc_size): Ditto.
1030 (internal_pack*, internal_unpack*): Ditto.
1031 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1033 * m4/in_unpack.m4: Include file fixes.
1034 * m4/reshape.m4: Increment the correct source pointer.
1035 * Makefile.am (maxloc): Fix typo.
1036 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1037 storage if neccessary. Fix logic for packed arrays.
1038 * runtime/in_unpack_generic.c: Call optimized functions.
1039 * runtime/main.c: Use runtime_error to report errors.
1040 * memory.c (internal_malloc_size): Make non-static.
1042 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1044 * reshape_packed.c, lock.c: Add #include <string.h>.
1045 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1046 environ.c, error.c, memory.c, string.c: Add const.
1047 * error.c (show_locus): Add void.
1049 2003-02-21 Paul Brook <paul@nowt.org>
1051 * m4/in_pack.m4: Avoid returning const * parameter.
1052 * Makefile.am: Only regenerate files in maintainer mode.
1054 2003-02-20 Paul Brook <paul@nowt.org>
1056 Add array repacking support functions.
1057 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1058 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1059 * Makefile.am: Build them. Regenerate configury files.
1060 * generated/: New directory for generated files (need to move
1061 everything else there).
1063 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1065 * m4/cexp.m4: Fix typo.
1067 2003-01-26 Paul Brook <paul@nowt.org>
1069 * intrinsics/: Add missing generated files.
1071 2003-01-26 Paul Brook <paul@nowt.org>
1073 * Makefile.am: Put -I before the filename.
1075 2003-01-24 Paul Brook <paul@nowt.org>
1077 * configure.in: Add AM_MAINTAINER_MODE.
1079 2003-01-23 Paul Brook <paul@nowt.org>
1081 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1083 Also regenerate other configury files.
1085 2003-01-21 Paul Brook <paul@nowt.org>
1087 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1089 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1091 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1092 Don't include "alloca.h".
1094 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1096 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1097 * Makefile.am: Adjust file name.
1098 * Makefile.in: Regenerate.
1099 * gfortypes.h: Kill, include everything in...
1100 * libgfor.h: ...here. Include config.h
1101 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1102 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1103 intrinsics/reshape_packed.c, intrinsics/size.c,
1104 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1105 for prefix for all functions instead of hardcoded.
1107 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1109 * io/lock.c (library_end): Propagate library return
1112 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1114 Port fixes from Andy's tree:
1115 * io/read.c (read_decimal): Reverse sense of overflow
1116 comparison during integer reads.
1117 * io/format.c (revert): Fix comment.
1118 (next_format): Fix format revision.
1119 * io/unix.c: Fix and simplify mmap version of stream
1122 2003-01-11 Paul Brook <paul@nowt.org>
1124 * configure, Makefile.in: Regenerate.
1126 2003-01-11 Paul Brook <paul@nowt.org>
1128 * runtime/stop.c: Rewrite.
1130 2003-01-08 Paul Brook <paul@nowt.org>
1132 * configure, Makefile.in: Regenerate.
1134 2003-01-05 Paul Brook <paul@nowt.org>
1136 * (*.m4) Move to m4/.
1137 * intrinsics/string.c (_gfor_string_index): New Function.
1139 2002-12-29 Paul Brook <paul@nowt.org>
1141 * intrinsics/reshape.*: New files.
1142 * gcc_config.patch: Update to new GCC configure system.
1144 2002-10-10 Paul Brook <paul@nowt.org>
1146 * intrinsics/size.c: New file.
1147 * intrinsics/shape.m4: New file.
1148 * Makefile.am: Add above files.
1150 2002-10-02 Paul Brook <paul@nowt.org>
1152 * fmain.c (main): Move here.
1153 * libgfor.c: From here.
1154 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1155 * Makefile.am: Build libgforbegin.
1156 * gcc_config.patch: Remove stray -march=athlon.
1157 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1158 * ifunction.m4: Move variable declarations to allow compilation with
1160 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1161 * README: Document use of patch -p1.
1163 2002-09-12 Paul Brook <paul@nowt.org>
1165 * math/*: Add complex math library functions.
1166 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1167 * Makefile.am: Add details for above.
1168 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1170 2002-09-09 Paul Brook <paul@nowt.org>
1172 * libgfor.c (determine_endianness): Use an array rather than a struct.
1173 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1175 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1177 * libgfor.c: Add fatal signal handler.
1178 Romove superfluous abort() calls.
1180 2002-09-07 Paul Brook <paul@nowt.org>
1182 * Makefile.am, intrinsics: Major rewrite.
1184 2002-09-02 Paul Brook <paul@nowt.org>
1186 * Makefile.am: Added -I$(srcdir) to m4 rule.
1188 2002-08-30 Paul Brook <paul@nowt.org>
1190 * io/*: Integrated libgforio.
1191 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1192 intrinsics in the intrisics directory.
1193 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1194 filename. Add 'and' and 'all' intrinsics.
1196 2002-08-17 Paul Brook <paul@nowt.org>
1198 * ALL: First release as more than just a single file