1 2004-08-24 Bud Davis <bdavis9659@comcast.net>
4 * runtime/error.c (itoa): keep from overflowing during
5 mod operation by using unsigned variable.
7 2004-08-24 Bud Davis <bdavis9659@comcast.net>
10 * runtime/string_intrinsics.c (string_index):check for
11 substring longer than string.
13 2004-08-24 David Edelsohn <edelsohn@gnu.org>
15 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
16 * Makefile.in: Rebuilt.
18 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
20 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
21 Fix formatting issues, update copyright years.
23 2004-08-21 Bud Davis <bdavis9659@comcast.net>
26 * io/transfer.c (next_record_w): Do not blank pad.
27 * io/transfer.c (next_record): Take into account partial records.
29 2004-08-18 Victor Leikehman <lei@il.ibm.com>
32 * io/transfer.c (st_set_nml_var)
33 * io/write.c (namelist_write): Allow var_name and var_name_len to be
34 null. For strings, use string_length field instead of len.
35 * io/io.h (struct namelist_type): New field string_length.
36 (st_set_nml_var_char): New argument string_length.
38 2004-08-13 Bud Davis <bdavis9659@comcast.net>
41 * io/open.c (st_open): use flags instead of the unit structure.
43 2004-08-10 Victor Leikehman <lei@il.ibm.com>
45 * io/list_read.c (namelist_read): Convert variable names
46 to lower case, so that mixed-case names are recognized.
47 Don't read beyond terminating slash.
49 2004-08-09 Richard Henderson <rth@redhat.com>
50 Roger Sayle <roger@eyesopen.com>
52 * intrinsics/c99_functions.c (nextafterf): New implementation that
53 works correctly with denormalized numbers.
55 2004-08-09 Victor Leikehman <lei@il.ibm.com>
57 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
58 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
59 Allocate space if return value has NULL in its data field.
60 * generated/*.c: Regenerate.
62 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
64 * intrinsics/env.c: New file.
65 * Makefile.am: Add env.c to build.
66 * Makefile.in: Regenerate.
68 2004-08-05 Victor Leikehman <lei@il.ibm.com>
71 * io/read.c (read_radix): Understand letters f and F as hex digits.
73 2004-08-04 Victor Leikehman <lei@il.ibm.com>
75 * libgfortran.h (array_t, size0) New declarations.
76 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
77 space if return value descriptor has NULL in its data field,
78 and initialize bounds and stride.
79 * intrinsics/size.c (array_t, size0): Declarations moved to
81 * generated/*.c: Regenerate.
83 2004-08-03 Roger Sayle <roger@eyesopen.com>
86 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
87 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
88 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
89 * config.h.in: Regenerate.
90 * configure: Regenerate.
92 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
93 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
94 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
95 implementations for targets that don't support C99 float functions.
97 2004-08-01 Roger Sayle <roger@eyesopen.com>
99 * io/write.c (write_float): Use the slightly more portable isnan
100 in preference to isinf.
102 2004-07-18 Bud Davis <bdavis9659@comcast.net>
104 * configure.ac: Add check for LFS support.
105 * configure: Regenerate
107 2004-07-11 Paul Brook <paul@codesourcery.com>
110 * m4/cexp.m4 (carg): Return -pi to pi.
111 * generated/exp_c?.c: Regenerate.
113 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
116 * libgfortran/io/write.c: (write_float): Added length check.
117 Remove pointless memset calls.
119 2004-07-04 Bud Davis <bdavis9659@comcast.net>
120 Paul Brook <paul@codesourcery.com>
123 * io/transfer.c(us_write): set recl for seq unform writes to max size.
124 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
125 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
127 * io/unix.c(is_seekable): set based upon the file/device, not the
128 method being used to access it (fd or mmap).
129 * io/unix.c(fd_flush): don't set file_size if !seekable.
130 * io/unix.c(fd_truncate: ditto.
132 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
133 Paul Brook <paul@codesourcery.com>
137 * libgfortran.h (gfc_strlen_type): Define.
138 * intrinsics/args.c (getarg): Rename ...
139 (getarg_i4): ... to this.
140 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
141 get_command_i4, get_command_i8): New functions.
143 2004-07-04 Matthias Klose <doko@debian.org>
145 * libtool-version: New.
146 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
147 * Makefile.in: Regenerate.
148 * configure.ac: Remove libtool_VERSION macro
149 * configure: Regenerate
151 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
152 Steven Bosscher <stevenb@suse.de>
154 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
157 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
158 Paul Brook <paul@codesourcery.com>
160 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
162 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
164 2004-06-27 Bud Davis <bdavis9659@comcast.net>
167 * io/write.c (write_float): check signbit for Infinity.
169 2004-06-26 Bud Davis <bdavis9659@comcast.net>
172 * unix.c(regular_file): create file if it does not exist.
174 2004-06-24 Andrew Pinski <apinski@apple.com>
176 * configure.ac: Remove check for libmx.
177 * configure: Regenerate.
179 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
182 * inquire.c (st_inquire): Add comment
183 * io.h (st_parameter): Add iolength.
184 (st_iolength, st_iolength_done): Declare.
185 * transfer.c (iolength_transfer, iolength_transfer_init,
186 st_iolength, st_iolength_done): New functions.
188 2004-06-21 Steven G. Kargl <kargls@comcast.net>
190 * etime.c (etime_sub): Remove array rank check;
191 Add check for sufficient space.
193 2004-06-19 Bud Davis <bdavis9659@comcast.net>
196 * io/list_read.c(set_value): fixed spelling.
198 2004-06-19 Bud Davis <bdavis9659@comcast.net>
201 * io/list_read.c(set_value): don't copy if the string is null.
203 2004-06-14 Bud Davis <bdavis9659@comcast.net>
206 * intrinsics/c99_functions.c: Use fpclassify if it exists.
208 2004-06-13 Paul Brook <paul@codesourcery.com>
210 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
211 * configure.ac: Add checks for nextafter and nextafterf.
212 * Makefile.in, config.h.in, configure: Regenerate.
213 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
214 * intrinsics/rand.c (rand): Use normalize_r4_i4.
215 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
216 (random_r8): Use normalize_r8_i8.
217 * runtime/normalize.c: New file.
219 2004-06-13 Steven G. Kargl <kargls@comcast.net>
220 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
222 * random.c: Fix several spelling and formatting mistakes in
224 (random_r8): Fix loop to make random numbers range in [0,1(.
227 2004-06-13 Steven G. Kargl <kargls@comcast.net>
229 * random.c (random_r4): Burn a random number.
230 (random_r8): fix infinite loop.
232 2004-06-12 Bud Davis <bdavis9659@comcast.net>
233 Steve Kargl <sgk@troutmask.apl.washington.edu>
236 * intrinsics/c99_functions.c: New file.
237 * Makefile.am: Add new file.
238 * configure.ac: Added test for round/roundf.
239 * Makefile.in: Regenerate.
240 * configure: Regenerate.
241 * configure.h.in: Regenerate.
243 2004-06-12 Steven G. Kargl <kargls@comcast.net>
245 * Makefile.am: Add rand.c and etime.c
246 * Makefile.in: Regenerated.
247 * aclocal.in: Regenerated.
248 * cpu_time.c (second_sub, second): New functions.
249 * rand.c (irand, rand, srand): New file.
250 * etime.c (etime_sub, etime): New file.
252 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
253 Steven Bosscher <stevenb@suse.de>
256 * intrinsics/date_and_time.c: New file.
257 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
258 * Makefile.in, aclocal.m4: Regenerate.
259 * libgfortran.h: Prototype date_and_time().
261 2004-06-12 Bud Davis <bdavis9659@comcast.net>
264 * intrinsics/args.c: Implement GETARG and IARGC.
265 * Makefile.am: Add it.
266 * Makefile.in: Regenerate.
268 2004-06-12 Bud Davis <bdavis9659@comcast.net>
271 * io/write.c(write_float): Format inf and nan IAW F2003.
273 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
276 * io/transfer.c (formatted_transfer): position is unique
277 for T and TL edit descriptors.
278 (data_transfer_init): set record length to size of internal
281 2004-06-09 Bud Davis <bdavis9659@comcast.net>
284 * io/backspace.c(st_backspace): call correct routine for
285 formatted and un-formatted units.
287 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
290 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
291 (lib_LTLIBRARIES): Rename to ...
292 (toolexeclib_LTLIBRARIES): this for multilib support.
293 * configure.in: Rename to ...
294 * configure.ac: this. Update to modern autoconf style, enable
295 multilibs, support --enable-version-specific-runtime-libs.
296 * Makefile.in: Regenerated.
297 * configure: Regenerated.
298 * aclocal.m4: Regenerated.
300 2004-05-30 Steven G. Kargl <kargls@comcast.net>
302 * libgfortran.h (random_seed): Update prototype.
303 * intrinsics/random.c: Disable old implementation and add new one.
305 2004-05-30 Andreas Jaeger <aj@suse.de>
307 * intrinsics/random.c: Include unistd.h for close and read
308 prototypes, remove unneeded inclusion of assert.h.
310 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
311 unneeded inclusion of assert.h.
313 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
316 * intrinsics/associated.c: Remove enum.
317 (associated): Replace TRUE/FALSE by 1/0.
319 2004-05-23 Steven G. Kargl <kargls@comcast.net>
321 * random.c (random_seed): Use correct variable.
323 2004-05-22 Steven G. Kargl <kargls@comcast.net>
325 * intrinsics/system_clock: New file.
326 * Makefile.am: Add intrinsics/system_clock.c.
327 * Makefile.in: Regenerate.
329 2004-05-21 Roger Sayle <roger@eyesopen.com>
331 * io/format.c (parse_format_list): Allow the comma after a string
332 literal to be optional.
334 2004-05-18 Paul Brook <paul@codesourcery.com>
335 Feng Wang <fengwang@nudt.edu.cn>
337 * Makefile.am (i_pow_c): Set it. Add build rule.
338 (gfor_built_src): Use it.
339 (m4_files): add m4/pow.m4.
340 * Makefile.in: Regenerate.
341 * m4/pow.m4: New file.
342 * generated/pow_*.c: Regenerate.
344 2004-05-18 Paul Brook <paul@codesourcery.com>
346 * Makefile.am: Remove references to types.m4.
347 * m4/iparm.m4: Merge with types.m4.
348 * m4/types.m4: Remove.
349 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
350 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
351 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
352 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
353 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
354 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
355 Update to use new iparm.m4.
356 * generated/*.c: Regenerate.
358 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
361 * gfortran.h (offset_t): Rename to ...
362 (gfc_offset): ... this.
363 * io/backspace.c (formatted_backspace, unformatted_backspace),
364 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
365 transfer.c (us_read, us_write, next_record_r, next_record_w),
366 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
367 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
368 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
369 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
370 occurences of offset_t by gfc_offset.
372 2004-05-16 Paul Brook <paul@codesourcery.com>
374 * io/format.c (write_real): Don't include padding in format.
376 2004-05-16 Paul Brook <paul@codesourcery.com>
378 * io/format.c (format_lex): Make c an int.
380 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
381 Paul Brook <paul@codesourcery.com>
383 * io/write.c (write_logical): Don't print extra blank.
384 (write_integer): Base field width on kind.
385 (list_formatted_write): Output initial blank.
387 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
389 * io/io.h (flush): Add prototype.
390 * io/transfer.c (finalize_transfer): Flush partial records.
391 * io/unix.c (flush): New function.
393 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
396 * io/io.h (unit_t): Rename to ...
398 (unit_root, current_unit, find_file, find_unit, get_unit): Now
400 (delete_file, insert_unit, close_unit): Argument now of type
402 * backspace.c (st_backspace), close.c (st_close), endfile.c
403 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
404 (test_endfile, edit_modes, new_unit, already_open, st_open),
405 rewind.c (st_rewind), transfer.c (current_unit), unit.c
406 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
407 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
408 get_unit, init_units, close_unit), unix.c (find_file0,
409 find_file, delete_file): Replace all occurences of unit_t by
412 2004-05-15 Bud Davis <bdavis9659@comcast.net>
415 * io/write.c (write_a): right justify A edit output.
417 2004-05-14 Bud Davis <bdavis9659@comcast.net>
420 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
421 * runtime/main.c(init): Call random_seed as part of MAIN init.
423 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
425 * io/format.c: (parse_format_list): No comma is required after
428 2004-05-13 Bud Davis <bdavis9659@comcast.net>
431 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
433 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
434 Steven Bosscher <stevenb@suse.de>
437 * libgfortran.h: Include <inttypes.h> if available.
439 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
441 * io/unix.c (MAP_FAILED): Define if missing.
442 (mmap_alloc): Cast MAP_FAILED to char *.
443 (mmap_open): Likewise.
445 2004-04-26 Bud Davis <bdavis9659@comcast.net>
447 * generated/_abs_i8.f90: New file.
448 * generated/_abs_c4.f90: New file.
449 * generated/_abs_c8.f90: New file.
450 * Makefile.am: Add them.
451 * Makefile.in: Regenerate.
453 2004-04-26 Bud Davis <bdavis9659@comcast.net>
456 * generated/_abs_i4.f90: New file.
457 * Makefile.am: Add it.
458 * Makefile.in: Regenerate.
460 2004-04-25 Bud Davis <bdavis9659@comcast.net>
463 * io/list_read.c(list_formatted_read): finish consuming the
464 spaces and seperators at eoln to get ready for next item.
466 2004-04-23 Bud Davis <bdavis9659@comcast.net>
469 * io/read.c(read_a): Handle field width > destination and no field width.
471 2004-04-22 Bud Davis <bdavis9659@comcast.net>
474 * io/format.c (format_item): gracefully handle a ')'
475 when it is the first character encountered in the string.
477 2004-04-11 Bud Davis <bdavis9659@comcast.net>
480 * io/transfer.c (next_record): Update last_record when
481 more than one record is written to a direct access file
482 with one write statement.
484 2004-04-11 Bud Davis <bdavis9659@comcast.net>
487 * io/transfer.c (next_record_w) : No '\n' if internal.
488 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
490 2004-04-11 Bud Davis <bdavis9659@comcast.net>
492 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
493 Will need to change this later to support direct access files > 2gb.
495 2004-04-03 Bud Davis <bdavis9659@comcast.net>
498 * io/transfer.c (next_record_r) : Skip to next record.
500 2004-04-03 Bud Davis <bdavis9659@comcast.net>
503 * io/transfer.c (next_record): Update last_record for DIRECT
505 2004-04-03 Bud Davis <bdavis9659@comcast.net>
508 * io/unix.c (find_file0): Use fd field of struct
510 2004-04-03 Bud Davis <bdavis9659@comcast.net>
513 * io/inquire.c (inquire_via_unit): Changed return string for
514 BLANK=NULL. Use correct variable for ACTION.
516 2004-04-01 Bud Davis <bdavis9659@comcast.net>
519 * io/read.c (read_f): Allow a decimal without a leading digit.
520 * io/write.c (output_float): remove a leading '0' to keep from
521 overflowing the field (F edit descriptor).
523 2004-04-01 Bud Davis <bdavis9659@comcast.net>
526 * io/open.c (new_unit),
527 * io/io.h : new_unit is now visible
528 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
529 * io/transfer.c (data_transfer_init): remove compile warnings.
530 * io/rewind.c (st_rewind): ftruncate if writing.
532 2004-03-24 Bud Davis <bdavis9659@comcast.net>
534 * write.c (write_l): Use extract_int for 'L' edit descriptor.
536 2004-03-24 Bud Davis <bdavis9659@comcast.net>
539 * io/io.h (global_t):
540 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
541 Move eof_jmp to a global structure.
542 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
544 2004-03-24 Bud Davis <bdavis9659@comcast.net>
546 * m4/cexp.m4 (csqrt): Actually use the passed value.
547 * generated/exp_c?.c: Regenerate.
549 2004-03-24 Bud Davis <bdavis9659@comcast.net>
552 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
553 * open.c (new_unit): Moved test for positioned direct access error.
554 (init_units): Corrected calculation of max records.
556 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
558 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
559 * Makefile.in: Regenerate.
560 * m4/dotprodc.m4: New file. Implement complex dot_product.
561 * m4/dotprod.m4: Delete the complex implementation.
562 * generated/dotprod_*: Update.
564 2004-02-07 Bud Davis <bdavis9659@comcast.net>
566 * transfer.c (write_constant_string): Do not delete H's in hollerith
569 2004-01-05 Andrew Pinski <apinski@apple.com>
571 * configure.in: Check for csin in -lmx also.
572 * configure: Regenerate.
574 2004-01-01 Paul Brook <paul@codesourcery.com>
576 * io/list_read.c (find_nml_node): Make static.
577 (match_namelist_name): Ditto.
578 * io/read.c (convert_precision_real): Make static, fix spelling.
579 * io/transfer.c (extract_real): Remove unused prototype.
580 (st_set_nml_var): Make static.
581 * io/write.c (extract_real): Make static.
583 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
585 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
587 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
589 * io/transfer.c (data_transfer_init): Give a runtime error for list
590 formatted reads and writes from/to files opened for unformatted IO.
592 2003-11-30 Paul Brook <paul@nowt.org>
594 * runtime/memory.c (push_context): Remove.
595 (pop_context): Remove.
596 * libgfortran.h: Remove prototypes.
598 2003-11-27 Paul Brook <paul@nowt.org>
600 * runtime/memory.c (deallocate): Nullify pointer after freeing.
602 2003-11-27 Paul Brook <paul@nowt.org>
604 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
605 * libgfortran.h: Ditto.
606 * m4/in_pack.m4: Ditto.
607 * runtime/in_pack_generic.c: Ditto.
608 * runtime/memory.c: Ditto.
610 2003-11-26 Richard Henderson <rth@redhat.com>
612 * m4/exponent.m4, m4/fraction.m4: New.
613 * m4/nearest.m4, m4/set_exponent.m4: New.
614 * generated/*: Update.
615 * Makefile.am: Add them.
616 (AM_CFLAGS): New. Use -std=gnu99.
617 * Makefile.in: Regenerate.
619 2003-11-08 Paul Brook <paul@nowt.org>
622 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
623 * m4/maxloc1.m4: Ditto.
624 * m4/minloc0.m4: Ditto.
625 * m4/minloc1.m4: Ditto.
626 * m4/ifunction.m4: Set return value for zero sized arrays.
627 * m4/iforeach.m4: Ditto.
628 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
629 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
630 * generated/*: Update.
632 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
635 * io/list_read.c (eat_spaces): Treat tab as space.
637 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
639 * intrinsics/random.c: Add reference to paper containing algorithm.
640 (random_seed): Extra error checking and proper handling of arrays.
641 (arandom_r4, arandom_r8): Implement.
643 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
646 * runtime/memory.c (allocate_size): Allow allocation
647 of zero-sized objects.
649 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
652 * open.c (new_unit): Open without a file name opens
653 a file with name fort.<unit>.
655 2003-10-12 Feng Wang <wf_cs@yahoo.com>
657 * intrinsics/cshift0.c: New file.
658 * m4/cshift1.m4: New file
659 * generated/cshift*.c: New files.
660 * Makefile.am: Add them.
661 * Makefile.in: Regenerate.
663 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
665 * io/list_read.c (read_character): Remove unwanted call to free_saved.
667 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
669 * intrinsics/string_intrinsics.c (string_trim): New function.
670 (string_repeat): New function.
672 2003-10-11 Paul Brook <paul@nowt.org>
674 * intrinsics/dprod_r8.f90: New file.
675 * Makefile.am (gfor_specific_src): Add it.
676 (gfor_built_specific_src): Rename from gfor_build_specific_c.
678 (gfor_specific2_src): Rename from gfor_built_specific2_c.
680 * Makefile.in: Regenerate.
681 * generated/_aint_*.f90: New files.
682 * generated/_anint*.f90: New files.
683 * generated/_atan2*.f90: New files.
684 * generated/_mod*.f90: New files.
686 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
688 * intrinsics/selected_kind.f90: New file.
689 * Makefile.am: Add it.
690 * Makefile.in: regenerate.
692 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
693 Paul Brook <paul@nowt.org>
695 * intrinsics/random.c: New file.
696 * Makefile.am (gfor_hemper_src): Add it.
697 (gfor_specific_c): Fix typo.
699 2003-09-19 Paul Brook <paul@nowt.org>
701 * All: rename g95->gfc.
703 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
705 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
707 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
709 * io/write.c (write_float): Dectection of positive infinite number,
710 Not a Number(NaN) and negative infinite number.
711 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
712 output a very_very small number ( < 0.1e-100 ).
714 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
716 * libgfortran.h (xtoa, itoa): Parameter modified.
717 * io/io.h (namelist_info): Declaration to support namelist I/O
718 (st_parameter): Add namelist related component
719 (ionml, empty_internal_buffer, st_set_nml_var_int,
720 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
721 st_set_nml_var_log): Declaration
722 (set_integer, set_integer): Parameter changed
723 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
725 (parse_format_list): Fix bug about FMT_SLASH
726 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
727 newly allocated saved_string
728 (next_char): Add detection of End_Of_Line support
729 (convert_integer): Now can process 64 bits interger
730 (read_real): Bug fixed
731 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
732 (match_namelist_name): New implemention
733 * io/lock.c (ionml): New global variable
734 (library_end): Free memory in ionml
735 * io/open.c (st_open): Variable initializtion
736 * io/read.c (max_value): 64 bits interger support
737 (convert_precsion_real): New procedure to replace "strtod" with more
739 (read_f, read_radix): Input bug fix
740 * io/transfer.c: (sf_seen_eor): New static variable
741 (read_sf): Zeroize base buffer; fix bugs: single read statement can
742 not get input in mutli line when read from stdin
743 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
745 (data_transfer_init): Clear internal buffer for Internel File I/O.
746 Internal File now worked. Detect some error condition for namelist.
748 (next_record_w): Internal file and Namelist I/O support.
749 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
750 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
751 * io/unit.c (implicit_unit): Deletion
752 (get_unit): Now cannot open a unit implicitly.
753 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
755 (mem_alloc_r_at): Internal file I/O support added
756 (empty_internal_buffer): New function
757 * io/write.c (extract_int): Support 64 bits interger processing
758 (output_float): Varibale initialization
759 (write_float): Infinite real number detection.
760 (write_int): 64 bits integer I/O support
761 (write_decimal): New function to output decimal number
762 (otoa, btoa): Better implemention and 64 bits interger support
763 (namelist_write): New function
764 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
767 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
769 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
770 get_mem ): Add attribute.
771 * intrinsics/spread_generic.c (__spread): Fix spelling.
772 * io/inquire.c (inquire_via_filename): Add const.
773 * io/io.h (sys_exit): Add attribute.
774 * io/io.h (move_pos_offset): Add move_pos_offset.
775 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
776 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
777 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
778 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
780 * io/read.c (convert_real): Add const.
781 * io/transfer.c (type_name): Add const.
782 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
783 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
784 inquire_read, inquire_write, inquire_readwrite): Add const.
785 * io/write.c (output_float): Remove unused variable.
786 * io/write.c (write_a, extract_int, extract_real, output_float,
787 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
788 write_e, write_f, write_en, write_es, write_logical, write_integer,
789 write_character, write_real, write_complex): Add const.
790 * runtime/error.c (rtoa): Remove unused variable.
791 * runtime/select.c (select_string): Add const.
792 * runtime/stop.c (stop_string): Add const.
794 2003-08-10 Paul Brook <paul@nowt.org>
796 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
797 (FFLAGS): Add -fno-underscoring.
798 * Makefile.in: Regenerate.
799 * intrinsics/abort.c: New file.
801 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
803 * fmain.c (main): Do not call init and cleanup; call set_args instead.
804 * libgfortran.h (init, cleanup): Remove declarations.
805 (set_args): Add declaration.
806 * runtime/main.c (init, cleanup): Make them static, and give them
807 the constructor and destructor attributes.
808 (set_args): New function.
810 2003-08-10 Paul Brook <paul@nowt.org>
812 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
813 on which string is longest.
815 2003-08-10 Paul Brook <paul@nowt.org>
817 * Makefile.am (EXTRA_DIST): Remove old files.
818 * Makefile.in: Regenerate.
820 2003-07-26 Paul Brook <paul@nowt.org>
822 Rename library to libgfortran.
823 * libgfortran.h: Change prefix to _libgfortran_.
825 2003-07-24 Paul Brook <paul@nowt.org>
827 * configure.in: Don't pull in system libtool. Use toplevel
830 2003-07-22 Paul Brook <paul@nowt.org>
832 Regenerate all configury files.
834 2003-07-09 Chun Huang <compiler@sohu.com>
836 * intrinsics/string_intrinsic.c (string_scan): New function.
837 (string_verify): New function.
839 2003-06-25 Paul Brook <paul@nowt.org>
841 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
842 (mem_seek): Don't bother setting physical_offset.
844 2003-06-20 Paul Brook <paul@nowt.org>
846 * libgfor.h (stop_numeric): Declare.
847 * runtime/pause.c: New file.
848 * Makefile.am: Add it.
850 2003-06-08 Paul Brook <paul@nowt.org>
852 * m4/cexp.m4 (cabs): Use correct typed version.
853 (csqrt): New function.
855 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
857 Spotted by Benjamin and Tobias:
858 * io/list_read.c: Add Separator '\t'.
859 (parse_real, read_real): Accept real values starting with an optional
860 sign follows a decimal point.
862 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
864 * Makefile.am: Don't put cmath objects in subdir.
865 * configure.in: Rename MATHOBJ to MATH_OBJ.
867 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
869 * intrinsics/associated.c: New file.
870 * Makefile.am: Add it. Regenerate Makefile.in.
871 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
872 G95_DESCRIPTOR_DTYPE.
874 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
876 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
877 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
878 the scale_factor to 0 for F editing.
880 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
882 * libgfor.h: Only include stdint.h if it exists.
884 2003-05-07 Paul Brook <paul@nowt.org>
886 * libgfor.h: Use stdint.h types.
887 * intrinsics/ishift.c: Ditto.
888 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
890 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
892 * libgfor.h (offsetof): Define if nobody else does.
893 * runtime/memory.c (HEADER_SIZE): Use it.
895 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
897 * configure.in: Require autoconf 2.54.
899 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
900 Paul Brook <paul@nowt.org>
902 * intrinsics/reshape_generic.c: Copy the whole element, not just the
904 * m4/transpose.m4: New file.
905 * Makefile.am: Add them.
906 Regenerate generated files.
908 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
910 * io/format.c (parse_format_list): Allow 'X' without integer
911 prefix. This is an extension. Interpretation is '1X'.
913 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
915 * io/format.c (parse_format_list): Allow '0P'.
917 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
919 * Makefile.in: Re-regenerate for automake 1.7.3.
921 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
923 Port implementation for CHARACTER SELECT from Andy's tree.
924 * runtime/select.c: New file
925 * Makefile.am: Add it.
926 * Makefile.in: Regenerate.
928 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
930 * io/transfer.c (formatted_transfer): Modified
931 * io/unix.c (move_pos_offset): New Function.
932 * io/format.c (parse_format_list): Modified.
934 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
936 * io/write.c (write_float,write_real): New implemention of
937 FMT_G and default float editing.
938 (calculate_exp,calculate_G_format,output_float): New Function.
939 (write_float,write_real,write_logical): Modified
940 * libgfor.h (default_rtoa): Remove Declaration.
941 * runtime/error.c (default_rtoa): Remove Function.
943 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
946 * io/write.c (extract_real): Add missing break statement.
948 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
950 * cpu_time.c: Make sure we have a definition of HZ. Don't
951 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
953 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
954 Paul Brook <paul@nowt.org>
956 * configure.in: Check for process time headers and GETTIMEOFDAY.
957 * makefile.am: Add intrinsics/cpu_time.c.
958 * acinclude.m4: New file.
959 * intrinsics/cpu_time.c: New file.
960 * m4/dotprodl.m4: Fix typo.
961 Regenerate generated files.
963 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
965 * io/write.c (extract_real): Ouput floating point value.
966 (write_float): New Function.
967 (write_e, write_f, write_en, write_es): Modified
968 * io/transfer.c (formatted_transfer): Modified.
969 * libgfor.h (default_rtoa): Declaration.
971 * runtime/error.c (default_rtoa): New Function.
972 (rtoa): New Function.
974 2003-04-05 Paul Brook <paul@nowt.org>
976 * intrinsics/spread_generic.c: New file.
977 * Makefile.am: Add it. Regenerate Makefile.in.
979 2003-03-29 Paul Brook <paul@nowt.org>
981 * intrinsics/pack_generic.c: New file.
982 * intrinsics/unpack_generic.c: New file.
983 * Makefile.am: Add them. Regenerate Makefile.in.
985 2003-03-25 Paul Brook <paul@nowt.org>
987 * intrinsics/eoshift0.c: New file.
988 * intrinsics/eoshift2.c: New file.
989 * m4/eoshift1.m4: New file.
990 * m4/eoshift3.m4: New file.
991 * Makefile.am: Add them.
992 * in_unpack_generic.c: Initialize src.
993 Regenerate generated files.
995 2003-03-14 Paul Brook <paul@nowt.org>
997 * m4/shape.m4: Work properly with array temporaries.
998 * m4/in_pack.m4: Skip redundant checks for array temporaries.
999 * runtime/in_pack_generic.c: Ditto.
1001 2003-03-12 Paul Brook <paul@nowt.org>
1003 * m4/shape.m4: Work properly with noncontiguous arrays.
1005 2003-03-08 Paul Brook <paul@nowt.org>
1007 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1008 * runtime/in_pack_generic.c: Ditto.
1010 2003-02-08 Paul Brook <paul@nowt.org>
1012 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1013 * io/close.c (st_close): Return void.
1014 * io/open.c (st_open): Return void.
1015 * libgfor.h (g95_array_char): Declare.
1016 (internal_malloc_size): Ditto.
1017 (internal_pack*, internal_unpack*): Ditto.
1018 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1020 * m4/in_unpack.m4: Include file fixes.
1021 * m4/reshape.m4: Increment the correct source pointer.
1022 * Makefile.am (maxloc): Fix typo.
1023 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1024 storage if neccessary. Fix logic for packed arrays.
1025 * runtime/in_unpack_generic.c: Call optimized functions.
1026 * runtime/main.c: Use runtime_error to report errors.
1027 * memory.c (internal_malloc_size): Make non-static.
1029 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1031 * reshape_packed.c, lock.c: Add #include <string.h>.
1032 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1033 environ.c, error.c, memory.c, string.c: Add const.
1034 * error.c (show_locus): Add void.
1036 2003-02-21 Paul Brook <paul@nowt.org>
1038 * m4/in_pack.m4: Avoid returning const * parameter.
1039 * Makefile.am: Only regenerate files in maintainer mode.
1041 2003-02-20 Paul Brook <paul@nowt.org>
1043 Add array repacking support functions.
1044 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1045 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1046 * Makefile.am: Build them. Regenerate configury files.
1047 * generated/: New directory for generated files (need to move
1048 everything else there).
1050 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1052 * m4/cexp.m4: Fix typo.
1054 2003-01-26 Paul Brook <paul@nowt.org>
1056 * intrinsics/: Add missing generated files.
1058 2003-01-26 Paul Brook <paul@nowt.org>
1060 * Makefile.am: Put -I before the filename.
1062 2003-01-24 Paul Brook <paul@nowt.org>
1064 * configure.in: Add AM_MAINTAINER_MODE.
1066 2003-01-23 Paul Brook <paul@nowt.org>
1068 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1070 Also regenerate other configury files.
1072 2003-01-21 Paul Brook <paul@nowt.org>
1074 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1076 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1078 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1079 Don't include "alloca.h".
1081 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1083 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1084 * Makefile.am: Adjust file name.
1085 * Makefile.in: Regenerate.
1086 * gfortypes.h: Kill, include everything in...
1087 * libgfor.h: ...here. Include config.h
1088 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1089 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1090 intrinsics/reshape_packed.c, intrinsics/size.c,
1091 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1092 for prefix for all functions instead of hardcoded.
1094 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1096 * io/lock.c (library_end): Propagate library return
1099 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1101 Port fixes from Andy's tree:
1102 * io/read.c (read_decimal): Reverse sense of overflow
1103 comparison during integer reads.
1104 * io/format.c (revert): Fix comment.
1105 (next_format): Fix format revision.
1106 * io/unix.c: Fix and simplify mmap version of stream
1109 2003-01-11 Paul Brook <paul@nowt.org>
1111 * configure, Makefile.in: Regenerate.
1113 2003-01-11 Paul Brook <paul@nowt.org>
1115 * runtime/stop.c: Rewrite.
1117 2003-01-08 Paul Brook <paul@nowt.org>
1119 * configure, Makefile.in: Regenerate.
1121 2003-01-05 Paul Brook <paul@nowt.org>
1123 * (*.m4) Move to m4/.
1124 * intrinsics/string.c (_gfor_string_index): New Function.
1126 2002-12-29 Paul Brook <paul@nowt.org>
1128 * intrinsics/reshape.*: New files.
1129 * gcc_config.patch: Update to new GCC configure system.
1131 2002-10-10 Paul Brook <paul@nowt.org>
1133 * intrinsics/size.c: New file.
1134 * intrinsics/shape.m4: New file.
1135 * Makefile.am: Add above files.
1137 2002-10-02 Paul Brook <paul@nowt.org>
1139 * fmain.c (main): Move here.
1140 * libgfor.c: From here.
1141 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1142 * Makefile.am: Build libgforbegin.
1143 * gcc_config.patch: Remove stray -march=athlon.
1144 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1145 * ifunction.m4: Move variable declarations to allow compilation with
1147 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1148 * README: Document use of patch -p1.
1150 2002-09-12 Paul Brook <paul@nowt.org>
1152 * math/*: Add complex math library functions.
1153 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1154 * Makefile.am: Add details for above.
1155 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1157 2002-09-09 Paul Brook <paul@nowt.org>
1159 * libgfor.c (determine_endianness): Use an array rather than a struct.
1160 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1162 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1164 * libgfor.c: Add fatal signal handler.
1165 Romove superfluous abort() calls.
1167 2002-09-07 Paul Brook <paul@nowt.org>
1169 * Makefile.am, intrinsics: Major rewrite.
1171 2002-09-02 Paul Brook <paul@nowt.org>
1173 * Makefile.am: Added -I$(srcdir) to m4 rule.
1175 2002-08-30 Paul Brook <paul@nowt.org>
1177 * io/*: Integrated libgforio.
1178 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1179 intrinsics in the intrisics directory.
1180 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1181 filename. Add 'and' and 'all' intrinsics.
1183 2002-08-17 Paul Brook <paul@nowt.org>
1185 * ALL: First release as more than just a single file