1 2004-08-31 Paul Brook <paul@codesourcery.com>
3 * libgfortran.h: Add comments.
5 2004-08-30 Richard Henderson <rth@redhat.com>
7 * Makefile.am (gfor_helper_src): Split selected_kind.f90.
8 (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
9 (selected_int_kind.inc selected_real_kind.inc): New rules.
10 * Makefile.in: Regenerate.
11 * mk-sik-inc.sh, mk-srk-inc.sh: New files.
12 * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
13 include table of detected kinds.
14 * intrinsics/selected_real_kind.f90: Similarly.
16 2004-08-29 Steven G. Kargl <kargls@comcast.net>
17 Paul Brook <paul@codesourcery.com>
19 * intrinsics/bessel.c: New file.
20 * intrinsics/erf.c: New file.
21 * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
22 * configure.ac: Test for C99 Bessel and Error functions.
23 * Makefile.in: Regenerate.
24 * config.h.in: Regenerate.
25 * configure: Regenerate.
27 2004-08-29 Steven G. Kargl <kargls@comcast.net>
28 Paul Brook <paul@codesourcery.com>
30 * Makefile.am: Add intrinsics/getXid.c.
31 * configure.ac: Add tests for get{g,p,u}id.
32 * config.h.in: Regenerate.
33 * Makefile.in: Regenerate.
34 * configure: Regenerate.
36 2004-08-28 Paul Brook <paul@codesourcery.com>
39 * libgfortran.h (rtoa): Remove prototype.
40 * runtime/error.c (rtoa): Remove.
41 * io/write.c (calculate_G_format): Don't add blanks if E format is
42 used. Add correct number of blanks when exponent width is specified.
43 (output_float): Rewrite.
45 2004-08-27 Paul Brook <paul@codesourcery.com>
47 * io/rewind.c (st_rewind): Reset unit to read mode.
49 2004-08-27 Bud Davis <bdavis9659@comcast.net>
52 * io/io.h: created typedef for unit_mode.
53 * io/io.h (gfc_unit): added mode to unit structure.
54 * io/transfer.c (data_transfer_init): flush if a write then
55 read is done on a unit (direct access files).
56 * io/rewind.c (st_rewind): Used unit mode instead of global.
58 2004-08-24 Bud Davis <bdavis9659@comcast.net>
61 * runtime/error.c (itoa): keep from overflowing during
62 mod operation by using unsigned variable.
64 2004-08-24 Bud Davis <bdavis9659@comcast.net>
67 * runtime/string_intrinsics.c (string_index):check for
68 substring longer than string.
70 2004-08-24 David Edelsohn <edelsohn@gnu.org>
72 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
73 * Makefile.in: Rebuilt.
75 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
77 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
78 Fix formatting issues, update copyright years.
80 2004-08-21 Bud Davis <bdavis9659@comcast.net>
83 * io/transfer.c (next_record_w): Do not blank pad.
84 * io/transfer.c (next_record): Take into account partial records.
86 2004-08-18 Victor Leikehman <lei@il.ibm.com>
89 * io/transfer.c (st_set_nml_var)
90 * io/write.c (namelist_write): Allow var_name and var_name_len to be
91 null. For strings, use string_length field instead of len.
92 * io/io.h (struct namelist_type): New field string_length.
93 (st_set_nml_var_char): New argument string_length.
95 2004-08-13 Bud Davis <bdavis9659@comcast.net>
98 * io/open.c (st_open): use flags instead of the unit structure.
100 2004-08-10 Victor Leikehman <lei@il.ibm.com>
102 * io/list_read.c (namelist_read): Convert variable names
103 to lower case, so that mixed-case names are recognized.
104 Don't read beyond terminating slash.
106 2004-08-09 Richard Henderson <rth@redhat.com>
107 Roger Sayle <roger@eyesopen.com>
109 * intrinsics/c99_functions.c (nextafterf): New implementation that
110 works correctly with denormalized numbers.
112 2004-08-09 Victor Leikehman <lei@il.ibm.com>
114 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
115 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
116 Allocate space if return value has NULL in its data field.
117 * generated/*.c: Regenerate.
119 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
121 * intrinsics/env.c: New file.
122 * Makefile.am: Add env.c to build.
123 * Makefile.in: Regenerate.
125 2004-08-05 Victor Leikehman <lei@il.ibm.com>
128 * io/read.c (read_radix): Understand letters f and F as hex digits.
130 2004-08-04 Victor Leikehman <lei@il.ibm.com>
132 * libgfortran.h (array_t, size0) New declarations.
133 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
134 space if return value descriptor has NULL in its data field,
135 and initialize bounds and stride.
136 * intrinsics/size.c (array_t, size0): Declarations moved to
138 * generated/*.c: Regenerate.
140 2004-08-03 Roger Sayle <roger@eyesopen.com>
143 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
144 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
145 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
146 * config.h.in: Regenerate.
147 * configure: Regenerate.
149 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
150 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
151 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
152 implementations for targets that don't support C99 float functions.
154 2004-08-01 Roger Sayle <roger@eyesopen.com>
156 * io/write.c (write_float): Use the slightly more portable isnan
157 in preference to isinf.
159 2004-07-18 Bud Davis <bdavis9659@comcast.net>
161 * configure.ac: Add check for LFS support.
162 * configure: Regenerate
164 2004-07-11 Paul Brook <paul@codesourcery.com>
167 * m4/cexp.m4 (carg): Return -pi to pi.
168 * generated/exp_c?.c: Regenerate.
170 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
173 * libgfortran/io/write.c: (write_float): Added length check.
174 Remove pointless memset calls.
176 2004-07-04 Bud Davis <bdavis9659@comcast.net>
177 Paul Brook <paul@codesourcery.com>
180 * io/transfer.c(us_write): set recl for seq unform writes to max size.
181 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
182 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
184 * io/unix.c(is_seekable): set based upon the file/device, not the
185 method being used to access it (fd or mmap).
186 * io/unix.c(fd_flush): don't set file_size if !seekable.
187 * io/unix.c(fd_truncate: ditto.
189 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
190 Paul Brook <paul@codesourcery.com>
194 * libgfortran.h (gfc_strlen_type): Define.
195 * intrinsics/args.c (getarg): Rename ...
196 (getarg_i4): ... to this.
197 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
198 get_command_i4, get_command_i8): New functions.
200 2004-07-04 Matthias Klose <doko@debian.org>
202 * libtool-version: New.
203 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
204 * Makefile.in: Regenerate.
205 * configure.ac: Remove libtool_VERSION macro
206 * configure: Regenerate
208 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
209 Steven Bosscher <stevenb@suse.de>
211 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
214 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
215 Paul Brook <paul@codesourcery.com>
217 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
219 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
221 2004-06-27 Bud Davis <bdavis9659@comcast.net>
224 * io/write.c (write_float): check signbit for Infinity.
226 2004-06-26 Bud Davis <bdavis9659@comcast.net>
229 * unix.c(regular_file): create file if it does not exist.
231 2004-06-24 Andrew Pinski <apinski@apple.com>
233 * configure.ac: Remove check for libmx.
234 * configure: Regenerate.
236 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
239 * inquire.c (st_inquire): Add comment
240 * io.h (st_parameter): Add iolength.
241 (st_iolength, st_iolength_done): Declare.
242 * transfer.c (iolength_transfer, iolength_transfer_init,
243 st_iolength, st_iolength_done): New functions.
245 2004-06-21 Steven G. Kargl <kargls@comcast.net>
247 * etime.c (etime_sub): Remove array rank check;
248 Add check for sufficient space.
250 2004-06-19 Bud Davis <bdavis9659@comcast.net>
253 * io/list_read.c(set_value): fixed spelling.
255 2004-06-19 Bud Davis <bdavis9659@comcast.net>
258 * io/list_read.c(set_value): don't copy if the string is null.
260 2004-06-14 Bud Davis <bdavis9659@comcast.net>
263 * intrinsics/c99_functions.c: Use fpclassify if it exists.
265 2004-06-13 Paul Brook <paul@codesourcery.com>
267 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
268 * configure.ac: Add checks for nextafter and nextafterf.
269 * Makefile.in, config.h.in, configure: Regenerate.
270 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
271 * intrinsics/rand.c (rand): Use normalize_r4_i4.
272 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
273 (random_r8): Use normalize_r8_i8.
274 * runtime/normalize.c: New file.
276 2004-06-13 Steven G. Kargl <kargls@comcast.net>
277 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
279 * random.c: Fix several spelling and formatting mistakes in
281 (random_r8): Fix loop to make random numbers range in [0,1(.
284 2004-06-13 Steven G. Kargl <kargls@comcast.net>
286 * random.c (random_r4): Burn a random number.
287 (random_r8): fix infinite loop.
289 2004-06-12 Bud Davis <bdavis9659@comcast.net>
290 Steve Kargl <sgk@troutmask.apl.washington.edu>
293 * intrinsics/c99_functions.c: New file.
294 * Makefile.am: Add new file.
295 * configure.ac: Added test for round/roundf.
296 * Makefile.in: Regenerate.
297 * configure: Regenerate.
298 * configure.h.in: Regenerate.
300 2004-06-12 Steven G. Kargl <kargls@comcast.net>
302 * Makefile.am: Add rand.c and etime.c
303 * Makefile.in: Regenerated.
304 * aclocal.in: Regenerated.
305 * cpu_time.c (second_sub, second): New functions.
306 * rand.c (irand, rand, srand): New file.
307 * etime.c (etime_sub, etime): New file.
309 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
310 Steven Bosscher <stevenb@suse.de>
313 * intrinsics/date_and_time.c: New file.
314 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
315 * Makefile.in, aclocal.m4: Regenerate.
316 * libgfortran.h: Prototype date_and_time().
318 2004-06-12 Bud Davis <bdavis9659@comcast.net>
321 * intrinsics/args.c: Implement GETARG and IARGC.
322 * Makefile.am: Add it.
323 * Makefile.in: Regenerate.
325 2004-06-12 Bud Davis <bdavis9659@comcast.net>
328 * io/write.c(write_float): Format inf and nan IAW F2003.
330 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
333 * io/transfer.c (formatted_transfer): position is unique
334 for T and TL edit descriptors.
335 (data_transfer_init): set record length to size of internal
338 2004-06-09 Bud Davis <bdavis9659@comcast.net>
341 * io/backspace.c(st_backspace): call correct routine for
342 formatted and un-formatted units.
344 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
347 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
348 (lib_LTLIBRARIES): Rename to ...
349 (toolexeclib_LTLIBRARIES): this for multilib support.
350 * configure.in: Rename to ...
351 * configure.ac: this. Update to modern autoconf style, enable
352 multilibs, support --enable-version-specific-runtime-libs.
353 * Makefile.in: Regenerated.
354 * configure: Regenerated.
355 * aclocal.m4: Regenerated.
357 2004-05-30 Steven G. Kargl <kargls@comcast.net>
359 * libgfortran.h (random_seed): Update prototype.
360 * intrinsics/random.c: Disable old implementation and add new one.
362 2004-05-30 Andreas Jaeger <aj@suse.de>
364 * intrinsics/random.c: Include unistd.h for close and read
365 prototypes, remove unneeded inclusion of assert.h.
367 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
368 unneeded inclusion of assert.h.
370 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
373 * intrinsics/associated.c: Remove enum.
374 (associated): Replace TRUE/FALSE by 1/0.
376 2004-05-23 Steven G. Kargl <kargls@comcast.net>
378 * random.c (random_seed): Use correct variable.
380 2004-05-22 Steven G. Kargl <kargls@comcast.net>
382 * intrinsics/system_clock: New file.
383 * Makefile.am: Add intrinsics/system_clock.c.
384 * Makefile.in: Regenerate.
386 2004-05-21 Roger Sayle <roger@eyesopen.com>
388 * io/format.c (parse_format_list): Allow the comma after a string
389 literal to be optional.
391 2004-05-18 Paul Brook <paul@codesourcery.com>
392 Feng Wang <fengwang@nudt.edu.cn>
394 * Makefile.am (i_pow_c): Set it. Add build rule.
395 (gfor_built_src): Use it.
396 (m4_files): add m4/pow.m4.
397 * Makefile.in: Regenerate.
398 * m4/pow.m4: New file.
399 * generated/pow_*.c: Regenerate.
401 2004-05-18 Paul Brook <paul@codesourcery.com>
403 * Makefile.am: Remove references to types.m4.
404 * m4/iparm.m4: Merge with types.m4.
405 * m4/types.m4: Remove.
406 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
407 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
408 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
409 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
410 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
411 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
412 Update to use new iparm.m4.
413 * generated/*.c: Regenerate.
415 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
418 * gfortran.h (offset_t): Rename to ...
419 (gfc_offset): ... this.
420 * io/backspace.c (formatted_backspace, unformatted_backspace),
421 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
422 transfer.c (us_read, us_write, next_record_r, next_record_w),
423 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
424 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
425 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
426 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
427 occurences of offset_t by gfc_offset.
429 2004-05-16 Paul Brook <paul@codesourcery.com>
431 * io/format.c (write_real): Don't include padding in format.
433 2004-05-16 Paul Brook <paul@codesourcery.com>
435 * io/format.c (format_lex): Make c an int.
437 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
438 Paul Brook <paul@codesourcery.com>
440 * io/write.c (write_logical): Don't print extra blank.
441 (write_integer): Base field width on kind.
442 (list_formatted_write): Output initial blank.
444 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
446 * io/io.h (flush): Add prototype.
447 * io/transfer.c (finalize_transfer): Flush partial records.
448 * io/unix.c (flush): New function.
450 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
453 * io/io.h (unit_t): Rename to ...
455 (unit_root, current_unit, find_file, find_unit, get_unit): Now
457 (delete_file, insert_unit, close_unit): Argument now of type
459 * backspace.c (st_backspace), close.c (st_close), endfile.c
460 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
461 (test_endfile, edit_modes, new_unit, already_open, st_open),
462 rewind.c (st_rewind), transfer.c (current_unit), unit.c
463 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
464 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
465 get_unit, init_units, close_unit), unix.c (find_file0,
466 find_file, delete_file): Replace all occurences of unit_t by
469 2004-05-15 Bud Davis <bdavis9659@comcast.net>
472 * io/write.c (write_a): right justify A edit output.
474 2004-05-14 Bud Davis <bdavis9659@comcast.net>
477 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
478 * runtime/main.c(init): Call random_seed as part of MAIN init.
480 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
482 * io/format.c: (parse_format_list): No comma is required after
485 2004-05-13 Bud Davis <bdavis9659@comcast.net>
488 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
490 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
491 Steven Bosscher <stevenb@suse.de>
494 * libgfortran.h: Include <inttypes.h> if available.
496 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
498 * io/unix.c (MAP_FAILED): Define if missing.
499 (mmap_alloc): Cast MAP_FAILED to char *.
500 (mmap_open): Likewise.
502 2004-04-26 Bud Davis <bdavis9659@comcast.net>
504 * generated/_abs_i8.f90: New file.
505 * generated/_abs_c4.f90: New file.
506 * generated/_abs_c8.f90: New file.
507 * Makefile.am: Add them.
508 * Makefile.in: Regenerate.
510 2004-04-26 Bud Davis <bdavis9659@comcast.net>
513 * generated/_abs_i4.f90: New file.
514 * Makefile.am: Add it.
515 * Makefile.in: Regenerate.
517 2004-04-25 Bud Davis <bdavis9659@comcast.net>
520 * io/list_read.c(list_formatted_read): finish consuming the
521 spaces and seperators at eoln to get ready for next item.
523 2004-04-23 Bud Davis <bdavis9659@comcast.net>
526 * io/read.c(read_a): Handle field width > destination and no field width.
528 2004-04-22 Bud Davis <bdavis9659@comcast.net>
531 * io/format.c (format_item): gracefully handle a ')'
532 when it is the first character encountered in the string.
534 2004-04-11 Bud Davis <bdavis9659@comcast.net>
537 * io/transfer.c (next_record): Update last_record when
538 more than one record is written to a direct access file
539 with one write statement.
541 2004-04-11 Bud Davis <bdavis9659@comcast.net>
544 * io/transfer.c (next_record_w) : No '\n' if internal.
545 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
547 2004-04-11 Bud Davis <bdavis9659@comcast.net>
549 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
550 Will need to change this later to support direct access files > 2gb.
552 2004-04-03 Bud Davis <bdavis9659@comcast.net>
555 * io/transfer.c (next_record_r) : Skip to next record.
557 2004-04-03 Bud Davis <bdavis9659@comcast.net>
560 * io/transfer.c (next_record): Update last_record for DIRECT
562 2004-04-03 Bud Davis <bdavis9659@comcast.net>
565 * io/unix.c (find_file0): Use fd field of struct
567 2004-04-03 Bud Davis <bdavis9659@comcast.net>
570 * io/inquire.c (inquire_via_unit): Changed return string for
571 BLANK=NULL. Use correct variable for ACTION.
573 2004-04-01 Bud Davis <bdavis9659@comcast.net>
576 * io/read.c (read_f): Allow a decimal without a leading digit.
577 * io/write.c (output_float): remove a leading '0' to keep from
578 overflowing the field (F edit descriptor).
580 2004-04-01 Bud Davis <bdavis9659@comcast.net>
583 * io/open.c (new_unit),
584 * io/io.h : new_unit is now visible
585 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
586 * io/transfer.c (data_transfer_init): remove compile warnings.
587 * io/rewind.c (st_rewind): ftruncate if writing.
589 2004-03-24 Bud Davis <bdavis9659@comcast.net>
591 * write.c (write_l): Use extract_int for 'L' edit descriptor.
593 2004-03-24 Bud Davis <bdavis9659@comcast.net>
596 * io/io.h (global_t):
597 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
598 Move eof_jmp to a global structure.
599 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
601 2004-03-24 Bud Davis <bdavis9659@comcast.net>
603 * m4/cexp.m4 (csqrt): Actually use the passed value.
604 * generated/exp_c?.c: Regenerate.
606 2004-03-24 Bud Davis <bdavis9659@comcast.net>
609 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
610 * open.c (new_unit): Moved test for positioned direct access error.
611 (init_units): Corrected calculation of max records.
613 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
615 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
616 * Makefile.in: Regenerate.
617 * m4/dotprodc.m4: New file. Implement complex dot_product.
618 * m4/dotprod.m4: Delete the complex implementation.
619 * generated/dotprod_*: Update.
621 2004-02-07 Bud Davis <bdavis9659@comcast.net>
623 * transfer.c (write_constant_string): Do not delete H's in hollerith
626 2004-01-05 Andrew Pinski <apinski@apple.com>
628 * configure.in: Check for csin in -lmx also.
629 * configure: Regenerate.
631 2004-01-01 Paul Brook <paul@codesourcery.com>
633 * io/list_read.c (find_nml_node): Make static.
634 (match_namelist_name): Ditto.
635 * io/read.c (convert_precision_real): Make static, fix spelling.
636 * io/transfer.c (extract_real): Remove unused prototype.
637 (st_set_nml_var): Make static.
638 * io/write.c (extract_real): Make static.
640 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
642 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
644 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
646 * io/transfer.c (data_transfer_init): Give a runtime error for list
647 formatted reads and writes from/to files opened for unformatted IO.
649 2003-11-30 Paul Brook <paul@nowt.org>
651 * runtime/memory.c (push_context): Remove.
652 (pop_context): Remove.
653 * libgfortran.h: Remove prototypes.
655 2003-11-27 Paul Brook <paul@nowt.org>
657 * runtime/memory.c (deallocate): Nullify pointer after freeing.
659 2003-11-27 Paul Brook <paul@nowt.org>
661 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
662 * libgfortran.h: Ditto.
663 * m4/in_pack.m4: Ditto.
664 * runtime/in_pack_generic.c: Ditto.
665 * runtime/memory.c: Ditto.
667 2003-11-26 Richard Henderson <rth@redhat.com>
669 * m4/exponent.m4, m4/fraction.m4: New.
670 * m4/nearest.m4, m4/set_exponent.m4: New.
671 * generated/*: Update.
672 * Makefile.am: Add them.
673 (AM_CFLAGS): New. Use -std=gnu99.
674 * Makefile.in: Regenerate.
676 2003-11-08 Paul Brook <paul@nowt.org>
679 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
680 * m4/maxloc1.m4: Ditto.
681 * m4/minloc0.m4: Ditto.
682 * m4/minloc1.m4: Ditto.
683 * m4/ifunction.m4: Set return value for zero sized arrays.
684 * m4/iforeach.m4: Ditto.
685 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
686 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
687 * generated/*: Update.
689 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
692 * io/list_read.c (eat_spaces): Treat tab as space.
694 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
696 * intrinsics/random.c: Add reference to paper containing algorithm.
697 (random_seed): Extra error checking and proper handling of arrays.
698 (arandom_r4, arandom_r8): Implement.
700 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
703 * runtime/memory.c (allocate_size): Allow allocation
704 of zero-sized objects.
706 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
709 * open.c (new_unit): Open without a file name opens
710 a file with name fort.<unit>.
712 2003-10-12 Feng Wang <wf_cs@yahoo.com>
714 * intrinsics/cshift0.c: New file.
715 * m4/cshift1.m4: New file
716 * generated/cshift*.c: New files.
717 * Makefile.am: Add them.
718 * Makefile.in: Regenerate.
720 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
722 * io/list_read.c (read_character): Remove unwanted call to free_saved.
724 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
726 * intrinsics/string_intrinsics.c (string_trim): New function.
727 (string_repeat): New function.
729 2003-10-11 Paul Brook <paul@nowt.org>
731 * intrinsics/dprod_r8.f90: New file.
732 * Makefile.am (gfor_specific_src): Add it.
733 (gfor_built_specific_src): Rename from gfor_build_specific_c.
735 (gfor_specific2_src): Rename from gfor_built_specific2_c.
737 * Makefile.in: Regenerate.
738 * generated/_aint_*.f90: New files.
739 * generated/_anint*.f90: New files.
740 * generated/_atan2*.f90: New files.
741 * generated/_mod*.f90: New files.
743 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
745 * intrinsics/selected_kind.f90: New file.
746 * Makefile.am: Add it.
747 * Makefile.in: regenerate.
749 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
750 Paul Brook <paul@nowt.org>
752 * intrinsics/random.c: New file.
753 * Makefile.am (gfor_hemper_src): Add it.
754 (gfor_specific_c): Fix typo.
756 2003-09-19 Paul Brook <paul@nowt.org>
758 * All: rename g95->gfc.
760 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
762 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
764 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
766 * io/write.c (write_float): Dectection of positive infinite number,
767 Not a Number(NaN) and negative infinite number.
768 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
769 output a very_very small number ( < 0.1e-100 ).
771 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
773 * libgfortran.h (xtoa, itoa): Parameter modified.
774 * io/io.h (namelist_info): Declaration to support namelist I/O
775 (st_parameter): Add namelist related component
776 (ionml, empty_internal_buffer, st_set_nml_var_int,
777 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
778 st_set_nml_var_log): Declaration
779 (set_integer, set_integer): Parameter changed
780 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
782 (parse_format_list): Fix bug about FMT_SLASH
783 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
784 newly allocated saved_string
785 (next_char): Add detection of End_Of_Line support
786 (convert_integer): Now can process 64 bits interger
787 (read_real): Bug fixed
788 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
789 (match_namelist_name): New implemention
790 * io/lock.c (ionml): New global variable
791 (library_end): Free memory in ionml
792 * io/open.c (st_open): Variable initializtion
793 * io/read.c (max_value): 64 bits interger support
794 (convert_precsion_real): New procedure to replace "strtod" with more
796 (read_f, read_radix): Input bug fix
797 * io/transfer.c: (sf_seen_eor): New static variable
798 (read_sf): Zeroize base buffer; fix bugs: single read statement can
799 not get input in mutli line when read from stdin
800 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
802 (data_transfer_init): Clear internal buffer for Internel File I/O.
803 Internal File now worked. Detect some error condition for namelist.
805 (next_record_w): Internal file and Namelist I/O support.
806 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
807 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
808 * io/unit.c (implicit_unit): Deletion
809 (get_unit): Now cannot open a unit implicitly.
810 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
812 (mem_alloc_r_at): Internal file I/O support added
813 (empty_internal_buffer): New function
814 * io/write.c (extract_int): Support 64 bits interger processing
815 (output_float): Varibale initialization
816 (write_float): Infinite real number detection.
817 (write_int): 64 bits integer I/O support
818 (write_decimal): New function to output decimal number
819 (otoa, btoa): Better implemention and 64 bits interger support
820 (namelist_write): New function
821 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
824 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
826 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
827 get_mem ): Add attribute.
828 * intrinsics/spread_generic.c (__spread): Fix spelling.
829 * io/inquire.c (inquire_via_filename): Add const.
830 * io/io.h (sys_exit): Add attribute.
831 * io/io.h (move_pos_offset): Add move_pos_offset.
832 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
833 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
834 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
835 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
837 * io/read.c (convert_real): Add const.
838 * io/transfer.c (type_name): Add const.
839 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
840 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
841 inquire_read, inquire_write, inquire_readwrite): Add const.
842 * io/write.c (output_float): Remove unused variable.
843 * io/write.c (write_a, extract_int, extract_real, output_float,
844 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
845 write_e, write_f, write_en, write_es, write_logical, write_integer,
846 write_character, write_real, write_complex): Add const.
847 * runtime/error.c (rtoa): Remove unused variable.
848 * runtime/select.c (select_string): Add const.
849 * runtime/stop.c (stop_string): Add const.
851 2003-08-10 Paul Brook <paul@nowt.org>
853 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
854 (FFLAGS): Add -fno-underscoring.
855 * Makefile.in: Regenerate.
856 * intrinsics/abort.c: New file.
858 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
860 * fmain.c (main): Do not call init and cleanup; call set_args instead.
861 * libgfortran.h (init, cleanup): Remove declarations.
862 (set_args): Add declaration.
863 * runtime/main.c (init, cleanup): Make them static, and give them
864 the constructor and destructor attributes.
865 (set_args): New function.
867 2003-08-10 Paul Brook <paul@nowt.org>
869 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
870 on which string is longest.
872 2003-08-10 Paul Brook <paul@nowt.org>
874 * Makefile.am (EXTRA_DIST): Remove old files.
875 * Makefile.in: Regenerate.
877 2003-07-26 Paul Brook <paul@nowt.org>
879 Rename library to libgfortran.
880 * libgfortran.h: Change prefix to _libgfortran_.
882 2003-07-24 Paul Brook <paul@nowt.org>
884 * configure.in: Don't pull in system libtool. Use toplevel
887 2003-07-22 Paul Brook <paul@nowt.org>
889 Regenerate all configury files.
891 2003-07-09 Chun Huang <compiler@sohu.com>
893 * intrinsics/string_intrinsic.c (string_scan): New function.
894 (string_verify): New function.
896 2003-06-25 Paul Brook <paul@nowt.org>
898 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
899 (mem_seek): Don't bother setting physical_offset.
901 2003-06-20 Paul Brook <paul@nowt.org>
903 * libgfor.h (stop_numeric): Declare.
904 * runtime/pause.c: New file.
905 * Makefile.am: Add it.
907 2003-06-08 Paul Brook <paul@nowt.org>
909 * m4/cexp.m4 (cabs): Use correct typed version.
910 (csqrt): New function.
912 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
914 Spotted by Benjamin and Tobias:
915 * io/list_read.c: Add Separator '\t'.
916 (parse_real, read_real): Accept real values starting with an optional
917 sign follows a decimal point.
919 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
921 * Makefile.am: Don't put cmath objects in subdir.
922 * configure.in: Rename MATHOBJ to MATH_OBJ.
924 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
926 * intrinsics/associated.c: New file.
927 * Makefile.am: Add it. Regenerate Makefile.in.
928 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
929 G95_DESCRIPTOR_DTYPE.
931 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
933 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
934 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
935 the scale_factor to 0 for F editing.
937 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
939 * libgfor.h: Only include stdint.h if it exists.
941 2003-05-07 Paul Brook <paul@nowt.org>
943 * libgfor.h: Use stdint.h types.
944 * intrinsics/ishift.c: Ditto.
945 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
947 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
949 * libgfor.h (offsetof): Define if nobody else does.
950 * runtime/memory.c (HEADER_SIZE): Use it.
952 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
954 * configure.in: Require autoconf 2.54.
956 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
957 Paul Brook <paul@nowt.org>
959 * intrinsics/reshape_generic.c: Copy the whole element, not just the
961 * m4/transpose.m4: New file.
962 * Makefile.am: Add them.
963 Regenerate generated files.
965 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
967 * io/format.c (parse_format_list): Allow 'X' without integer
968 prefix. This is an extension. Interpretation is '1X'.
970 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
972 * io/format.c (parse_format_list): Allow '0P'.
974 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
976 * Makefile.in: Re-regenerate for automake 1.7.3.
978 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
980 Port implementation for CHARACTER SELECT from Andy's tree.
981 * runtime/select.c: New file
982 * Makefile.am: Add it.
983 * Makefile.in: Regenerate.
985 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
987 * io/transfer.c (formatted_transfer): Modified
988 * io/unix.c (move_pos_offset): New Function.
989 * io/format.c (parse_format_list): Modified.
991 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
993 * io/write.c (write_float,write_real): New implemention of
994 FMT_G and default float editing.
995 (calculate_exp,calculate_G_format,output_float): New Function.
996 (write_float,write_real,write_logical): Modified
997 * libgfor.h (default_rtoa): Remove Declaration.
998 * runtime/error.c (default_rtoa): Remove Function.
1000 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
1003 * io/write.c (extract_real): Add missing break statement.
1005 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1007 * cpu_time.c: Make sure we have a definition of HZ. Don't
1008 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
1010 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1011 Paul Brook <paul@nowt.org>
1013 * configure.in: Check for process time headers and GETTIMEOFDAY.
1014 * makefile.am: Add intrinsics/cpu_time.c.
1015 * acinclude.m4: New file.
1016 * intrinsics/cpu_time.c: New file.
1017 * m4/dotprodl.m4: Fix typo.
1018 Regenerate generated files.
1020 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
1022 * io/write.c (extract_real): Ouput floating point value.
1023 (write_float): New Function.
1024 (write_e, write_f, write_en, write_es): Modified
1025 * io/transfer.c (formatted_transfer): Modified.
1026 * libgfor.h (default_rtoa): Declaration.
1027 (rtoa): Declaration.
1028 * runtime/error.c (default_rtoa): New Function.
1029 (rtoa): New Function.
1031 2003-04-05 Paul Brook <paul@nowt.org>
1033 * intrinsics/spread_generic.c: New file.
1034 * Makefile.am: Add it. Regenerate Makefile.in.
1036 2003-03-29 Paul Brook <paul@nowt.org>
1038 * intrinsics/pack_generic.c: New file.
1039 * intrinsics/unpack_generic.c: New file.
1040 * Makefile.am: Add them. Regenerate Makefile.in.
1042 2003-03-25 Paul Brook <paul@nowt.org>
1044 * intrinsics/eoshift0.c: New file.
1045 * intrinsics/eoshift2.c: New file.
1046 * m4/eoshift1.m4: New file.
1047 * m4/eoshift3.m4: New file.
1048 * Makefile.am: Add them.
1049 * in_unpack_generic.c: Initialize src.
1050 Regenerate generated files.
1052 2003-03-14 Paul Brook <paul@nowt.org>
1054 * m4/shape.m4: Work properly with array temporaries.
1055 * m4/in_pack.m4: Skip redundant checks for array temporaries.
1056 * runtime/in_pack_generic.c: Ditto.
1058 2003-03-12 Paul Brook <paul@nowt.org>
1060 * m4/shape.m4: Work properly with noncontiguous arrays.
1062 2003-03-08 Paul Brook <paul@nowt.org>
1064 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1065 * runtime/in_pack_generic.c: Ditto.
1067 2003-02-08 Paul Brook <paul@nowt.org>
1069 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1070 * io/close.c (st_close): Return void.
1071 * io/open.c (st_open): Return void.
1072 * libgfor.h (g95_array_char): Declare.
1073 (internal_malloc_size): Ditto.
1074 (internal_pack*, internal_unpack*): Ditto.
1075 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1077 * m4/in_unpack.m4: Include file fixes.
1078 * m4/reshape.m4: Increment the correct source pointer.
1079 * Makefile.am (maxloc): Fix typo.
1080 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1081 storage if neccessary. Fix logic for packed arrays.
1082 * runtime/in_unpack_generic.c: Call optimized functions.
1083 * runtime/main.c: Use runtime_error to report errors.
1084 * memory.c (internal_malloc_size): Make non-static.
1086 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1088 * reshape_packed.c, lock.c: Add #include <string.h>.
1089 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1090 environ.c, error.c, memory.c, string.c: Add const.
1091 * error.c (show_locus): Add void.
1093 2003-02-21 Paul Brook <paul@nowt.org>
1095 * m4/in_pack.m4: Avoid returning const * parameter.
1096 * Makefile.am: Only regenerate files in maintainer mode.
1098 2003-02-20 Paul Brook <paul@nowt.org>
1100 Add array repacking support functions.
1101 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1102 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1103 * Makefile.am: Build them. Regenerate configury files.
1104 * generated/: New directory for generated files (need to move
1105 everything else there).
1107 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1109 * m4/cexp.m4: Fix typo.
1111 2003-01-26 Paul Brook <paul@nowt.org>
1113 * intrinsics/: Add missing generated files.
1115 2003-01-26 Paul Brook <paul@nowt.org>
1117 * Makefile.am: Put -I before the filename.
1119 2003-01-24 Paul Brook <paul@nowt.org>
1121 * configure.in: Add AM_MAINTAINER_MODE.
1123 2003-01-23 Paul Brook <paul@nowt.org>
1125 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1127 Also regenerate other configury files.
1129 2003-01-21 Paul Brook <paul@nowt.org>
1131 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1133 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1135 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1136 Don't include "alloca.h".
1138 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1140 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1141 * Makefile.am: Adjust file name.
1142 * Makefile.in: Regenerate.
1143 * gfortypes.h: Kill, include everything in...
1144 * libgfor.h: ...here. Include config.h
1145 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1146 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1147 intrinsics/reshape_packed.c, intrinsics/size.c,
1148 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1149 for prefix for all functions instead of hardcoded.
1151 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1153 * io/lock.c (library_end): Propagate library return
1156 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1158 Port fixes from Andy's tree:
1159 * io/read.c (read_decimal): Reverse sense of overflow
1160 comparison during integer reads.
1161 * io/format.c (revert): Fix comment.
1162 (next_format): Fix format revision.
1163 * io/unix.c: Fix and simplify mmap version of stream
1166 2003-01-11 Paul Brook <paul@nowt.org>
1168 * configure, Makefile.in: Regenerate.
1170 2003-01-11 Paul Brook <paul@nowt.org>
1172 * runtime/stop.c: Rewrite.
1174 2003-01-08 Paul Brook <paul@nowt.org>
1176 * configure, Makefile.in: Regenerate.
1178 2003-01-05 Paul Brook <paul@nowt.org>
1180 * (*.m4) Move to m4/.
1181 * intrinsics/string.c (_gfor_string_index): New Function.
1183 2002-12-29 Paul Brook <paul@nowt.org>
1185 * intrinsics/reshape.*: New files.
1186 * gcc_config.patch: Update to new GCC configure system.
1188 2002-10-10 Paul Brook <paul@nowt.org>
1190 * intrinsics/size.c: New file.
1191 * intrinsics/shape.m4: New file.
1192 * Makefile.am: Add above files.
1194 2002-10-02 Paul Brook <paul@nowt.org>
1196 * fmain.c (main): Move here.
1197 * libgfor.c: From here.
1198 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1199 * Makefile.am: Build libgforbegin.
1200 * gcc_config.patch: Remove stray -march=athlon.
1201 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1202 * ifunction.m4: Move variable declarations to allow compilation with
1204 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1205 * README: Document use of patch -p1.
1207 2002-09-12 Paul Brook <paul@nowt.org>
1209 * math/*: Add complex math library functions.
1210 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1211 * Makefile.am: Add details for above.
1212 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1214 2002-09-09 Paul Brook <paul@nowt.org>
1216 * libgfor.c (determine_endianness): Use an array rather than a struct.
1217 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1219 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1221 * libgfor.c: Add fatal signal handler.
1222 Romove superfluous abort() calls.
1224 2002-09-07 Paul Brook <paul@nowt.org>
1226 * Makefile.am, intrinsics: Major rewrite.
1228 2002-09-02 Paul Brook <paul@nowt.org>
1230 * Makefile.am: Added -I$(srcdir) to m4 rule.
1232 2002-08-30 Paul Brook <paul@nowt.org>
1234 * io/*: Integrated libgforio.
1235 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1236 intrinsics in the intrisics directory.
1237 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1238 filename. Add 'and' and 'all' intrinsics.
1240 2002-08-17 Paul Brook <paul@nowt.org>
1242 * ALL: First release as more than just a single file