1 2004-12-01 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3 * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
5 2004-11-28 Bud Davis <bdavis9659@comcast.net>
7 * io/unix.c (mmap_alloc_w_a): check for a write to a location
8 less than the mapped area.
10 2004-11-27 Bud Davis <bdavis9659@comcast.net>
13 * io/endfile.c (st_endfile): flush the stream before truncating.
15 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
17 * configure: Regenerate for libtool change.
19 2004-11-22 Steven Bosscher <stevenb@suse.de>
22 * configure.ac: Check for finite in libm.
23 * libgfortran.h: Define isfinite macro if not defined.
24 * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
26 * io/write.c (write_float): Use isfinite instead of finite.
27 * configure, config.h.in: Rebuilt.
29 2004-11-20 Roger Sayle <roger@eyesopen.com>
31 * io/write.c (write_float, list_formatted_write): Fix indentation.
33 2004-11-20 Eric Botcazou <ebotcazou@libertysurf.fr>
36 * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
37 * configure.ac: Include LIBGFOR_TARGET_ILP32.
38 * configure: Regenerate.
39 * config.h.in: Likewise.
40 * libgfortran.h: Provide default definitions for C99 types
41 on ILP32 targets that don't have them.
44 * configure.ac: Check for snprintf.
45 * configure: Regenerate.
46 * config.h.in: Likewise.
47 * intrinsics/date_and_time.c (date_and_time): Do not
48 use snprinf if it is not available.
49 * io/write.c (output_float): Likewise.
51 2004-11-20 Steven G. Kargl <kargls@comcast.net>
53 * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
54 * Makefile.in: Regenerated
55 * intrinsics/umask.c: New file
56 * intrinsics/unlink.c: ditto
57 * intrinsics/exit.c: ditto
59 2004-11-18 Victor Leikehman <lei@il.ibm.com>
61 * m4/matmul.m4: Loops reordered to improve cache behavior.
62 * generated/matmul_??.c: Regenerated.
64 2004-11-10 Paul Brook <paul@codesourcery.com>
67 * configure.ac: Check for strtof.
68 * configure: Regenerate.
69 * config.h.in: Regenerate.
70 * io/read.c (convert_real): Use strtof if available.
71 (convert_precision_real): Remove.
72 (read_f): Avoid poor exponentiation algorithm.
74 2004-11-05 Andreas Schwab <schwab@suse.de>
76 * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
77 AC_PROG_F77, F77 and FFLAGS.
78 * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
79 FCCOMPILE instead of F77COMPILE.
80 * configure, Makefile.in: Regenerate.
82 2004-11-05 Kelley Cook <kcook@gcc.gnu.org>
84 * acinclude.m4: Properly quote AC_CACHE_CHECK.
85 * Makefile.am: Add in ACLOCAL_AMFLAGS.
86 * aclocal.m4, configure, Makefile.in: Regenerate.
88 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
90 * config.h.in: Regenerate.
91 * configure: Regenerate.
92 * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
93 * io/unix.c (S_IRGRP): Define if undefined.
97 (tempfile): Use mktemp if mkstemp missing, fix typos.
99 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
101 * intrinsics/system.c ("libgfortran.h"): Move after system headers.
103 2004-10-30 Canqun Yang <canqun@nudt.edu.cn>
105 * intrinsics/rand.c (irand): Handle NULL argument.
107 2004-10-07 Paul Brook <paul@codesourcery.com>
109 * io/transfer.c (finalize_transfer): Free internal streams.
110 * io/unix.c (mem_close): Free stream object.
112 2004-10-07 Paul Brook <paul@codesourcery.com>
114 * intrinsics/string_intrinsics.c (string_verify): Fix off by one
117 2004-10-06 Paul Brook <paul@codesourcery.com>
120 * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
122 2004-10-04 Andrew Pinski <pinskia@physics.uc.edu>
124 * intrinsics/mvbits.c: Commit the file.
126 2004-10-04 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
129 * intrinsics/pack_generic.c (__pack): Allocate memory for return array
130 if not done by caller.
131 (__pack_s): New function.
132 * runtime/memory.c (internal_malloc, internal_malloc64): Allow
133 allocating zero memory.
136 * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
137 * Makefile.in: Regenerate.
138 * intrinsics/mvbits.h: New file.
141 * intrinsics/system.c: New file.
142 * Makefile.am: Add dependency for the new file.
143 * Makefile.in: Regenerate.
145 2004-10-04 Paul Brook <paul@codesourcery.com>
146 Bud Davis <bdavis9659@comcast.net>
150 * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
152 * io/write.c (output_float): Don't output minus zero.
154 2004-10-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
156 * intrinsics/abort.c ("libgfortran.h"): Move.
157 * intrinsics/date_and_time.c ("libgfortran.h"): Same.
158 * intrinsics/write.c ("libgfortran.h"): Same.
160 2004-09-26 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
163 * config.h.in (HAVE_POWF): Undefine.
164 * configure.ac: Check for 'powf' in library.
165 * configure: Regenerate.
166 * intrinsics/c99_functions.c (powf): New function.
168 2004-09-24 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
170 * intrinsics/etime.c (etime_): New function.
172 2004-09-21 Steven G. Kargl <kargls@comcast.net>
174 * libgfortran.h: define gfc_alloca()
175 * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
177 2004-09-21 Bud Davis <bdavis9659@comcast.net>
180 * io/list_read.c (namelist_read): ignore spaces after
181 the '=' for namelist reads.
183 2004-09-15 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
185 * config.h.in: Regenerate.
186 * configure: Regenerate.
187 * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
188 * unix.c: Include stdio.h.
189 (HAVE_SYS_MMAN_H): Check.
190 (PROT_READ, PROT_WRITE): Provide default definitions.
192 2004-09-15 Steven G. Kargl <kargls@comcast.net>
194 * intrincics/getcwd.c: New file.
195 * Makefile.am: Add getcwd.c.
196 * Makefile.in: Regenerated.
198 2004-09-15 Steven G. Kargl <kargls@comcast.net>
199 Paul Brook <paul@codesourcery.com>
201 * intrinsics/env.c (getenv, get_environmental_variable): Remove
202 trailing white space. Use alloca. Honour trim_name.
204 2004-09-13 Bud Davis <bdavis9659@comcast.net>
208 * io/list_read.c (list_formatted_read): Handle trailing spaces
211 2004-09-06 Steven G. Kargl <kargls@comcast.net>
213 * io/write.c (output_float): Typo in comment. Remove debugging
214 printf. Fix format for FP of form 1e10.
216 2004-09-03 Richard Henderson <rth@redhat.com>
218 * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
219 copy_loop_double, copy_loop_ldouble): New.
220 (__cshift0): Make shift type ssize_t. Use % operator instead of
221 div. Use specialized versions of copy loop depending on the shape.
223 2004-09-02 Paul Brook <paul@codesourcery.com>
225 * io/format.c (parse_format_list): Set repeat count for P descriptors.
226 * write.c (output_float): Fix condition. Correctly handle nonzero
229 2004-09-01 Eric Botcazou <ebotcazou@libertysurf.fr>
231 * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
232 * mk-srk-inc.sh: Likewise.
234 2004-09-01 Paul Brook <paul@codesourcery.com>
236 * runtime/error.c (generate_error): Set both iostat and
239 2004-08-31 Paul Brook <paul@codesourcery.com>
242 * io/list_read.c (next_char): Don't signal EOF for internal files.
243 * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
245 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
247 * io/unit.c: Separate copyright years by ','.
248 (compare, insert_unit, delete_unit, is_internal_unit, close_units):
249 Remove blank line in beginning of function.
250 (get_unit): Simplify code.
252 2004-08-31 Paul Brook <paul@codesourcery.com>
254 * io/unit.c (get_unit): Remove superfluous if.
256 2004-08-31 Paul Brook <paul@codesourcery.com>
258 * io/transfer.c (read_sf): Rename uinty to readlen. Detect EOF.
259 (finalize_transfer): Move setjmp after namlist IO.
260 * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
262 2004-08-31 Paul Brook <paul@codesourcery.com>
264 * list_read.c (eat_separator): Set at_eo when a '/' is seen.
266 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
268 * libgfortran.h: Replace 'gfc_strlen_type' by
269 'gfc_charlen_type'. Update comment accordingly.
270 * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
271 Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
273 2004-08-31 Paul Brook <paul@codesourcery.com>
275 * libgfortran.h: Add comments.
277 2004-08-30 Richard Henderson <rth@redhat.com>
279 * Makefile.am (gfor_helper_src): Split selected_kind.f90.
280 (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
281 (selected_int_kind.inc selected_real_kind.inc): New rules.
282 * Makefile.in: Regenerate.
283 * mk-sik-inc.sh, mk-srk-inc.sh: New files.
284 * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
285 include table of detected kinds.
286 * intrinsics/selected_real_kind.f90: Similarly.
288 2004-08-29 Steven G. Kargl <kargls@comcast.net>
289 Paul Brook <paul@codesourcery.com>
291 * intrinsics/bessel.c: New file.
292 * intrinsics/erf.c: New file.
293 * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
294 * configure.ac: Test for C99 Bessel and Error functions.
295 * Makefile.in: Regenerate.
296 * config.h.in: Regenerate.
297 * configure: Regenerate.
299 2004-08-29 Steven G. Kargl <kargls@comcast.net>
300 Paul Brook <paul@codesourcery.com>
302 * Makefile.am: Add intrinsics/getXid.c.
303 * configure.ac: Add tests for get{g,p,u}id.
304 * config.h.in: Regenerate.
305 * Makefile.in: Regenerate.
306 * configure: Regenerate.
308 2004-08-28 Paul Brook <paul@codesourcery.com>
311 * libgfortran.h (rtoa): Remove prototype.
312 * runtime/error.c (rtoa): Remove.
313 * io/write.c (calculate_G_format): Don't add blanks if E format is
314 used. Add correct number of blanks when exponent width is specified.
315 (output_float): Rewrite.
317 2004-08-27 Paul Brook <paul@codesourcery.com>
319 * io/rewind.c (st_rewind): Reset unit to read mode.
321 2004-08-27 Bud Davis <bdavis9659@comcast.net>
324 * io/io.h: created typedef for unit_mode.
325 * io/io.h (gfc_unit): added mode to unit structure.
326 * io/transfer.c (data_transfer_init): flush if a write then
327 read is done on a unit (direct access files).
328 * io/rewind.c (st_rewind): Used unit mode instead of global.
330 2004-08-24 Bud Davis <bdavis9659@comcast.net>
333 * runtime/error.c (itoa): keep from overflowing during
334 mod operation by using unsigned variable.
336 2004-08-24 Bud Davis <bdavis9659@comcast.net>
339 * runtime/string_intrinsics.c (string_index):check for
340 substring longer than string.
342 2004-08-24 David Edelsohn <edelsohn@gnu.org>
344 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
345 * Makefile.in: Rebuilt.
347 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
349 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
350 Fix formatting issues, update copyright years.
352 2004-08-21 Bud Davis <bdavis9659@comcast.net>
355 * io/transfer.c (next_record_w): Do not blank pad.
356 * io/transfer.c (next_record): Take into account partial records.
358 2004-08-18 Victor Leikehman <lei@il.ibm.com>
361 * io/transfer.c (st_set_nml_var)
362 * io/write.c (namelist_write): Allow var_name and var_name_len to be
363 null. For strings, use string_length field instead of len.
364 * io/io.h (struct namelist_type): New field string_length.
365 (st_set_nml_var_char): New argument string_length.
367 2004-08-13 Bud Davis <bdavis9659@comcast.net>
370 * io/open.c (st_open): use flags instead of the unit structure.
372 2004-08-10 Victor Leikehman <lei@il.ibm.com>
374 * io/list_read.c (namelist_read): Convert variable names
375 to lower case, so that mixed-case names are recognized.
376 Don't read beyond terminating slash.
378 2004-08-09 Richard Henderson <rth@redhat.com>
379 Roger Sayle <roger@eyesopen.com>
381 * intrinsics/c99_functions.c (nextafterf): New implementation that
382 works correctly with denormalized numbers.
384 2004-08-09 Victor Leikehman <lei@il.ibm.com>
386 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
387 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
388 Allocate space if return value has NULL in its data field.
389 * generated/*.c: Regenerate.
391 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
393 * intrinsics/env.c: New file.
394 * Makefile.am: Add env.c to build.
395 * Makefile.in: Regenerate.
397 2004-08-05 Victor Leikehman <lei@il.ibm.com>
400 * io/read.c (read_radix): Understand letters f and F as hex digits.
402 2004-08-04 Victor Leikehman <lei@il.ibm.com>
404 * libgfortran.h (array_t, size0) New declarations.
405 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
406 space if return value descriptor has NULL in its data field,
407 and initialize bounds and stride.
408 * intrinsics/size.c (array_t, size0): Declarations moved to
410 * generated/*.c: Regenerate.
412 2004-08-03 Roger Sayle <roger@eyesopen.com>
415 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
416 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
417 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
418 * config.h.in: Regenerate.
419 * configure: Regenerate.
421 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
422 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
423 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
424 implementations for targets that don't support C99 float functions.
426 2004-08-01 Roger Sayle <roger@eyesopen.com>
428 * io/write.c (write_float): Use the slightly more portable isnan
429 in preference to isinf.
431 2004-07-18 Bud Davis <bdavis9659@comcast.net>
433 * configure.ac: Add check for LFS support.
434 * configure: Regenerate
436 2004-07-11 Paul Brook <paul@codesourcery.com>
439 * m4/cexp.m4 (carg): Return -pi to pi.
440 * generated/exp_c?.c: Regenerate.
442 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
445 * libgfortran/io/write.c: (write_float): Added length check.
446 Remove pointless memset calls.
448 2004-07-04 Bud Davis <bdavis9659@comcast.net>
449 Paul Brook <paul@codesourcery.com>
452 * io/transfer.c(us_write): set recl for seq unform writes to max size.
453 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
454 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
456 * io/unix.c(is_seekable): set based upon the file/device, not the
457 method being used to access it (fd or mmap).
458 * io/unix.c(fd_flush): don't set file_size if !seekable.
459 * io/unix.c(fd_truncate: ditto.
461 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
462 Paul Brook <paul@codesourcery.com>
466 * libgfortran.h (gfc_strlen_type): Define.
467 * intrinsics/args.c (getarg): Rename ...
468 (getarg_i4): ... to this.
469 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
470 get_command_i4, get_command_i8): New functions.
472 2004-07-04 Matthias Klose <doko@debian.org>
474 * libtool-version: New.
475 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
476 * Makefile.in: Regenerate.
477 * configure.ac: Remove libtool_VERSION macro
478 * configure: Regenerate
480 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
481 Steven Bosscher <stevenb@suse.de>
483 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
486 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
487 Paul Brook <paul@codesourcery.com>
489 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
491 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
493 2004-06-27 Bud Davis <bdavis9659@comcast.net>
496 * io/write.c (write_float): check signbit for Infinity.
498 2004-06-26 Bud Davis <bdavis9659@comcast.net>
501 * unix.c(regular_file): create file if it does not exist.
503 2004-06-24 Andrew Pinski <apinski@apple.com>
505 * configure.ac: Remove check for libmx.
506 * configure: Regenerate.
508 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
511 * inquire.c (st_inquire): Add comment
512 * io.h (st_parameter): Add iolength.
513 (st_iolength, st_iolength_done): Declare.
514 * transfer.c (iolength_transfer, iolength_transfer_init,
515 st_iolength, st_iolength_done): New functions.
517 2004-06-21 Steven G. Kargl <kargls@comcast.net>
519 * etime.c (etime_sub): Remove array rank check;
520 Add check for sufficient space.
522 2004-06-19 Bud Davis <bdavis9659@comcast.net>
525 * io/list_read.c(set_value): fixed spelling.
527 2004-06-19 Bud Davis <bdavis9659@comcast.net>
530 * io/list_read.c(set_value): don't copy if the string is null.
532 2004-06-14 Bud Davis <bdavis9659@comcast.net>
535 * intrinsics/c99_functions.c: Use fpclassify if it exists.
537 2004-06-13 Paul Brook <paul@codesourcery.com>
539 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
540 * configure.ac: Add checks for nextafter and nextafterf.
541 * Makefile.in, config.h.in, configure: Regenerate.
542 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
543 * intrinsics/rand.c (rand): Use normalize_r4_i4.
544 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
545 (random_r8): Use normalize_r8_i8.
546 * runtime/normalize.c: New file.
548 2004-06-13 Steven G. Kargl <kargls@comcast.net>
549 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
551 * random.c: Fix several spelling and formatting mistakes in
553 (random_r8): Fix loop to make random numbers range in [0,1(.
556 2004-06-13 Steven G. Kargl <kargls@comcast.net>
558 * random.c (random_r4): Burn a random number.
559 (random_r8): fix infinite loop.
561 2004-06-12 Bud Davis <bdavis9659@comcast.net>
562 Steve Kargl <sgk@troutmask.apl.washington.edu>
565 * intrinsics/c99_functions.c: New file.
566 * Makefile.am: Add new file.
567 * configure.ac: Added test for round/roundf.
568 * Makefile.in: Regenerate.
569 * configure: Regenerate.
570 * configure.h.in: Regenerate.
572 2004-06-12 Steven G. Kargl <kargls@comcast.net>
574 * Makefile.am: Add rand.c and etime.c
575 * Makefile.in: Regenerated.
576 * aclocal.in: Regenerated.
577 * cpu_time.c (second_sub, second): New functions.
578 * rand.c (irand, rand, srand): New file.
579 * etime.c (etime_sub, etime): New file.
581 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
582 Steven Bosscher <stevenb@suse.de>
585 * intrinsics/date_and_time.c: New file.
586 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
587 * Makefile.in, aclocal.m4: Regenerate.
588 * libgfortran.h: Prototype date_and_time().
590 2004-06-12 Bud Davis <bdavis9659@comcast.net>
593 * intrinsics/args.c: Implement GETARG and IARGC.
594 * Makefile.am: Add it.
595 * Makefile.in: Regenerate.
597 2004-06-12 Bud Davis <bdavis9659@comcast.net>
600 * io/write.c(write_float): Format inf and nan IAW F2003.
602 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
605 * io/transfer.c (formatted_transfer): position is unique
606 for T and TL edit descriptors.
607 (data_transfer_init): set record length to size of internal
610 2004-06-09 Bud Davis <bdavis9659@comcast.net>
613 * io/backspace.c(st_backspace): call correct routine for
614 formatted and un-formatted units.
616 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
619 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
620 (lib_LTLIBRARIES): Rename to ...
621 (toolexeclib_LTLIBRARIES): this for multilib support.
622 * configure.in: Rename to ...
623 * configure.ac: this. Update to modern autoconf style, enable
624 multilibs, support --enable-version-specific-runtime-libs.
625 * Makefile.in: Regenerated.
626 * configure: Regenerated.
627 * aclocal.m4: Regenerated.
629 2004-05-30 Steven G. Kargl <kargls@comcast.net>
631 * libgfortran.h (random_seed): Update prototype.
632 * intrinsics/random.c: Disable old implementation and add new one.
634 2004-05-30 Andreas Jaeger <aj@suse.de>
636 * intrinsics/random.c: Include unistd.h for close and read
637 prototypes, remove unneeded inclusion of assert.h.
639 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
640 unneeded inclusion of assert.h.
642 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
645 * intrinsics/associated.c: Remove enum.
646 (associated): Replace TRUE/FALSE by 1/0.
648 2004-05-23 Steven G. Kargl <kargls@comcast.net>
650 * random.c (random_seed): Use correct variable.
652 2004-05-22 Steven G. Kargl <kargls@comcast.net>
654 * intrinsics/system_clock: New file.
655 * Makefile.am: Add intrinsics/system_clock.c.
656 * Makefile.in: Regenerate.
658 2004-05-21 Roger Sayle <roger@eyesopen.com>
660 * io/format.c (parse_format_list): Allow the comma after a string
661 literal to be optional.
663 2004-05-18 Paul Brook <paul@codesourcery.com>
664 Feng Wang <fengwang@nudt.edu.cn>
666 * Makefile.am (i_pow_c): Set it. Add build rule.
667 (gfor_built_src): Use it.
668 (m4_files): add m4/pow.m4.
669 * Makefile.in: Regenerate.
670 * m4/pow.m4: New file.
671 * generated/pow_*.c: Regenerate.
673 2004-05-18 Paul Brook <paul@codesourcery.com>
675 * Makefile.am: Remove references to types.m4.
676 * m4/iparm.m4: Merge with types.m4.
677 * m4/types.m4: Remove.
678 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
679 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
680 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
681 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
682 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
683 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
684 Update to use new iparm.m4.
685 * generated/*.c: Regenerate.
687 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
690 * gfortran.h (offset_t): Rename to ...
691 (gfc_offset): ... this.
692 * io/backspace.c (formatted_backspace, unformatted_backspace),
693 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
694 transfer.c (us_read, us_write, next_record_r, next_record_w),
695 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
696 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
697 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
698 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
699 occurences of offset_t by gfc_offset.
701 2004-05-16 Paul Brook <paul@codesourcery.com>
703 * io/format.c (write_real): Don't include padding in format.
705 2004-05-16 Paul Brook <paul@codesourcery.com>
707 * io/format.c (format_lex): Make c an int.
709 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
710 Paul Brook <paul@codesourcery.com>
712 * io/write.c (write_logical): Don't print extra blank.
713 (write_integer): Base field width on kind.
714 (list_formatted_write): Output initial blank.
716 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
718 * io/io.h (flush): Add prototype.
719 * io/transfer.c (finalize_transfer): Flush partial records.
720 * io/unix.c (flush): New function.
722 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
725 * io/io.h (unit_t): Rename to ...
727 (unit_root, current_unit, find_file, find_unit, get_unit): Now
729 (delete_file, insert_unit, close_unit): Argument now of type
731 * backspace.c (st_backspace), close.c (st_close), endfile.c
732 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
733 (test_endfile, edit_modes, new_unit, already_open, st_open),
734 rewind.c (st_rewind), transfer.c (current_unit), unit.c
735 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
736 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
737 get_unit, init_units, close_unit), unix.c (find_file0,
738 find_file, delete_file): Replace all occurences of unit_t by
741 2004-05-15 Bud Davis <bdavis9659@comcast.net>
744 * io/write.c (write_a): right justify A edit output.
746 2004-05-14 Bud Davis <bdavis9659@comcast.net>
749 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
750 * runtime/main.c(init): Call random_seed as part of MAIN init.
752 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
754 * io/format.c: (parse_format_list): No comma is required after
757 2004-05-13 Bud Davis <bdavis9659@comcast.net>
760 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
762 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
763 Steven Bosscher <stevenb@suse.de>
766 * libgfortran.h: Include <inttypes.h> if available.
768 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
770 * io/unix.c (MAP_FAILED): Define if missing.
771 (mmap_alloc): Cast MAP_FAILED to char *.
772 (mmap_open): Likewise.
774 2004-04-26 Bud Davis <bdavis9659@comcast.net>
776 * generated/_abs_i8.f90: New file.
777 * generated/_abs_c4.f90: New file.
778 * generated/_abs_c8.f90: New file.
779 * Makefile.am: Add them.
780 * Makefile.in: Regenerate.
782 2004-04-26 Bud Davis <bdavis9659@comcast.net>
785 * generated/_abs_i4.f90: New file.
786 * Makefile.am: Add it.
787 * Makefile.in: Regenerate.
789 2004-04-25 Bud Davis <bdavis9659@comcast.net>
792 * io/list_read.c(list_formatted_read): finish consuming the
793 spaces and seperators at eoln to get ready for next item.
795 2004-04-23 Bud Davis <bdavis9659@comcast.net>
798 * io/read.c(read_a): Handle field width > destination and no field width.
800 2004-04-22 Bud Davis <bdavis9659@comcast.net>
803 * io/format.c (format_item): gracefully handle a ')'
804 when it is the first character encountered in the string.
806 2004-04-11 Bud Davis <bdavis9659@comcast.net>
809 * io/transfer.c (next_record): Update last_record when
810 more than one record is written to a direct access file
811 with one write statement.
813 2004-04-11 Bud Davis <bdavis9659@comcast.net>
816 * io/transfer.c (next_record_w) : No '\n' if internal.
817 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
819 2004-04-11 Bud Davis <bdavis9659@comcast.net>
821 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
822 Will need to change this later to support direct access files > 2gb.
824 2004-04-03 Bud Davis <bdavis9659@comcast.net>
827 * io/transfer.c (next_record_r) : Skip to next record.
829 2004-04-03 Bud Davis <bdavis9659@comcast.net>
832 * io/transfer.c (next_record): Update last_record for DIRECT
834 2004-04-03 Bud Davis <bdavis9659@comcast.net>
837 * io/unix.c (find_file0): Use fd field of struct
839 2004-04-03 Bud Davis <bdavis9659@comcast.net>
842 * io/inquire.c (inquire_via_unit): Changed return string for
843 BLANK=NULL. Use correct variable for ACTION.
845 2004-04-01 Bud Davis <bdavis9659@comcast.net>
848 * io/read.c (read_f): Allow a decimal without a leading digit.
849 * io/write.c (output_float): remove a leading '0' to keep from
850 overflowing the field (F edit descriptor).
852 2004-04-01 Bud Davis <bdavis9659@comcast.net>
855 * io/open.c (new_unit),
856 * io/io.h : new_unit is now visible
857 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
858 * io/transfer.c (data_transfer_init): remove compile warnings.
859 * io/rewind.c (st_rewind): ftruncate if writing.
861 2004-03-24 Bud Davis <bdavis9659@comcast.net>
863 * write.c (write_l): Use extract_int for 'L' edit descriptor.
865 2004-03-24 Bud Davis <bdavis9659@comcast.net>
868 * io/io.h (global_t):
869 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
870 Move eof_jmp to a global structure.
871 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
873 2004-03-24 Bud Davis <bdavis9659@comcast.net>
875 * m4/cexp.m4 (csqrt): Actually use the passed value.
876 * generated/exp_c?.c: Regenerate.
878 2004-03-24 Bud Davis <bdavis9659@comcast.net>
881 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
882 * open.c (new_unit): Moved test for positioned direct access error.
883 (init_units): Corrected calculation of max records.
885 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
887 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
888 * Makefile.in: Regenerate.
889 * m4/dotprodc.m4: New file. Implement complex dot_product.
890 * m4/dotprod.m4: Delete the complex implementation.
891 * generated/dotprod_*: Update.
893 2004-02-07 Bud Davis <bdavis9659@comcast.net>
895 * transfer.c (write_constant_string): Do not delete H's in hollerith
898 2004-01-05 Andrew Pinski <apinski@apple.com>
900 * configure.in: Check for csin in -lmx also.
901 * configure: Regenerate.
903 2004-01-01 Paul Brook <paul@codesourcery.com>
905 * io/list_read.c (find_nml_node): Make static.
906 (match_namelist_name): Ditto.
907 * io/read.c (convert_precision_real): Make static, fix spelling.
908 * io/transfer.c (extract_real): Remove unused prototype.
909 (st_set_nml_var): Make static.
910 * io/write.c (extract_real): Make static.
912 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
914 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
916 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
918 * io/transfer.c (data_transfer_init): Give a runtime error for list
919 formatted reads and writes from/to files opened for unformatted IO.
921 2003-11-30 Paul Brook <paul@nowt.org>
923 * runtime/memory.c (push_context): Remove.
924 (pop_context): Remove.
925 * libgfortran.h: Remove prototypes.
927 2003-11-27 Paul Brook <paul@nowt.org>
929 * runtime/memory.c (deallocate): Nullify pointer after freeing.
931 2003-11-27 Paul Brook <paul@nowt.org>
933 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
934 * libgfortran.h: Ditto.
935 * m4/in_pack.m4: Ditto.
936 * runtime/in_pack_generic.c: Ditto.
937 * runtime/memory.c: Ditto.
939 2003-11-26 Richard Henderson <rth@redhat.com>
941 * m4/exponent.m4, m4/fraction.m4: New.
942 * m4/nearest.m4, m4/set_exponent.m4: New.
943 * generated/*: Update.
944 * Makefile.am: Add them.
945 (AM_CFLAGS): New. Use -std=gnu99.
946 * Makefile.in: Regenerate.
948 2003-11-08 Paul Brook <paul@nowt.org>
951 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
952 * m4/maxloc1.m4: Ditto.
953 * m4/minloc0.m4: Ditto.
954 * m4/minloc1.m4: Ditto.
955 * m4/ifunction.m4: Set return value for zero sized arrays.
956 * m4/iforeach.m4: Ditto.
957 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
958 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
959 * generated/*: Update.
961 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
964 * io/list_read.c (eat_spaces): Treat tab as space.
966 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
968 * intrinsics/random.c: Add reference to paper containing algorithm.
969 (random_seed): Extra error checking and proper handling of arrays.
970 (arandom_r4, arandom_r8): Implement.
972 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
975 * runtime/memory.c (allocate_size): Allow allocation
976 of zero-sized objects.
978 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
981 * open.c (new_unit): Open without a file name opens
982 a file with name fort.<unit>.
984 2003-10-12 Feng Wang <wf_cs@yahoo.com>
986 * intrinsics/cshift0.c: New file.
987 * m4/cshift1.m4: New file
988 * generated/cshift*.c: New files.
989 * Makefile.am: Add them.
990 * Makefile.in: Regenerate.
992 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
994 * io/list_read.c (read_character): Remove unwanted call to free_saved.
996 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
998 * intrinsics/string_intrinsics.c (string_trim): New function.
999 (string_repeat): New function.
1001 2003-10-11 Paul Brook <paul@nowt.org>
1003 * intrinsics/dprod_r8.f90: New file.
1004 * Makefile.am (gfor_specific_src): Add it.
1005 (gfor_built_specific_src): Rename from gfor_build_specific_c.
1007 (gfor_specific2_src): Rename from gfor_built_specific2_c.
1009 * Makefile.in: Regenerate.
1010 * generated/_aint_*.f90: New files.
1011 * generated/_anint*.f90: New files.
1012 * generated/_atan2*.f90: New files.
1013 * generated/_mod*.f90: New files.
1015 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
1017 * intrinsics/selected_kind.f90: New file.
1018 * Makefile.am: Add it.
1019 * Makefile.in: regenerate.
1021 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
1022 Paul Brook <paul@nowt.org>
1024 * intrinsics/random.c: New file.
1025 * Makefile.am (gfor_hemper_src): Add it.
1026 (gfor_specific_c): Fix typo.
1028 2003-09-19 Paul Brook <paul@nowt.org>
1030 * All: rename g95->gfc.
1032 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
1034 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
1036 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
1038 * io/write.c (write_float): Dectection of positive infinite number,
1039 Not a Number(NaN) and negative infinite number.
1040 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
1041 output a very_very small number ( < 0.1e-100 ).
1043 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
1045 * libgfortran.h (xtoa, itoa): Parameter modified.
1046 * io/io.h (namelist_info): Declaration to support namelist I/O
1047 (st_parameter): Add namelist related component
1048 (ionml, empty_internal_buffer, st_set_nml_var_int,
1049 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
1050 st_set_nml_var_log): Declaration
1051 (set_integer, set_integer): Parameter changed
1052 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
1054 (parse_format_list): Fix bug about FMT_SLASH
1055 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
1056 newly allocated saved_string
1057 (next_char): Add detection of End_Of_Line support
1058 (convert_integer): Now can process 64 bits interger
1059 (read_real): Bug fixed
1060 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
1061 (match_namelist_name): New implemention
1062 * io/lock.c (ionml): New global variable
1063 (library_end): Free memory in ionml
1064 * io/open.c (st_open): Variable initializtion
1065 * io/read.c (max_value): 64 bits interger support
1066 (convert_precsion_real): New procedure to replace "strtod" with more
1068 (read_f, read_radix): Input bug fix
1069 * io/transfer.c: (sf_seen_eor): New static variable
1070 (read_sf): Zeroize base buffer; fix bugs: single read statement can
1071 not get input in mutli line when read from stdin
1072 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
1074 (data_transfer_init): Clear internal buffer for Internel File I/O.
1075 Internal File now worked. Detect some error condition for namelist.
1077 (next_record_w): Internal file and Namelist I/O support.
1078 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
1079 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
1080 * io/unit.c (implicit_unit): Deletion
1081 (get_unit): Now cannot open a unit implicitly.
1082 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
1084 (mem_alloc_r_at): Internal file I/O support added
1085 (empty_internal_buffer): New function
1086 * io/write.c (extract_int): Support 64 bits interger processing
1087 (output_float): Varibale initialization
1088 (write_float): Infinite real number detection.
1089 (write_int): 64 bits integer I/O support
1090 (write_decimal): New function to output decimal number
1091 (otoa, btoa): Better implemention and 64 bits interger support
1092 (namelist_write): New function
1093 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
1096 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1098 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
1099 get_mem ): Add attribute.
1100 * intrinsics/spread_generic.c (__spread): Fix spelling.
1101 * io/inquire.c (inquire_via_filename): Add const.
1102 * io/io.h (sys_exit): Add attribute.
1103 * io/io.h (move_pos_offset): Add move_pos_offset.
1104 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
1105 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
1106 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
1107 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
1108 write_z): Add const.
1109 * io/read.c (convert_real): Add const.
1110 * io/transfer.c (type_name): Add const.
1111 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
1112 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
1113 inquire_read, inquire_write, inquire_readwrite): Add const.
1114 * io/write.c (output_float): Remove unused variable.
1115 * io/write.c (write_a, extract_int, extract_real, output_float,
1116 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
1117 write_e, write_f, write_en, write_es, write_logical, write_integer,
1118 write_character, write_real, write_complex): Add const.
1119 * runtime/error.c (rtoa): Remove unused variable.
1120 * runtime/select.c (select_string): Add const.
1121 * runtime/stop.c (stop_string): Add const.
1123 2003-08-10 Paul Brook <paul@nowt.org>
1125 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
1126 (FFLAGS): Add -fno-underscoring.
1127 * Makefile.in: Regenerate.
1128 * intrinsics/abort.c: New file.
1130 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
1132 * fmain.c (main): Do not call init and cleanup; call set_args instead.
1133 * libgfortran.h (init, cleanup): Remove declarations.
1134 (set_args): Add declaration.
1135 * runtime/main.c (init, cleanup): Make them static, and give them
1136 the constructor and destructor attributes.
1137 (set_args): New function.
1139 2003-08-10 Paul Brook <paul@nowt.org>
1141 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
1142 on which string is longest.
1144 2003-08-10 Paul Brook <paul@nowt.org>
1146 * Makefile.am (EXTRA_DIST): Remove old files.
1147 * Makefile.in: Regenerate.
1149 2003-07-26 Paul Brook <paul@nowt.org>
1151 Rename library to libgfortran.
1152 * libgfortran.h: Change prefix to _libgfortran_.
1154 2003-07-24 Paul Brook <paul@nowt.org>
1156 * configure.in: Don't pull in system libtool. Use toplevel
1159 2003-07-22 Paul Brook <paul@nowt.org>
1161 Regenerate all configury files.
1163 2003-07-09 Chun Huang <compiler@sohu.com>
1165 * intrinsics/string_intrinsic.c (string_scan): New function.
1166 (string_verify): New function.
1168 2003-06-25 Paul Brook <paul@nowt.org>
1170 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
1171 (mem_seek): Don't bother setting physical_offset.
1173 2003-06-20 Paul Brook <paul@nowt.org>
1175 * libgfor.h (stop_numeric): Declare.
1176 * runtime/pause.c: New file.
1177 * Makefile.am: Add it.
1179 2003-06-08 Paul Brook <paul@nowt.org>
1181 * m4/cexp.m4 (cabs): Use correct typed version.
1182 (csqrt): New function.
1184 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
1186 Spotted by Benjamin and Tobias:
1187 * io/list_read.c: Add Separator '\t'.
1188 (parse_real, read_real): Accept real values starting with an optional
1189 sign follows a decimal point.
1191 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
1193 * Makefile.am: Don't put cmath objects in subdir.
1194 * configure.in: Rename MATHOBJ to MATH_OBJ.
1196 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
1198 * intrinsics/associated.c: New file.
1199 * Makefile.am: Add it. Regenerate Makefile.in.
1200 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
1201 G95_DESCRIPTOR_DTYPE.
1203 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
1205 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
1206 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
1207 the scale_factor to 0 for F editing.
1209 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
1211 * libgfor.h: Only include stdint.h if it exists.
1213 2003-05-07 Paul Brook <paul@nowt.org>
1215 * libgfor.h: Use stdint.h types.
1216 * intrinsics/ishift.c: Ditto.
1217 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
1219 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
1221 * libgfor.h (offsetof): Define if nobody else does.
1222 * runtime/memory.c (HEADER_SIZE): Use it.
1224 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
1226 * configure.in: Require autoconf 2.54.
1228 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
1229 Paul Brook <paul@nowt.org>
1231 * intrinsics/reshape_generic.c: Copy the whole element, not just the
1233 * m4/transpose.m4: New file.
1234 * Makefile.am: Add them.
1235 Regenerate generated files.
1237 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1239 * io/format.c (parse_format_list): Allow 'X' without integer
1240 prefix. This is an extension. Interpretation is '1X'.
1242 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
1244 * io/format.c (parse_format_list): Allow '0P'.
1246 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1248 * Makefile.in: Re-regenerate for automake 1.7.3.
1250 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
1252 Port implementation for CHARACTER SELECT from Andy's tree.
1253 * runtime/select.c: New file
1254 * Makefile.am: Add it.
1255 * Makefile.in: Regenerate.
1257 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
1259 * io/transfer.c (formatted_transfer): Modified
1260 * io/unix.c (move_pos_offset): New Function.
1261 * io/format.c (parse_format_list): Modified.
1263 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
1265 * io/write.c (write_float,write_real): New implemention of
1266 FMT_G and default float editing.
1267 (calculate_exp,calculate_G_format,output_float): New Function.
1268 (write_float,write_real,write_logical): Modified
1269 * libgfor.h (default_rtoa): Remove Declaration.
1270 * runtime/error.c (default_rtoa): Remove Function.
1272 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
1275 * io/write.c (extract_real): Add missing break statement.
1277 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1279 * cpu_time.c: Make sure we have a definition of HZ. Don't
1280 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
1282 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1283 Paul Brook <paul@nowt.org>
1285 * configure.in: Check for process time headers and GETTIMEOFDAY.
1286 * makefile.am: Add intrinsics/cpu_time.c.
1287 * acinclude.m4: New file.
1288 * intrinsics/cpu_time.c: New file.
1289 * m4/dotprodl.m4: Fix typo.
1290 Regenerate generated files.
1292 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
1294 * io/write.c (extract_real): Ouput floating point value.
1295 (write_float): New Function.
1296 (write_e, write_f, write_en, write_es): Modified
1297 * io/transfer.c (formatted_transfer): Modified.
1298 * libgfor.h (default_rtoa): Declaration.
1299 (rtoa): Declaration.
1300 * runtime/error.c (default_rtoa): New Function.
1301 (rtoa): New Function.
1303 2003-04-05 Paul Brook <paul@nowt.org>
1305 * intrinsics/spread_generic.c: New file.
1306 * Makefile.am: Add it. Regenerate Makefile.in.
1308 2003-03-29 Paul Brook <paul@nowt.org>
1310 * intrinsics/pack_generic.c: New file.
1311 * intrinsics/unpack_generic.c: New file.
1312 * Makefile.am: Add them. Regenerate Makefile.in.
1314 2003-03-25 Paul Brook <paul@nowt.org>
1316 * intrinsics/eoshift0.c: New file.
1317 * intrinsics/eoshift2.c: New file.
1318 * m4/eoshift1.m4: New file.
1319 * m4/eoshift3.m4: New file.
1320 * Makefile.am: Add them.
1321 * in_unpack_generic.c: Initialize src.
1322 Regenerate generated files.
1324 2003-03-14 Paul Brook <paul@nowt.org>
1326 * m4/shape.m4: Work properly with array temporaries.
1327 * m4/in_pack.m4: Skip redundant checks for array temporaries.
1328 * runtime/in_pack_generic.c: Ditto.
1330 2003-03-12 Paul Brook <paul@nowt.org>
1332 * m4/shape.m4: Work properly with noncontiguous arrays.
1334 2003-03-08 Paul Brook <paul@nowt.org>
1336 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1337 * runtime/in_pack_generic.c: Ditto.
1339 2003-02-08 Paul Brook <paul@nowt.org>
1341 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1342 * io/close.c (st_close): Return void.
1343 * io/open.c (st_open): Return void.
1344 * libgfor.h (g95_array_char): Declare.
1345 (internal_malloc_size): Ditto.
1346 (internal_pack*, internal_unpack*): Ditto.
1347 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1349 * m4/in_unpack.m4: Include file fixes.
1350 * m4/reshape.m4: Increment the correct source pointer.
1351 * Makefile.am (maxloc): Fix typo.
1352 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1353 storage if neccessary. Fix logic for packed arrays.
1354 * runtime/in_unpack_generic.c: Call optimized functions.
1355 * runtime/main.c: Use runtime_error to report errors.
1356 * memory.c (internal_malloc_size): Make non-static.
1358 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1360 * reshape_packed.c, lock.c: Add #include <string.h>.
1361 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1362 environ.c, error.c, memory.c, string.c: Add const.
1363 * error.c (show_locus): Add void.
1365 2003-02-21 Paul Brook <paul@nowt.org>
1367 * m4/in_pack.m4: Avoid returning const * parameter.
1368 * Makefile.am: Only regenerate files in maintainer mode.
1370 2003-02-20 Paul Brook <paul@nowt.org>
1372 Add array repacking support functions.
1373 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1374 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1375 * Makefile.am: Build them. Regenerate configury files.
1376 * generated/: New directory for generated files (need to move
1377 everything else there).
1379 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1381 * m4/cexp.m4: Fix typo.
1383 2003-01-26 Paul Brook <paul@nowt.org>
1385 * intrinsics/: Add missing generated files.
1387 2003-01-26 Paul Brook <paul@nowt.org>
1389 * Makefile.am: Put -I before the filename.
1391 2003-01-24 Paul Brook <paul@nowt.org>
1393 * configure.in: Add AM_MAINTAINER_MODE.
1395 2003-01-23 Paul Brook <paul@nowt.org>
1397 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1399 Also regenerate other configury files.
1401 2003-01-21 Paul Brook <paul@nowt.org>
1403 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1405 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1407 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1408 Don't include "alloca.h".
1410 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1412 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1413 * Makefile.am: Adjust file name.
1414 * Makefile.in: Regenerate.
1415 * gfortypes.h: Kill, include everything in...
1416 * libgfor.h: ...here. Include config.h
1417 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1418 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1419 intrinsics/reshape_packed.c, intrinsics/size.c,
1420 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1421 for prefix for all functions instead of hardcoded.
1423 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1425 * io/lock.c (library_end): Propagate library return
1428 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1430 Port fixes from Andy's tree:
1431 * io/read.c (read_decimal): Reverse sense of overflow
1432 comparison during integer reads.
1433 * io/format.c (revert): Fix comment.
1434 (next_format): Fix format revision.
1435 * io/unix.c: Fix and simplify mmap version of stream
1438 2003-01-11 Paul Brook <paul@nowt.org>
1440 * configure, Makefile.in: Regenerate.
1442 2003-01-11 Paul Brook <paul@nowt.org>
1444 * runtime/stop.c: Rewrite.
1446 2003-01-08 Paul Brook <paul@nowt.org>
1448 * configure, Makefile.in: Regenerate.
1450 2003-01-05 Paul Brook <paul@nowt.org>
1452 * (*.m4) Move to m4/.
1453 * intrinsics/string.c (_gfor_string_index): New Function.
1455 2002-12-29 Paul Brook <paul@nowt.org>
1457 * intrinsics/reshape.*: New files.
1458 * gcc_config.patch: Update to new GCC configure system.
1460 2002-10-10 Paul Brook <paul@nowt.org>
1462 * intrinsics/size.c: New file.
1463 * intrinsics/shape.m4: New file.
1464 * Makefile.am: Add above files.
1466 2002-10-02 Paul Brook <paul@nowt.org>
1468 * fmain.c (main): Move here.
1469 * libgfor.c: From here.
1470 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1471 * Makefile.am: Build libgforbegin.
1472 * gcc_config.patch: Remove stray -march=athlon.
1473 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1474 * ifunction.m4: Move variable declarations to allow compilation with
1476 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1477 * README: Document use of patch -p1.
1479 2002-09-12 Paul Brook <paul@nowt.org>
1481 * math/*: Add complex math library functions.
1482 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1483 * Makefile.am: Add details for above.
1484 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1486 2002-09-09 Paul Brook <paul@nowt.org>
1488 * libgfor.c (determine_endianness): Use an array rather than a struct.
1489 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1491 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1493 * libgfor.c: Add fatal signal handler.
1494 Romove superfluous abort() calls.
1496 2002-09-07 Paul Brook <paul@nowt.org>
1498 * Makefile.am, intrinsics: Major rewrite.
1500 2002-09-02 Paul Brook <paul@nowt.org>
1502 * Makefile.am: Added -I$(srcdir) to m4 rule.
1504 2002-08-30 Paul Brook <paul@nowt.org>
1506 * io/*: Integrated libgforio.
1507 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1508 intrinsics in the intrisics directory.
1509 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1510 filename. Add 'and' and 'all' intrinsics.
1512 2002-08-17 Paul Brook <paul@nowt.org>
1514 * ALL: First release as more than just a single file