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-21 Bud Davis <bdavis9659@comcast.net>
21 * io/transfer.c (next_record_w): Do not blank pad.
22 * io/transfer.c (next_record): Take into account partial records.
24 2004-08-18 Victor Leikehman <lei@il.ibm.com>
27 * io/transfer.c (st_set_nml_var)
28 * io/write.c (namelist_write): Allow var_name and var_name_len to be
29 null. For strings, use string_length field instead of len.
30 * io/io.h (struct namelist_type): New field string_length.
31 (st_set_nml_var_char): New argument string_length.
33 2004-08-13 Bud Davis <bdavis9659@comcast.net>
36 * io/open.c (st_open): use flags instead of the unit structure.
38 2004-08-10 Victor Leikehman <lei@il.ibm.com>
40 * io/list_read.c (namelist_read): Convert variable names
41 to lower case, so that mixed-case names are recognized.
42 Don't read beyond terminating slash.
44 2004-08-09 Richard Henderson <rth@redhat.com>
45 Roger Sayle <roger@eyesopen.com>
47 * intrinsics/c99_functions.c (nextafterf): New implementation that
48 works correctly with denormalized numbers.
50 2004-08-09 Victor Leikehman <lei@il.ibm.com>
52 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
53 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
54 Allocate space if return value has NULL in its data field.
55 * generated/*.c: Regenerate.
57 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
59 * intrinsics/env.c: New file.
60 * Makefile.am: Add env.c to build.
61 * Makefile.in: Regenerate.
63 2004-08-05 Victor Leikehman <lei@il.ibm.com>
66 * io/read.c (read_radix): Understand letters f and F as hex digits.
68 2004-08-04 Victor Leikehman <lei@il.ibm.com>
70 * libgfortran.h (array_t, size0) New declarations.
71 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
72 space if return value descriptor has NULL in its data field,
73 and initialize bounds and stride.
74 * intrinsics/size.c (array_t, size0): Declarations moved to
76 * generated/*.c: Regenerate.
78 2004-08-03 Roger Sayle <roger@eyesopen.com>
81 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
82 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
83 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
84 * config.h.in: Regenerate.
85 * configure: Regenerate.
87 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
88 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
89 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
90 implementations for targets that don't support C99 float functions.
92 2004-08-01 Roger Sayle <roger@eyesopen.com>
94 * io/write.c (write_float): Use the slightly more portable isnan
95 in preference to isinf.
97 2004-07-18 Bud Davis <bdavis9659@comcast.net>
99 * configure.ac: Add check for LFS support.
100 * configure: Regenerate
102 2004-07-11 Paul Brook <paul@codesourcery.com>
105 * m4/cexp.m4 (carg): Return -pi to pi.
106 * generated/exp_c?.c: Regenerate.
108 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
111 * libgfortran/io/write.c: (write_float): Added length check.
112 Remove pointless memset calls.
114 2004-07-04 Bud Davis <bdavis9659@comcast.net>
115 Paul Brook <paul@codesourcery.com>
118 * io/transfer.c(us_write): set recl for seq unform writes to max size.
119 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
120 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
122 * io/unix.c(is_seekable): set based upon the file/device, not the
123 method being used to access it (fd or mmap).
124 * io/unix.c(fd_flush): don't set file_size if !seekable.
125 * io/unix.c(fd_truncate: ditto.
127 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
128 Paul Brook <paul@codesourcery.com>
132 * libgfortran.h (gfc_strlen_type): Define.
133 * intrinsics/args.c (getarg): Rename ...
134 (getarg_i4): ... to this.
135 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
136 get_command_i4, get_command_i8): New functions.
138 2004-07-04 Matthias Klose <doko@debian.org>
140 * libtool-version: New.
141 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
142 * Makefile.in: Regenerate.
143 * configure.ac: Remove libtool_VERSION macro
144 * configure: Regenerate
146 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
147 Steven Bosscher <stevenb@suse.de>
149 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
152 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
153 Paul Brook <paul@codesourcery.com>
155 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
157 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
159 2004-06-27 Bud Davis <bdavis9659@comcast.net>
162 * io/write.c (write_float): check signbit for Infinity.
164 2004-06-26 Bud Davis <bdavis9659@comcast.net>
167 * unix.c(regular_file): create file if it does not exist.
169 2004-06-24 Andrew Pinski <apinski@apple.com>
171 * configure.ac: Remove check for libmx.
172 * configure: Regenerate.
174 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
177 * inquire.c (st_inquire): Add comment
178 * io.h (st_parameter): Add iolength.
179 (st_iolength, st_iolength_done): Declare.
180 * transfer.c (iolength_transfer, iolength_transfer_init,
181 st_iolength, st_iolength_done): New functions.
183 2004-06-21 Steven G. Kargl <kargls@comcast.net>
185 * etime.c (etime_sub): Remove array rank check;
186 Add check for sufficient space.
188 2004-06-19 Bud Davis <bdavis9659@comcast.net>
191 * io/list_read.c(set_value): fixed spelling.
193 2004-06-19 Bud Davis <bdavis9659@comcast.net>
196 * io/list_read.c(set_value): don't copy if the string is null.
198 2004-06-14 Bud Davis <bdavis9659@comcast.net>
201 * intrinsics/c99_functions.c: Use fpclassify if it exists.
203 2004-06-13 Paul Brook <paul@codesourcery.com>
205 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
206 * configure.ac: Add checks for nextafter and nextafterf.
207 * Makefile.in, config.h.in, configure: Regenerate.
208 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
209 * intrinsics/rand.c (rand): Use normalize_r4_i4.
210 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
211 (random_r8): Use normalize_r8_i8.
212 * runtime/normalize.c: New file.
214 2004-06-13 Steven G. Kargl <kargls@comcast.net>
215 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
217 * random.c: Fix several spelling and formatting mistakes in
219 (random_r8): Fix loop to make random numbers range in [0,1(.
222 2004-06-13 Steven G. Kargl <kargls@comcast.net>
224 * random.c (random_r4): Burn a random number.
225 (random_r8): fix infinite loop.
227 2004-06-12 Bud Davis <bdavis9659@comcast.net>
228 Steve Kargl <sgk@troutmask.apl.washington.edu>
231 * intrinsics/c99_functions.c: New file.
232 * Makefile.am: Add new file.
233 * configure.ac: Added test for round/roundf.
234 * Makefile.in: Regenerate.
235 * configure: Regenerate.
236 * configure.h.in: Regenerate.
238 2004-06-12 Steven G. Kargl <kargls@comcast.net>
240 * Makefile.am: Add rand.c and etime.c
241 * Makefile.in: Regenerated.
242 * aclocal.in: Regenerated.
243 * cpu_time.c (second_sub, second): New functions.
244 * rand.c (irand, rand, srand): New file.
245 * etime.c (etime_sub, etime): New file.
247 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
248 Steven Bosscher <stevenb@suse.de>
251 * intrinsics/date_and_time.c: New file.
252 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
253 * Makefile.in, aclocal.m4: Regenerate.
254 * libgfortran.h: Prototype date_and_time().
256 2004-06-12 Bud Davis <bdavis9659@comcast.net>
259 * intrinsics/args.c: Implement GETARG and IARGC.
260 * Makefile.am: Add it.
261 * Makefile.in: Regenerate.
263 2004-06-12 Bud Davis <bdavis9659@comcast.net>
266 * io/write.c(write_float): Format inf and nan IAW F2003.
268 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
271 * io/transfer.c (formatted_transfer): position is unique
272 for T and TL edit descriptors.
273 (data_transfer_init): set record length to size of internal
276 2004-06-09 Bud Davis <bdavis9659@comcast.net>
279 * io/backspace.c(st_backspace): call correct routine for
280 formatted and un-formatted units.
282 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
285 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
286 (lib_LTLIBRARIES): Rename to ...
287 (toolexeclib_LTLIBRARIES): this for multilib support.
288 * configure.in: Rename to ...
289 * configure.ac: this. Update to modern autoconf style, enable
290 multilibs, support --enable-version-specific-runtime-libs.
291 * Makefile.in: Regenerated.
292 * configure: Regenerated.
293 * aclocal.m4: Regenerated.
295 2004-05-30 Steven G. Kargl <kargls@comcast.net>
297 * libgfortran.h (random_seed): Update prototype.
298 * intrinsics/random.c: Disable old implementation and add new one.
300 2004-05-30 Andreas Jaeger <aj@suse.de>
302 * intrinsics/random.c: Include unistd.h for close and read
303 prototypes, remove unneeded inclusion of assert.h.
305 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
306 unneeded inclusion of assert.h.
308 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
311 * intrinsics/associated.c: Remove enum.
312 (associated): Replace TRUE/FALSE by 1/0.
314 2004-05-23 Steven G. Kargl <kargls@comcast.net>
316 * random.c (random_seed): Use correct variable.
318 2004-05-22 Steven G. Kargl <kargls@comcast.net>
320 * intrinsics/system_clock: New file.
321 * Makefile.am: Add intrinsics/system_clock.c.
322 * Makefile.in: Regenerate.
324 2004-05-21 Roger Sayle <roger@eyesopen.com>
326 * io/format.c (parse_format_list): Allow the comma after a string
327 literal to be optional.
329 2004-05-18 Paul Brook <paul@codesourcery.com>
330 Feng Wang <fengwang@nudt.edu.cn>
332 * Makefile.am (i_pow_c): Set it. Add build rule.
333 (gfor_built_src): Use it.
334 (m4_files): add m4/pow.m4.
335 * Makefile.in: Regenerate.
336 * m4/pow.m4: New file.
337 * generated/pow_*.c: Regenerate.
339 2004-05-18 Paul Brook <paul@codesourcery.com>
341 * Makefile.am: Remove references to types.m4.
342 * m4/iparm.m4: Merge with types.m4.
343 * m4/types.m4: Remove.
344 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
345 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
346 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
347 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
348 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
349 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
350 Update to use new iparm.m4.
351 * generated/*.c: Regenerate.
353 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
356 * gfortran.h (offset_t): Rename to ...
357 (gfc_offset): ... this.
358 * io/backspace.c (formatted_backspace, unformatted_backspace),
359 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
360 transfer.c (us_read, us_write, next_record_r, next_record_w),
361 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
362 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
363 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
364 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
365 occurences of offset_t by gfc_offset.
367 2004-05-16 Paul Brook <paul@codesourcery.com>
369 * io/format.c (write_real): Don't include padding in format.
371 2004-05-16 Paul Brook <paul@codesourcery.com>
373 * io/format.c (format_lex): Make c an int.
375 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
376 Paul Brook <paul@codesourcery.com>
378 * io/write.c (write_logical): Don't print extra blank.
379 (write_integer): Base field width on kind.
380 (list_formatted_write): Output initial blank.
382 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
384 * io/io.h (flush): Add prototype.
385 * io/transfer.c (finalize_transfer): Flush partial records.
386 * io/unix.c (flush): New function.
388 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
391 * io/io.h (unit_t): Rename to ...
393 (unit_root, current_unit, find_file, find_unit, get_unit): Now
395 (delete_file, insert_unit, close_unit): Argument now of type
397 * backspace.c (st_backspace), close.c (st_close), endfile.c
398 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
399 (test_endfile, edit_modes, new_unit, already_open, st_open),
400 rewind.c (st_rewind), transfer.c (current_unit), unit.c
401 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
402 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
403 get_unit, init_units, close_unit), unix.c (find_file0,
404 find_file, delete_file): Replace all occurences of unit_t by
407 2004-05-15 Bud Davis <bdavis9659@comcast.net>
410 * io/write.c (write_a): right justify A edit output.
412 2004-05-14 Bud Davis <bdavis9659@comcast.net>
415 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
416 * runtime/main.c(init): Call random_seed as part of MAIN init.
418 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
420 * io/format.c: (parse_format_list): No comma is required after
423 2004-05-13 Bud Davis <bdavis9659@comcast.net>
426 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
428 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
429 Steven Bosscher <stevenb@suse.de>
432 * libgfortran.h: Include <inttypes.h> if available.
434 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
436 * io/unix.c (MAP_FAILED): Define if missing.
437 (mmap_alloc): Cast MAP_FAILED to char *.
438 (mmap_open): Likewise.
440 2004-04-26 Bud Davis <bdavis9659@comcast.net>
442 * generated/_abs_i8.f90: New file.
443 * generated/_abs_c4.f90: New file.
444 * generated/_abs_c8.f90: New file.
445 * Makefile.am: Add them.
446 * Makefile.in: Regenerate.
448 2004-04-26 Bud Davis <bdavis9659@comcast.net>
451 * generated/_abs_i4.f90: New file.
452 * Makefile.am: Add it.
453 * Makefile.in: Regenerate.
455 2004-04-25 Bud Davis <bdavis9659@comcast.net>
458 * io/list_read.c(list_formatted_read): finish consuming the
459 spaces and seperators at eoln to get ready for next item.
461 2004-04-23 Bud Davis <bdavis9659@comcast.net>
464 * io/read.c(read_a): Handle field width > destination and no field width.
466 2004-04-22 Bud Davis <bdavis9659@comcast.net>
469 * io/format.c (format_item): gracefully handle a ')'
470 when it is the first character encountered in the string.
472 2004-04-11 Bud Davis <bdavis9659@comcast.net>
475 * io/transfer.c (next_record): Update last_record when
476 more than one record is written to a direct access file
477 with one write statement.
479 2004-04-11 Bud Davis <bdavis9659@comcast.net>
482 * io/transfer.c (next_record_w) : No '\n' if internal.
483 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
485 2004-04-11 Bud Davis <bdavis9659@comcast.net>
487 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
488 Will need to change this later to support direct access files > 2gb.
490 2004-04-03 Bud Davis <bdavis9659@comcast.net>
493 * io/transfer.c (next_record_r) : Skip to next record.
495 2004-04-03 Bud Davis <bdavis9659@comcast.net>
498 * io/transfer.c (next_record): Update last_record for DIRECT
500 2004-04-03 Bud Davis <bdavis9659@comcast.net>
503 * io/unix.c (find_file0): Use fd field of struct
505 2004-04-03 Bud Davis <bdavis9659@comcast.net>
508 * io/inquire.c (inquire_via_unit): Changed return string for
509 BLANK=NULL. Use correct variable for ACTION.
511 2004-04-01 Bud Davis <bdavis9659@comcast.net>
514 * io/read.c (read_f): Allow a decimal without a leading digit.
515 * io/write.c (output_float): remove a leading '0' to keep from
516 overflowing the field (F edit descriptor).
518 2004-04-01 Bud Davis <bdavis9659@comcast.net>
521 * io/open.c (new_unit),
522 * io/io.h : new_unit is now visible
523 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
524 * io/transfer.c (data_transfer_init): remove compile warnings.
525 * io/rewind.c (st_rewind): ftruncate if writing.
527 2004-03-24 Bud Davis <bdavis9659@comcast.net>
529 * write.c (write_l): Use extract_int for 'L' edit descriptor.
531 2004-03-24 Bud Davis <bdavis9659@comcast.net>
534 * io/io.h (global_t):
535 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
536 Move eof_jmp to a global structure.
537 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
539 2004-03-24 Bud Davis <bdavis9659@comcast.net>
541 * m4/cexp.m4 (csqrt): Actually use the passed value.
542 * generated/exp_c?.c: Regenerate.
544 2004-03-24 Bud Davis <bdavis9659@comcast.net>
547 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
548 * open.c (new_unit): Moved test for positioned direct access error.
549 (init_units): Corrected calculation of max records.
551 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
553 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
554 * Makefile.in: Regenerate.
555 * m4/dotprodc.m4: New file. Implement complex dot_product.
556 * m4/dotprod.m4: Delete the complex implementation.
557 * generated/dotprod_*: Update.
559 2004-02-07 Bud Davis <bdavis9659@comcast.net>
561 * transfer.c (write_constant_string): Do not delete H's in hollerith
564 2004-01-05 Andrew Pinski <apinski@apple.com>
566 * configure.in: Check for csin in -lmx also.
567 * configure: Regenerate.
569 2004-01-01 Paul Brook <paul@codesourcery.com>
571 * io/list_read.c (find_nml_node): Make static.
572 (match_namelist_name): Ditto.
573 * io/read.c (convert_precision_real): Make static, fix spelling.
574 * io/transfer.c (extract_real): Remove unused prototype.
575 (st_set_nml_var): Make static.
576 * io/write.c (extract_real): Make static.
578 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
580 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
582 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
584 * io/transfer.c (data_transfer_init): Give a runtime error for list
585 formatted reads and writes from/to files opened for unformatted IO.
587 2003-11-30 Paul Brook <paul@nowt.org>
589 * runtime/memory.c (push_context): Remove.
590 (pop_context): Remove.
591 * libgfortran.h: Remove prototypes.
593 2003-11-27 Paul Brook <paul@nowt.org>
595 * runtime/memory.c (deallocate): Nullify pointer after freeing.
597 2003-11-27 Paul Brook <paul@nowt.org>
599 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
600 * libgfortran.h: Ditto.
601 * m4/in_pack.m4: Ditto.
602 * runtime/in_pack_generic.c: Ditto.
603 * runtime/memory.c: Ditto.
605 2003-11-26 Richard Henderson <rth@redhat.com>
607 * m4/exponent.m4, m4/fraction.m4: New.
608 * m4/nearest.m4, m4/set_exponent.m4: New.
609 * generated/*: Update.
610 * Makefile.am: Add them.
611 (AM_CFLAGS): New. Use -std=gnu99.
612 * Makefile.in: Regenerate.
614 2003-11-08 Paul Brook <paul@nowt.org>
617 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
618 * m4/maxloc1.m4: Ditto.
619 * m4/minloc0.m4: Ditto.
620 * m4/minloc1.m4: Ditto.
621 * m4/ifunction.m4: Set return value for zero sized arrays.
622 * m4/iforeach.m4: Ditto.
623 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
624 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
625 * generated/*: Update.
627 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
630 * io/list_read.c (eat_spaces): Treat tab as space.
632 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
634 * intrinsics/random.c: Add reference to paper containing algorithm.
635 (random_seed): Extra error checking and proper handling of arrays.
636 (arandom_r4, arandom_r8): Implement.
638 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
641 * runtime/memory.c (allocate_size): Allow allocation
642 of zero-sized objects.
644 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
647 * open.c (new_unit): Open without a file name opens
648 a file with name fort.<unit>.
650 2003-10-12 Feng Wang <wf_cs@yahoo.com>
652 * intrinsics/cshift0.c: New file.
653 * m4/cshift1.m4: New file
654 * generated/cshift*.c: New files.
655 * Makefile.am: Add them.
656 * Makefile.in: Regenerate.
658 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
660 * io/list_read.c (read_character): Remove unwanted call to free_saved.
662 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
664 * intrinsics/string_intrinsics.c (string_trim): New function.
665 (string_repeat): New function.
667 2003-10-11 Paul Brook <paul@nowt.org>
669 * intrinsics/dprod_r8.f90: New file.
670 * Makefile.am (gfor_specific_src): Add it.
671 (gfor_built_specific_src): Rename from gfor_build_specific_c.
673 (gfor_specific2_src): Rename from gfor_built_specific2_c.
675 * Makefile.in: Regenerate.
676 * generated/_aint_*.f90: New files.
677 * generated/_anint*.f90: New files.
678 * generated/_atan2*.f90: New files.
679 * generated/_mod*.f90: New files.
681 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
683 * intrinsics/selected_kind.f90: New file.
684 * Makefile.am: Add it.
685 * Makefile.in: regenerate.
687 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
688 Paul Brook <paul@nowt.org>
690 * intrinsics/random.c: New file.
691 * Makefile.am (gfor_hemper_src): Add it.
692 (gfor_specific_c): Fix typo.
694 2003-09-19 Paul Brook <paul@nowt.org>
696 * All: rename g95->gfc.
698 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
700 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
702 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
704 * io/write.c (write_float): Dectection of positive infinite number,
705 Not a Number(NaN) and negative infinite number.
706 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
707 output a very_very small number ( < 0.1e-100 ).
709 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
711 * libgfortran.h (xtoa, itoa): Parameter modified.
712 * io/io.h (namelist_info): Declaration to support namelist I/O
713 (st_parameter): Add namelist related component
714 (ionml, empty_internal_buffer, st_set_nml_var_int,
715 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
716 st_set_nml_var_log): Declaration
717 (set_integer, set_integer): Parameter changed
718 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
720 (parse_format_list): Fix bug about FMT_SLASH
721 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
722 newly allocated saved_string
723 (next_char): Add detection of End_Of_Line support
724 (convert_integer): Now can process 64 bits interger
725 (read_real): Bug fixed
726 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
727 (match_namelist_name): New implemention
728 * io/lock.c (ionml): New global variable
729 (library_end): Free memory in ionml
730 * io/open.c (st_open): Variable initializtion
731 * io/read.c (max_value): 64 bits interger support
732 (convert_precsion_real): New procedure to replace "strtod" with more
734 (read_f, read_radix): Input bug fix
735 * io/transfer.c: (sf_seen_eor): New static variable
736 (read_sf): Zeroize base buffer; fix bugs: single read statement can
737 not get input in mutli line when read from stdin
738 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
740 (data_transfer_init): Clear internal buffer for Internel File I/O.
741 Internal File now worked. Detect some error condition for namelist.
743 (next_record_w): Internal file and Namelist I/O support.
744 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
745 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
746 * io/unit.c (implicit_unit): Deletion
747 (get_unit): Now cannot open a unit implicitly.
748 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
750 (mem_alloc_r_at): Internal file I/O support added
751 (empty_internal_buffer): New function
752 * io/write.c (extract_int): Support 64 bits interger processing
753 (output_float): Varibale initialization
754 (write_float): Infinite real number detection.
755 (write_int): 64 bits integer I/O support
756 (write_decimal): New function to output decimal number
757 (otoa, btoa): Better implemention and 64 bits interger support
758 (namelist_write): New function
759 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
762 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
764 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
765 get_mem ): Add attribute.
766 * intrinsics/spread_generic.c (__spread): Fix spelling.
767 * io/inquire.c (inquire_via_filename): Add const.
768 * io/io.h (sys_exit): Add attribute.
769 * io/io.h (move_pos_offset): Add move_pos_offset.
770 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
771 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
772 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
773 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
775 * io/read.c (convert_real): Add const.
776 * io/transfer.c (type_name): Add const.
777 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
778 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
779 inquire_read, inquire_write, inquire_readwrite): Add const.
780 * io/write.c (output_float): Remove unused variable.
781 * io/write.c (write_a, extract_int, extract_real, output_float,
782 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
783 write_e, write_f, write_en, write_es, write_logical, write_integer,
784 write_character, write_real, write_complex): Add const.
785 * runtime/error.c (rtoa): Remove unused variable.
786 * runtime/select.c (select_string): Add const.
787 * runtime/stop.c (stop_string): Add const.
789 2003-08-10 Paul Brook <paul@nowt.org>
791 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
792 (FFLAGS): Add -fno-underscoring.
793 * Makefile.in: Regenerate.
794 * intrinsics/abort.c: New file.
796 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
798 * fmain.c (main): Do not call init and cleanup; call set_args instead.
799 * libgfortran.h (init, cleanup): Remove declarations.
800 (set_args): Add declaration.
801 * runtime/main.c (init, cleanup): Make them static, and give them
802 the constructor and destructor attributes.
803 (set_args): New function.
805 2003-08-10 Paul Brook <paul@nowt.org>
807 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
808 on which string is longest.
810 2003-08-10 Paul Brook <paul@nowt.org>
812 * Makefile.am (EXTRA_DIST): Remove old files.
813 * Makefile.in: Regenerate.
815 2003-07-26 Paul Brook <paul@nowt.org>
817 Rename library to libgfortran.
818 * libgfortran.h: Change prefix to _libgfortran_.
820 2003-07-24 Paul Brook <paul@nowt.org>
822 * configure.in: Don't pull in system libtool. Use toplevel
825 2003-07-22 Paul Brook <paul@nowt.org>
827 Regenerate all configury files.
829 2003-07-09 Chun Huang <compiler@sohu.com>
831 * intrinsics/string_intrinsic.c (string_scan): New function.
832 (string_verify): New function.
834 2003-06-25 Paul Brook <paul@nowt.org>
836 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
837 (mem_seek): Don't bother setting physical_offset.
839 2003-06-20 Paul Brook <paul@nowt.org>
841 * libgfor.h (stop_numeric): Declare.
842 * runtime/pause.c: New file.
843 * Makefile.am: Add it.
845 2003-06-08 Paul Brook <paul@nowt.org>
847 * m4/cexp.m4 (cabs): Use correct typed version.
848 (csqrt): New function.
850 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
852 Spotted by Benjamin and Tobias:
853 * io/list_read.c: Add Separator '\t'.
854 (parse_real, read_real): Accept real values starting with an optional
855 sign follows a decimal point.
857 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
859 * Makefile.am: Don't put cmath objects in subdir.
860 * configure.in: Rename MATHOBJ to MATH_OBJ.
862 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
864 * intrinsics/associated.c: New file.
865 * Makefile.am: Add it. Regenerate Makefile.in.
866 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
867 G95_DESCRIPTOR_DTYPE.
869 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
871 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
872 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
873 the scale_factor to 0 for F editing.
875 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
877 * libgfor.h: Only include stdint.h if it exists.
879 2003-05-07 Paul Brook <paul@nowt.org>
881 * libgfor.h: Use stdint.h types.
882 * intrinsics/ishift.c: Ditto.
883 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
885 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
887 * libgfor.h (offsetof): Define if nobody else does.
888 * runtime/memory.c (HEADER_SIZE): Use it.
890 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
892 * configure.in: Require autoconf 2.54.
894 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
895 Paul Brook <paul@nowt.org>
897 * intrinsics/reshape_generic.c: Copy the whole element, not just the
899 * m4/transpose.m4: New file.
900 * Makefile.am: Add them.
901 Regenerate generated files.
903 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
905 * io/format.c (parse_format_list): Allow 'X' without integer
906 prefix. This is an extension. Interpretation is '1X'.
908 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
910 * io/format.c (parse_format_list): Allow '0P'.
912 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
914 * Makefile.in: Re-regenerate for automake 1.7.3.
916 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
918 Port implementation for CHARACTER SELECT from Andy's tree.
919 * runtime/select.c: New file
920 * Makefile.am: Add it.
921 * Makefile.in: Regenerate.
923 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
925 * io/transfer.c (formatted_transfer): Modified
926 * io/unix.c (move_pos_offset): New Function.
927 * io/format.c (parse_format_list): Modified.
929 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
931 * io/write.c (write_float,write_real): New implemention of
932 FMT_G and default float editing.
933 (calculate_exp,calculate_G_format,output_float): New Function.
934 (write_float,write_real,write_logical): Modified
935 * libgfor.h (default_rtoa): Remove Declaration.
936 * runtime/error.c (default_rtoa): Remove Function.
938 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
941 * io/write.c (extract_real): Add missing break statement.
943 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
945 * cpu_time.c: Make sure we have a definition of HZ. Don't
946 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
948 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
949 Paul Brook <paul@nowt.org>
951 * configure.in: Check for process time headers and GETTIMEOFDAY.
952 * makefile.am: Add intrinsics/cpu_time.c.
953 * acinclude.m4: New file.
954 * intrinsics/cpu_time.c: New file.
955 * m4/dotprodl.m4: Fix typo.
956 Regenerate generated files.
958 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
960 * io/write.c (extract_real): Ouput floating point value.
961 (write_float): New Function.
962 (write_e, write_f, write_en, write_es): Modified
963 * io/transfer.c (formatted_transfer): Modified.
964 * libgfor.h (default_rtoa): Declaration.
966 * runtime/error.c (default_rtoa): New Function.
967 (rtoa): New Function.
969 2003-04-05 Paul Brook <paul@nowt.org>
971 * intrinsics/spread_generic.c: New file.
972 * Makefile.am: Add it. Regenerate Makefile.in.
974 2003-03-29 Paul Brook <paul@nowt.org>
976 * intrinsics/pack_generic.c: New file.
977 * intrinsics/unpack_generic.c: New file.
978 * Makefile.am: Add them. Regenerate Makefile.in.
980 2003-03-25 Paul Brook <paul@nowt.org>
982 * intrinsics/eoshift0.c: New file.
983 * intrinsics/eoshift2.c: New file.
984 * m4/eoshift1.m4: New file.
985 * m4/eoshift3.m4: New file.
986 * Makefile.am: Add them.
987 * in_unpack_generic.c: Initialize src.
988 Regenerate generated files.
990 2003-03-14 Paul Brook <paul@nowt.org>
992 * m4/shape.m4: Work properly with array temporaries.
993 * m4/in_pack.m4: Skip redundant checks for array temporaries.
994 * runtime/in_pack_generic.c: Ditto.
996 2003-03-12 Paul Brook <paul@nowt.org>
998 * m4/shape.m4: Work properly with noncontiguous arrays.
1000 2003-03-08 Paul Brook <paul@nowt.org>
1002 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1003 * runtime/in_pack_generic.c: Ditto.
1005 2003-02-08 Paul Brook <paul@nowt.org>
1007 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1008 * io/close.c (st_close): Return void.
1009 * io/open.c (st_open): Return void.
1010 * libgfor.h (g95_array_char): Declare.
1011 (internal_malloc_size): Ditto.
1012 (internal_pack*, internal_unpack*): Ditto.
1013 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1015 * m4/in_unpack.m4: Include file fixes.
1016 * m4/reshape.m4: Increment the correct source pointer.
1017 * Makefile.am (maxloc): Fix typo.
1018 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1019 storage if neccessary. Fix logic for packed arrays.
1020 * runtime/in_unpack_generic.c: Call optimized functions.
1021 * runtime/main.c: Use runtime_error to report errors.
1022 * memory.c (internal_malloc_size): Make non-static.
1024 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1026 * reshape_packed.c, lock.c: Add #include <string.h>.
1027 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1028 environ.c, error.c, memory.c, string.c: Add const.
1029 * error.c (show_locus): Add void.
1031 2003-02-21 Paul Brook <paul@nowt.org>
1033 * m4/in_pack.m4: Avoid returning const * parameter.
1034 * Makefile.am: Only regenerate files in maintainer mode.
1036 2003-02-20 Paul Brook <paul@nowt.org>
1038 Add array repacking support functions.
1039 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1040 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1041 * Makefile.am: Build them. Regenerate configury files.
1042 * generated/: New directory for generated files (need to move
1043 everything else there).
1045 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1047 * m4/cexp.m4: Fix typo.
1049 2003-01-26 Paul Brook <paul@nowt.org>
1051 * intrinsics/: Add missing generated files.
1053 2003-01-26 Paul Brook <paul@nowt.org>
1055 * Makefile.am: Put -I before the filename.
1057 2003-01-24 Paul Brook <paul@nowt.org>
1059 * configure.in: Add AM_MAINTAINER_MODE.
1061 2003-01-23 Paul Brook <paul@nowt.org>
1063 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1065 Also regenerate other configury files.
1067 2003-01-21 Paul Brook <paul@nowt.org>
1069 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1071 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1073 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1074 Don't include "alloca.h".
1076 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1078 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1079 * Makefile.am: Adjust file name.
1080 * Makefile.in: Regenerate.
1081 * gfortypes.h: Kill, include everything in...
1082 * libgfor.h: ...here. Include config.h
1083 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1084 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1085 intrinsics/reshape_packed.c, intrinsics/size.c,
1086 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1087 for prefix for all functions instead of hardcoded.
1089 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1091 * io/lock.c (library_end): Propagate library return
1094 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1096 Port fixes from Andy's tree:
1097 * io/read.c (read_decimal): Reverse sense of overflow
1098 comparison during integer reads.
1099 * io/format.c (revert): Fix comment.
1100 (next_format): Fix format revision.
1101 * io/unix.c: Fix and simplify mmap version of stream
1104 2003-01-11 Paul Brook <paul@nowt.org>
1106 * configure, Makefile.in: Regenerate.
1108 2003-01-11 Paul Brook <paul@nowt.org>
1110 * runtime/stop.c: Rewrite.
1112 2003-01-08 Paul Brook <paul@nowt.org>
1114 * configure, Makefile.in: Regenerate.
1116 2003-01-05 Paul Brook <paul@nowt.org>
1118 * (*.m4) Move to m4/.
1119 * intrinsics/string.c (_gfor_string_index): New Function.
1121 2002-12-29 Paul Brook <paul@nowt.org>
1123 * intrinsics/reshape.*: New files.
1124 * gcc_config.patch: Update to new GCC configure system.
1126 2002-10-10 Paul Brook <paul@nowt.org>
1128 * intrinsics/size.c: New file.
1129 * intrinsics/shape.m4: New file.
1130 * Makefile.am: Add above files.
1132 2002-10-02 Paul Brook <paul@nowt.org>
1134 * fmain.c (main): Move here.
1135 * libgfor.c: From here.
1136 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1137 * Makefile.am: Build libgforbegin.
1138 * gcc_config.patch: Remove stray -march=athlon.
1139 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1140 * ifunction.m4: Move variable declarations to allow compilation with
1142 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1143 * README: Document use of patch -p1.
1145 2002-09-12 Paul Brook <paul@nowt.org>
1147 * math/*: Add complex math library functions.
1148 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1149 * Makefile.am: Add details for above.
1150 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1152 2002-09-09 Paul Brook <paul@nowt.org>
1154 * libgfor.c (determine_endianness): Use an array rather than a struct.
1155 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1157 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1159 * libgfor.c: Add fatal signal handler.
1160 Romove superfluous abort() calls.
1162 2002-09-07 Paul Brook <paul@nowt.org>
1164 * Makefile.am, intrinsics: Major rewrite.
1166 2002-09-02 Paul Brook <paul@nowt.org>
1168 * Makefile.am: Added -I$(srcdir) to m4 rule.
1170 2002-08-30 Paul Brook <paul@nowt.org>
1172 * io/*: Integrated libgforio.
1173 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1174 intrinsics in the intrisics directory.
1175 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1176 filename. Add 'and' and 'all' intrinsics.
1178 2002-08-17 Paul Brook <paul@nowt.org>
1180 * ALL: First release as more than just a single file