1 2004-08-29 Steven G. Kargl <kargls@comcast.net>
2 Paul Brook <paul@codesourcery.com>
4 * intrinsics/bessel.c: New file.
5 * intrinsics/erf.c: New file.
6 * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
7 * configure.ac: Test for C99 Bessel and Error functions.
8 * Makefile.in: Regenerate.
9 * config.h.in: Regenerate.
10 * configure: Regenerate.
12 2004-08-29 Steven G. Kargl <kargls@comcast.net>
13 Paul Brook <paul@codesourcery.com>
15 * Makefile.am: Add intrinsics/getXid.c.
16 * configure.ac: Add tests for get{g,p,u}id.
17 * config.h.in: Regenerate.
18 * Makefile.in: Regenerate.
19 * configure: Regenerate.
21 2004-08-28 Paul Brook <paul@codesourcery.com>
24 * libgfortran.h (rtoa): Remove prototype.
25 * runtime/error.c (rtoa): Remove.
26 * io/write.c (calculate_G_format): Don't add blanks if E format is
27 used. Add correct number of blanks when exponent width is specified.
28 (output_float): Rewrite.
30 2004-08-27 Paul Brook <paul@codesourcery.com>
32 * io/rewind.c (st_rewind): Reset unit to read mode.
34 2004-08-27 Bud Davis <bdavis9659@comcast.net>
37 * io/io.h: created typedef for unit_mode.
38 * io/io.h (gfc_unit): added mode to unit structure.
39 * io/transfer.c (data_transfer_init): flush if a write then
40 read is done on a unit (direct access files).
41 * io/rewind.c (st_rewind): Used unit mode instead of global.
43 2004-08-24 Bud Davis <bdavis9659@comcast.net>
46 * runtime/error.c (itoa): keep from overflowing during
47 mod operation by using unsigned variable.
49 2004-08-24 Bud Davis <bdavis9659@comcast.net>
52 * runtime/string_intrinsics.c (string_index):check for
53 substring longer than string.
55 2004-08-24 David Edelsohn <edelsohn@gnu.org>
57 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
58 * Makefile.in: Rebuilt.
60 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
62 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
63 Fix formatting issues, update copyright years.
65 2004-08-21 Bud Davis <bdavis9659@comcast.net>
68 * io/transfer.c (next_record_w): Do not blank pad.
69 * io/transfer.c (next_record): Take into account partial records.
71 2004-08-18 Victor Leikehman <lei@il.ibm.com>
74 * io/transfer.c (st_set_nml_var)
75 * io/write.c (namelist_write): Allow var_name and var_name_len to be
76 null. For strings, use string_length field instead of len.
77 * io/io.h (struct namelist_type): New field string_length.
78 (st_set_nml_var_char): New argument string_length.
80 2004-08-13 Bud Davis <bdavis9659@comcast.net>
83 * io/open.c (st_open): use flags instead of the unit structure.
85 2004-08-10 Victor Leikehman <lei@il.ibm.com>
87 * io/list_read.c (namelist_read): Convert variable names
88 to lower case, so that mixed-case names are recognized.
89 Don't read beyond terminating slash.
91 2004-08-09 Richard Henderson <rth@redhat.com>
92 Roger Sayle <roger@eyesopen.com>
94 * intrinsics/c99_functions.c (nextafterf): New implementation that
95 works correctly with denormalized numbers.
97 2004-08-09 Victor Leikehman <lei@il.ibm.com>
99 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
100 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
101 Allocate space if return value has NULL in its data field.
102 * generated/*.c: Regenerate.
104 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
106 * intrinsics/env.c: New file.
107 * Makefile.am: Add env.c to build.
108 * Makefile.in: Regenerate.
110 2004-08-05 Victor Leikehman <lei@il.ibm.com>
113 * io/read.c (read_radix): Understand letters f and F as hex digits.
115 2004-08-04 Victor Leikehman <lei@il.ibm.com>
117 * libgfortran.h (array_t, size0) New declarations.
118 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
119 space if return value descriptor has NULL in its data field,
120 and initialize bounds and stride.
121 * intrinsics/size.c (array_t, size0): Declarations moved to
123 * generated/*.c: Regenerate.
125 2004-08-03 Roger Sayle <roger@eyesopen.com>
128 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
129 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
130 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
131 * config.h.in: Regenerate.
132 * configure: Regenerate.
134 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
135 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
136 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
137 implementations for targets that don't support C99 float functions.
139 2004-08-01 Roger Sayle <roger@eyesopen.com>
141 * io/write.c (write_float): Use the slightly more portable isnan
142 in preference to isinf.
144 2004-07-18 Bud Davis <bdavis9659@comcast.net>
146 * configure.ac: Add check for LFS support.
147 * configure: Regenerate
149 2004-07-11 Paul Brook <paul@codesourcery.com>
152 * m4/cexp.m4 (carg): Return -pi to pi.
153 * generated/exp_c?.c: Regenerate.
155 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
158 * libgfortran/io/write.c: (write_float): Added length check.
159 Remove pointless memset calls.
161 2004-07-04 Bud Davis <bdavis9659@comcast.net>
162 Paul Brook <paul@codesourcery.com>
165 * io/transfer.c(us_write): set recl for seq unform writes to max size.
166 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
167 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
169 * io/unix.c(is_seekable): set based upon the file/device, not the
170 method being used to access it (fd or mmap).
171 * io/unix.c(fd_flush): don't set file_size if !seekable.
172 * io/unix.c(fd_truncate: ditto.
174 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
175 Paul Brook <paul@codesourcery.com>
179 * libgfortran.h (gfc_strlen_type): Define.
180 * intrinsics/args.c (getarg): Rename ...
181 (getarg_i4): ... to this.
182 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
183 get_command_i4, get_command_i8): New functions.
185 2004-07-04 Matthias Klose <doko@debian.org>
187 * libtool-version: New.
188 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
189 * Makefile.in: Regenerate.
190 * configure.ac: Remove libtool_VERSION macro
191 * configure: Regenerate
193 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
194 Steven Bosscher <stevenb@suse.de>
196 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
199 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
200 Paul Brook <paul@codesourcery.com>
202 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
204 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
206 2004-06-27 Bud Davis <bdavis9659@comcast.net>
209 * io/write.c (write_float): check signbit for Infinity.
211 2004-06-26 Bud Davis <bdavis9659@comcast.net>
214 * unix.c(regular_file): create file if it does not exist.
216 2004-06-24 Andrew Pinski <apinski@apple.com>
218 * configure.ac: Remove check for libmx.
219 * configure: Regenerate.
221 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
224 * inquire.c (st_inquire): Add comment
225 * io.h (st_parameter): Add iolength.
226 (st_iolength, st_iolength_done): Declare.
227 * transfer.c (iolength_transfer, iolength_transfer_init,
228 st_iolength, st_iolength_done): New functions.
230 2004-06-21 Steven G. Kargl <kargls@comcast.net>
232 * etime.c (etime_sub): Remove array rank check;
233 Add check for sufficient space.
235 2004-06-19 Bud Davis <bdavis9659@comcast.net>
238 * io/list_read.c(set_value): fixed spelling.
240 2004-06-19 Bud Davis <bdavis9659@comcast.net>
243 * io/list_read.c(set_value): don't copy if the string is null.
245 2004-06-14 Bud Davis <bdavis9659@comcast.net>
248 * intrinsics/c99_functions.c: Use fpclassify if it exists.
250 2004-06-13 Paul Brook <paul@codesourcery.com>
252 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
253 * configure.ac: Add checks for nextafter and nextafterf.
254 * Makefile.in, config.h.in, configure: Regenerate.
255 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
256 * intrinsics/rand.c (rand): Use normalize_r4_i4.
257 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
258 (random_r8): Use normalize_r8_i8.
259 * runtime/normalize.c: New file.
261 2004-06-13 Steven G. Kargl <kargls@comcast.net>
262 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
264 * random.c: Fix several spelling and formatting mistakes in
266 (random_r8): Fix loop to make random numbers range in [0,1(.
269 2004-06-13 Steven G. Kargl <kargls@comcast.net>
271 * random.c (random_r4): Burn a random number.
272 (random_r8): fix infinite loop.
274 2004-06-12 Bud Davis <bdavis9659@comcast.net>
275 Steve Kargl <sgk@troutmask.apl.washington.edu>
278 * intrinsics/c99_functions.c: New file.
279 * Makefile.am: Add new file.
280 * configure.ac: Added test for round/roundf.
281 * Makefile.in: Regenerate.
282 * configure: Regenerate.
283 * configure.h.in: Regenerate.
285 2004-06-12 Steven G. Kargl <kargls@comcast.net>
287 * Makefile.am: Add rand.c and etime.c
288 * Makefile.in: Regenerated.
289 * aclocal.in: Regenerated.
290 * cpu_time.c (second_sub, second): New functions.
291 * rand.c (irand, rand, srand): New file.
292 * etime.c (etime_sub, etime): New file.
294 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
295 Steven Bosscher <stevenb@suse.de>
298 * intrinsics/date_and_time.c: New file.
299 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
300 * Makefile.in, aclocal.m4: Regenerate.
301 * libgfortran.h: Prototype date_and_time().
303 2004-06-12 Bud Davis <bdavis9659@comcast.net>
306 * intrinsics/args.c: Implement GETARG and IARGC.
307 * Makefile.am: Add it.
308 * Makefile.in: Regenerate.
310 2004-06-12 Bud Davis <bdavis9659@comcast.net>
313 * io/write.c(write_float): Format inf and nan IAW F2003.
315 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
318 * io/transfer.c (formatted_transfer): position is unique
319 for T and TL edit descriptors.
320 (data_transfer_init): set record length to size of internal
323 2004-06-09 Bud Davis <bdavis9659@comcast.net>
326 * io/backspace.c(st_backspace): call correct routine for
327 formatted and un-formatted units.
329 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
332 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
333 (lib_LTLIBRARIES): Rename to ...
334 (toolexeclib_LTLIBRARIES): this for multilib support.
335 * configure.in: Rename to ...
336 * configure.ac: this. Update to modern autoconf style, enable
337 multilibs, support --enable-version-specific-runtime-libs.
338 * Makefile.in: Regenerated.
339 * configure: Regenerated.
340 * aclocal.m4: Regenerated.
342 2004-05-30 Steven G. Kargl <kargls@comcast.net>
344 * libgfortran.h (random_seed): Update prototype.
345 * intrinsics/random.c: Disable old implementation and add new one.
347 2004-05-30 Andreas Jaeger <aj@suse.de>
349 * intrinsics/random.c: Include unistd.h for close and read
350 prototypes, remove unneeded inclusion of assert.h.
352 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
353 unneeded inclusion of assert.h.
355 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
358 * intrinsics/associated.c: Remove enum.
359 (associated): Replace TRUE/FALSE by 1/0.
361 2004-05-23 Steven G. Kargl <kargls@comcast.net>
363 * random.c (random_seed): Use correct variable.
365 2004-05-22 Steven G. Kargl <kargls@comcast.net>
367 * intrinsics/system_clock: New file.
368 * Makefile.am: Add intrinsics/system_clock.c.
369 * Makefile.in: Regenerate.
371 2004-05-21 Roger Sayle <roger@eyesopen.com>
373 * io/format.c (parse_format_list): Allow the comma after a string
374 literal to be optional.
376 2004-05-18 Paul Brook <paul@codesourcery.com>
377 Feng Wang <fengwang@nudt.edu.cn>
379 * Makefile.am (i_pow_c): Set it. Add build rule.
380 (gfor_built_src): Use it.
381 (m4_files): add m4/pow.m4.
382 * Makefile.in: Regenerate.
383 * m4/pow.m4: New file.
384 * generated/pow_*.c: Regenerate.
386 2004-05-18 Paul Brook <paul@codesourcery.com>
388 * Makefile.am: Remove references to types.m4.
389 * m4/iparm.m4: Merge with types.m4.
390 * m4/types.m4: Remove.
391 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
392 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
393 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
394 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
395 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
396 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
397 Update to use new iparm.m4.
398 * generated/*.c: Regenerate.
400 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
403 * gfortran.h (offset_t): Rename to ...
404 (gfc_offset): ... this.
405 * io/backspace.c (formatted_backspace, unformatted_backspace),
406 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
407 transfer.c (us_read, us_write, next_record_r, next_record_w),
408 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
409 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
410 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
411 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
412 occurences of offset_t by gfc_offset.
414 2004-05-16 Paul Brook <paul@codesourcery.com>
416 * io/format.c (write_real): Don't include padding in format.
418 2004-05-16 Paul Brook <paul@codesourcery.com>
420 * io/format.c (format_lex): Make c an int.
422 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
423 Paul Brook <paul@codesourcery.com>
425 * io/write.c (write_logical): Don't print extra blank.
426 (write_integer): Base field width on kind.
427 (list_formatted_write): Output initial blank.
429 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
431 * io/io.h (flush): Add prototype.
432 * io/transfer.c (finalize_transfer): Flush partial records.
433 * io/unix.c (flush): New function.
435 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
438 * io/io.h (unit_t): Rename to ...
440 (unit_root, current_unit, find_file, find_unit, get_unit): Now
442 (delete_file, insert_unit, close_unit): Argument now of type
444 * backspace.c (st_backspace), close.c (st_close), endfile.c
445 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
446 (test_endfile, edit_modes, new_unit, already_open, st_open),
447 rewind.c (st_rewind), transfer.c (current_unit), unit.c
448 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
449 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
450 get_unit, init_units, close_unit), unix.c (find_file0,
451 find_file, delete_file): Replace all occurences of unit_t by
454 2004-05-15 Bud Davis <bdavis9659@comcast.net>
457 * io/write.c (write_a): right justify A edit output.
459 2004-05-14 Bud Davis <bdavis9659@comcast.net>
462 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
463 * runtime/main.c(init): Call random_seed as part of MAIN init.
465 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
467 * io/format.c: (parse_format_list): No comma is required after
470 2004-05-13 Bud Davis <bdavis9659@comcast.net>
473 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
475 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
476 Steven Bosscher <stevenb@suse.de>
479 * libgfortran.h: Include <inttypes.h> if available.
481 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
483 * io/unix.c (MAP_FAILED): Define if missing.
484 (mmap_alloc): Cast MAP_FAILED to char *.
485 (mmap_open): Likewise.
487 2004-04-26 Bud Davis <bdavis9659@comcast.net>
489 * generated/_abs_i8.f90: New file.
490 * generated/_abs_c4.f90: New file.
491 * generated/_abs_c8.f90: New file.
492 * Makefile.am: Add them.
493 * Makefile.in: Regenerate.
495 2004-04-26 Bud Davis <bdavis9659@comcast.net>
498 * generated/_abs_i4.f90: New file.
499 * Makefile.am: Add it.
500 * Makefile.in: Regenerate.
502 2004-04-25 Bud Davis <bdavis9659@comcast.net>
505 * io/list_read.c(list_formatted_read): finish consuming the
506 spaces and seperators at eoln to get ready for next item.
508 2004-04-23 Bud Davis <bdavis9659@comcast.net>
511 * io/read.c(read_a): Handle field width > destination and no field width.
513 2004-04-22 Bud Davis <bdavis9659@comcast.net>
516 * io/format.c (format_item): gracefully handle a ')'
517 when it is the first character encountered in the string.
519 2004-04-11 Bud Davis <bdavis9659@comcast.net>
522 * io/transfer.c (next_record): Update last_record when
523 more than one record is written to a direct access file
524 with one write statement.
526 2004-04-11 Bud Davis <bdavis9659@comcast.net>
529 * io/transfer.c (next_record_w) : No '\n' if internal.
530 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
532 2004-04-11 Bud Davis <bdavis9659@comcast.net>
534 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
535 Will need to change this later to support direct access files > 2gb.
537 2004-04-03 Bud Davis <bdavis9659@comcast.net>
540 * io/transfer.c (next_record_r) : Skip to next record.
542 2004-04-03 Bud Davis <bdavis9659@comcast.net>
545 * io/transfer.c (next_record): Update last_record for DIRECT
547 2004-04-03 Bud Davis <bdavis9659@comcast.net>
550 * io/unix.c (find_file0): Use fd field of struct
552 2004-04-03 Bud Davis <bdavis9659@comcast.net>
555 * io/inquire.c (inquire_via_unit): Changed return string for
556 BLANK=NULL. Use correct variable for ACTION.
558 2004-04-01 Bud Davis <bdavis9659@comcast.net>
561 * io/read.c (read_f): Allow a decimal without a leading digit.
562 * io/write.c (output_float): remove a leading '0' to keep from
563 overflowing the field (F edit descriptor).
565 2004-04-01 Bud Davis <bdavis9659@comcast.net>
568 * io/open.c (new_unit),
569 * io/io.h : new_unit is now visible
570 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
571 * io/transfer.c (data_transfer_init): remove compile warnings.
572 * io/rewind.c (st_rewind): ftruncate if writing.
574 2004-03-24 Bud Davis <bdavis9659@comcast.net>
576 * write.c (write_l): Use extract_int for 'L' edit descriptor.
578 2004-03-24 Bud Davis <bdavis9659@comcast.net>
581 * io/io.h (global_t):
582 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
583 Move eof_jmp to a global structure.
584 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
586 2004-03-24 Bud Davis <bdavis9659@comcast.net>
588 * m4/cexp.m4 (csqrt): Actually use the passed value.
589 * generated/exp_c?.c: Regenerate.
591 2004-03-24 Bud Davis <bdavis9659@comcast.net>
594 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
595 * open.c (new_unit): Moved test for positioned direct access error.
596 (init_units): Corrected calculation of max records.
598 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
600 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
601 * Makefile.in: Regenerate.
602 * m4/dotprodc.m4: New file. Implement complex dot_product.
603 * m4/dotprod.m4: Delete the complex implementation.
604 * generated/dotprod_*: Update.
606 2004-02-07 Bud Davis <bdavis9659@comcast.net>
608 * transfer.c (write_constant_string): Do not delete H's in hollerith
611 2004-01-05 Andrew Pinski <apinski@apple.com>
613 * configure.in: Check for csin in -lmx also.
614 * configure: Regenerate.
616 2004-01-01 Paul Brook <paul@codesourcery.com>
618 * io/list_read.c (find_nml_node): Make static.
619 (match_namelist_name): Ditto.
620 * io/read.c (convert_precision_real): Make static, fix spelling.
621 * io/transfer.c (extract_real): Remove unused prototype.
622 (st_set_nml_var): Make static.
623 * io/write.c (extract_real): Make static.
625 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
627 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
629 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
631 * io/transfer.c (data_transfer_init): Give a runtime error for list
632 formatted reads and writes from/to files opened for unformatted IO.
634 2003-11-30 Paul Brook <paul@nowt.org>
636 * runtime/memory.c (push_context): Remove.
637 (pop_context): Remove.
638 * libgfortran.h: Remove prototypes.
640 2003-11-27 Paul Brook <paul@nowt.org>
642 * runtime/memory.c (deallocate): Nullify pointer after freeing.
644 2003-11-27 Paul Brook <paul@nowt.org>
646 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
647 * libgfortran.h: Ditto.
648 * m4/in_pack.m4: Ditto.
649 * runtime/in_pack_generic.c: Ditto.
650 * runtime/memory.c: Ditto.
652 2003-11-26 Richard Henderson <rth@redhat.com>
654 * m4/exponent.m4, m4/fraction.m4: New.
655 * m4/nearest.m4, m4/set_exponent.m4: New.
656 * generated/*: Update.
657 * Makefile.am: Add them.
658 (AM_CFLAGS): New. Use -std=gnu99.
659 * Makefile.in: Regenerate.
661 2003-11-08 Paul Brook <paul@nowt.org>
664 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
665 * m4/maxloc1.m4: Ditto.
666 * m4/minloc0.m4: Ditto.
667 * m4/minloc1.m4: Ditto.
668 * m4/ifunction.m4: Set return value for zero sized arrays.
669 * m4/iforeach.m4: Ditto.
670 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
671 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
672 * generated/*: Update.
674 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
677 * io/list_read.c (eat_spaces): Treat tab as space.
679 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
681 * intrinsics/random.c: Add reference to paper containing algorithm.
682 (random_seed): Extra error checking and proper handling of arrays.
683 (arandom_r4, arandom_r8): Implement.
685 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
688 * runtime/memory.c (allocate_size): Allow allocation
689 of zero-sized objects.
691 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
694 * open.c (new_unit): Open without a file name opens
695 a file with name fort.<unit>.
697 2003-10-12 Feng Wang <wf_cs@yahoo.com>
699 * intrinsics/cshift0.c: New file.
700 * m4/cshift1.m4: New file
701 * generated/cshift*.c: New files.
702 * Makefile.am: Add them.
703 * Makefile.in: Regenerate.
705 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
707 * io/list_read.c (read_character): Remove unwanted call to free_saved.
709 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
711 * intrinsics/string_intrinsics.c (string_trim): New function.
712 (string_repeat): New function.
714 2003-10-11 Paul Brook <paul@nowt.org>
716 * intrinsics/dprod_r8.f90: New file.
717 * Makefile.am (gfor_specific_src): Add it.
718 (gfor_built_specific_src): Rename from gfor_build_specific_c.
720 (gfor_specific2_src): Rename from gfor_built_specific2_c.
722 * Makefile.in: Regenerate.
723 * generated/_aint_*.f90: New files.
724 * generated/_anint*.f90: New files.
725 * generated/_atan2*.f90: New files.
726 * generated/_mod*.f90: New files.
728 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
730 * intrinsics/selected_kind.f90: New file.
731 * Makefile.am: Add it.
732 * Makefile.in: regenerate.
734 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
735 Paul Brook <paul@nowt.org>
737 * intrinsics/random.c: New file.
738 * Makefile.am (gfor_hemper_src): Add it.
739 (gfor_specific_c): Fix typo.
741 2003-09-19 Paul Brook <paul@nowt.org>
743 * All: rename g95->gfc.
745 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
747 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
749 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
751 * io/write.c (write_float): Dectection of positive infinite number,
752 Not a Number(NaN) and negative infinite number.
753 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
754 output a very_very small number ( < 0.1e-100 ).
756 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
758 * libgfortran.h (xtoa, itoa): Parameter modified.
759 * io/io.h (namelist_info): Declaration to support namelist I/O
760 (st_parameter): Add namelist related component
761 (ionml, empty_internal_buffer, st_set_nml_var_int,
762 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
763 st_set_nml_var_log): Declaration
764 (set_integer, set_integer): Parameter changed
765 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
767 (parse_format_list): Fix bug about FMT_SLASH
768 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
769 newly allocated saved_string
770 (next_char): Add detection of End_Of_Line support
771 (convert_integer): Now can process 64 bits interger
772 (read_real): Bug fixed
773 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
774 (match_namelist_name): New implemention
775 * io/lock.c (ionml): New global variable
776 (library_end): Free memory in ionml
777 * io/open.c (st_open): Variable initializtion
778 * io/read.c (max_value): 64 bits interger support
779 (convert_precsion_real): New procedure to replace "strtod" with more
781 (read_f, read_radix): Input bug fix
782 * io/transfer.c: (sf_seen_eor): New static variable
783 (read_sf): Zeroize base buffer; fix bugs: single read statement can
784 not get input in mutli line when read from stdin
785 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
787 (data_transfer_init): Clear internal buffer for Internel File I/O.
788 Internal File now worked. Detect some error condition for namelist.
790 (next_record_w): Internal file and Namelist I/O support.
791 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
792 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
793 * io/unit.c (implicit_unit): Deletion
794 (get_unit): Now cannot open a unit implicitly.
795 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
797 (mem_alloc_r_at): Internal file I/O support added
798 (empty_internal_buffer): New function
799 * io/write.c (extract_int): Support 64 bits interger processing
800 (output_float): Varibale initialization
801 (write_float): Infinite real number detection.
802 (write_int): 64 bits integer I/O support
803 (write_decimal): New function to output decimal number
804 (otoa, btoa): Better implemention and 64 bits interger support
805 (namelist_write): New function
806 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
809 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
811 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
812 get_mem ): Add attribute.
813 * intrinsics/spread_generic.c (__spread): Fix spelling.
814 * io/inquire.c (inquire_via_filename): Add const.
815 * io/io.h (sys_exit): Add attribute.
816 * io/io.h (move_pos_offset): Add move_pos_offset.
817 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
818 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
819 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
820 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
822 * io/read.c (convert_real): Add const.
823 * io/transfer.c (type_name): Add const.
824 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
825 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
826 inquire_read, inquire_write, inquire_readwrite): Add const.
827 * io/write.c (output_float): Remove unused variable.
828 * io/write.c (write_a, extract_int, extract_real, output_float,
829 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
830 write_e, write_f, write_en, write_es, write_logical, write_integer,
831 write_character, write_real, write_complex): Add const.
832 * runtime/error.c (rtoa): Remove unused variable.
833 * runtime/select.c (select_string): Add const.
834 * runtime/stop.c (stop_string): Add const.
836 2003-08-10 Paul Brook <paul@nowt.org>
838 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
839 (FFLAGS): Add -fno-underscoring.
840 * Makefile.in: Regenerate.
841 * intrinsics/abort.c: New file.
843 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
845 * fmain.c (main): Do not call init and cleanup; call set_args instead.
846 * libgfortran.h (init, cleanup): Remove declarations.
847 (set_args): Add declaration.
848 * runtime/main.c (init, cleanup): Make them static, and give them
849 the constructor and destructor attributes.
850 (set_args): New function.
852 2003-08-10 Paul Brook <paul@nowt.org>
854 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
855 on which string is longest.
857 2003-08-10 Paul Brook <paul@nowt.org>
859 * Makefile.am (EXTRA_DIST): Remove old files.
860 * Makefile.in: Regenerate.
862 2003-07-26 Paul Brook <paul@nowt.org>
864 Rename library to libgfortran.
865 * libgfortran.h: Change prefix to _libgfortran_.
867 2003-07-24 Paul Brook <paul@nowt.org>
869 * configure.in: Don't pull in system libtool. Use toplevel
872 2003-07-22 Paul Brook <paul@nowt.org>
874 Regenerate all configury files.
876 2003-07-09 Chun Huang <compiler@sohu.com>
878 * intrinsics/string_intrinsic.c (string_scan): New function.
879 (string_verify): New function.
881 2003-06-25 Paul Brook <paul@nowt.org>
883 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
884 (mem_seek): Don't bother setting physical_offset.
886 2003-06-20 Paul Brook <paul@nowt.org>
888 * libgfor.h (stop_numeric): Declare.
889 * runtime/pause.c: New file.
890 * Makefile.am: Add it.
892 2003-06-08 Paul Brook <paul@nowt.org>
894 * m4/cexp.m4 (cabs): Use correct typed version.
895 (csqrt): New function.
897 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
899 Spotted by Benjamin and Tobias:
900 * io/list_read.c: Add Separator '\t'.
901 (parse_real, read_real): Accept real values starting with an optional
902 sign follows a decimal point.
904 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
906 * Makefile.am: Don't put cmath objects in subdir.
907 * configure.in: Rename MATHOBJ to MATH_OBJ.
909 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
911 * intrinsics/associated.c: New file.
912 * Makefile.am: Add it. Regenerate Makefile.in.
913 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
914 G95_DESCRIPTOR_DTYPE.
916 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
918 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
919 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
920 the scale_factor to 0 for F editing.
922 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
924 * libgfor.h: Only include stdint.h if it exists.
926 2003-05-07 Paul Brook <paul@nowt.org>
928 * libgfor.h: Use stdint.h types.
929 * intrinsics/ishift.c: Ditto.
930 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
932 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
934 * libgfor.h (offsetof): Define if nobody else does.
935 * runtime/memory.c (HEADER_SIZE): Use it.
937 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
939 * configure.in: Require autoconf 2.54.
941 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
942 Paul Brook <paul@nowt.org>
944 * intrinsics/reshape_generic.c: Copy the whole element, not just the
946 * m4/transpose.m4: New file.
947 * Makefile.am: Add them.
948 Regenerate generated files.
950 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
952 * io/format.c (parse_format_list): Allow 'X' without integer
953 prefix. This is an extension. Interpretation is '1X'.
955 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
957 * io/format.c (parse_format_list): Allow '0P'.
959 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
961 * Makefile.in: Re-regenerate for automake 1.7.3.
963 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
965 Port implementation for CHARACTER SELECT from Andy's tree.
966 * runtime/select.c: New file
967 * Makefile.am: Add it.
968 * Makefile.in: Regenerate.
970 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
972 * io/transfer.c (formatted_transfer): Modified
973 * io/unix.c (move_pos_offset): New Function.
974 * io/format.c (parse_format_list): Modified.
976 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
978 * io/write.c (write_float,write_real): New implemention of
979 FMT_G and default float editing.
980 (calculate_exp,calculate_G_format,output_float): New Function.
981 (write_float,write_real,write_logical): Modified
982 * libgfor.h (default_rtoa): Remove Declaration.
983 * runtime/error.c (default_rtoa): Remove Function.
985 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
988 * io/write.c (extract_real): Add missing break statement.
990 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
992 * cpu_time.c: Make sure we have a definition of HZ. Don't
993 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
995 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
996 Paul Brook <paul@nowt.org>
998 * configure.in: Check for process time headers and GETTIMEOFDAY.
999 * makefile.am: Add intrinsics/cpu_time.c.
1000 * acinclude.m4: New file.
1001 * intrinsics/cpu_time.c: New file.
1002 * m4/dotprodl.m4: Fix typo.
1003 Regenerate generated files.
1005 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
1007 * io/write.c (extract_real): Ouput floating point value.
1008 (write_float): New Function.
1009 (write_e, write_f, write_en, write_es): Modified
1010 * io/transfer.c (formatted_transfer): Modified.
1011 * libgfor.h (default_rtoa): Declaration.
1012 (rtoa): Declaration.
1013 * runtime/error.c (default_rtoa): New Function.
1014 (rtoa): New Function.
1016 2003-04-05 Paul Brook <paul@nowt.org>
1018 * intrinsics/spread_generic.c: New file.
1019 * Makefile.am: Add it. Regenerate Makefile.in.
1021 2003-03-29 Paul Brook <paul@nowt.org>
1023 * intrinsics/pack_generic.c: New file.
1024 * intrinsics/unpack_generic.c: New file.
1025 * Makefile.am: Add them. Regenerate Makefile.in.
1027 2003-03-25 Paul Brook <paul@nowt.org>
1029 * intrinsics/eoshift0.c: New file.
1030 * intrinsics/eoshift2.c: New file.
1031 * m4/eoshift1.m4: New file.
1032 * m4/eoshift3.m4: New file.
1033 * Makefile.am: Add them.
1034 * in_unpack_generic.c: Initialize src.
1035 Regenerate generated files.
1037 2003-03-14 Paul Brook <paul@nowt.org>
1039 * m4/shape.m4: Work properly with array temporaries.
1040 * m4/in_pack.m4: Skip redundant checks for array temporaries.
1041 * runtime/in_pack_generic.c: Ditto.
1043 2003-03-12 Paul Brook <paul@nowt.org>
1045 * m4/shape.m4: Work properly with noncontiguous arrays.
1047 2003-03-08 Paul Brook <paul@nowt.org>
1049 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1050 * runtime/in_pack_generic.c: Ditto.
1052 2003-02-08 Paul Brook <paul@nowt.org>
1054 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1055 * io/close.c (st_close): Return void.
1056 * io/open.c (st_open): Return void.
1057 * libgfor.h (g95_array_char): Declare.
1058 (internal_malloc_size): Ditto.
1059 (internal_pack*, internal_unpack*): Ditto.
1060 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1062 * m4/in_unpack.m4: Include file fixes.
1063 * m4/reshape.m4: Increment the correct source pointer.
1064 * Makefile.am (maxloc): Fix typo.
1065 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1066 storage if neccessary. Fix logic for packed arrays.
1067 * runtime/in_unpack_generic.c: Call optimized functions.
1068 * runtime/main.c: Use runtime_error to report errors.
1069 * memory.c (internal_malloc_size): Make non-static.
1071 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1073 * reshape_packed.c, lock.c: Add #include <string.h>.
1074 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1075 environ.c, error.c, memory.c, string.c: Add const.
1076 * error.c (show_locus): Add void.
1078 2003-02-21 Paul Brook <paul@nowt.org>
1080 * m4/in_pack.m4: Avoid returning const * parameter.
1081 * Makefile.am: Only regenerate files in maintainer mode.
1083 2003-02-20 Paul Brook <paul@nowt.org>
1085 Add array repacking support functions.
1086 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1087 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1088 * Makefile.am: Build them. Regenerate configury files.
1089 * generated/: New directory for generated files (need to move
1090 everything else there).
1092 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1094 * m4/cexp.m4: Fix typo.
1096 2003-01-26 Paul Brook <paul@nowt.org>
1098 * intrinsics/: Add missing generated files.
1100 2003-01-26 Paul Brook <paul@nowt.org>
1102 * Makefile.am: Put -I before the filename.
1104 2003-01-24 Paul Brook <paul@nowt.org>
1106 * configure.in: Add AM_MAINTAINER_MODE.
1108 2003-01-23 Paul Brook <paul@nowt.org>
1110 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1112 Also regenerate other configury files.
1114 2003-01-21 Paul Brook <paul@nowt.org>
1116 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1118 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1120 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1121 Don't include "alloca.h".
1123 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1125 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1126 * Makefile.am: Adjust file name.
1127 * Makefile.in: Regenerate.
1128 * gfortypes.h: Kill, include everything in...
1129 * libgfor.h: ...here. Include config.h
1130 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1131 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1132 intrinsics/reshape_packed.c, intrinsics/size.c,
1133 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1134 for prefix for all functions instead of hardcoded.
1136 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1138 * io/lock.c (library_end): Propagate library return
1141 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1143 Port fixes from Andy's tree:
1144 * io/read.c (read_decimal): Reverse sense of overflow
1145 comparison during integer reads.
1146 * io/format.c (revert): Fix comment.
1147 (next_format): Fix format revision.
1148 * io/unix.c: Fix and simplify mmap version of stream
1151 2003-01-11 Paul Brook <paul@nowt.org>
1153 * configure, Makefile.in: Regenerate.
1155 2003-01-11 Paul Brook <paul@nowt.org>
1157 * runtime/stop.c: Rewrite.
1159 2003-01-08 Paul Brook <paul@nowt.org>
1161 * configure, Makefile.in: Regenerate.
1163 2003-01-05 Paul Brook <paul@nowt.org>
1165 * (*.m4) Move to m4/.
1166 * intrinsics/string.c (_gfor_string_index): New Function.
1168 2002-12-29 Paul Brook <paul@nowt.org>
1170 * intrinsics/reshape.*: New files.
1171 * gcc_config.patch: Update to new GCC configure system.
1173 2002-10-10 Paul Brook <paul@nowt.org>
1175 * intrinsics/size.c: New file.
1176 * intrinsics/shape.m4: New file.
1177 * Makefile.am: Add above files.
1179 2002-10-02 Paul Brook <paul@nowt.org>
1181 * fmain.c (main): Move here.
1182 * libgfor.c: From here.
1183 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1184 * Makefile.am: Build libgforbegin.
1185 * gcc_config.patch: Remove stray -march=athlon.
1186 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1187 * ifunction.m4: Move variable declarations to allow compilation with
1189 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1190 * README: Document use of patch -p1.
1192 2002-09-12 Paul Brook <paul@nowt.org>
1194 * math/*: Add complex math library functions.
1195 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1196 * Makefile.am: Add details for above.
1197 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1199 2002-09-09 Paul Brook <paul@nowt.org>
1201 * libgfor.c (determine_endianness): Use an array rather than a struct.
1202 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1204 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1206 * libgfor.c: Add fatal signal handler.
1207 Romove superfluous abort() calls.
1209 2002-09-07 Paul Brook <paul@nowt.org>
1211 * Makefile.am, intrinsics: Major rewrite.
1213 2002-09-02 Paul Brook <paul@nowt.org>
1215 * Makefile.am: Added -I$(srcdir) to m4 rule.
1217 2002-08-30 Paul Brook <paul@nowt.org>
1219 * io/*: Integrated libgforio.
1220 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1221 intrinsics in the intrisics directory.
1222 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1223 filename. Add 'and' and 'all' intrinsics.
1225 2002-08-17 Paul Brook <paul@nowt.org>
1227 * ALL: First release as more than just a single file