mips-protos.h (function_arg_boundary): Declare.
[gcc.git] / libgfortran / ChangeLog
1 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2
3 * configure: Regenerate for libtool reversion.
4
5 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
6
7 * configure: Regenerate for libtool change.
8
9 2004-11-22 Steven Bosscher <stevenb@suse.de>
10
11 PR libfortran/15960
12 * configure.ac: Check for finite in libm.
13 * libgfortran.h: Define isfinite macro if not defined.
14 * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
15 HAVE_FPCLASSIFY.
16 * io/write.c (write_float): Use isfinite instead of finite.
17 * configure, config.h.in: Rebuilt.
18
19 2004-11-20 Roger Sayle <roger@eyesopen.com>
20
21 * io/write.c (write_float, list_formatted_write): Fix indentation.
22
23 2004-11-20 Eric Botcazou <ebotcazou@libertysurf.fr>
24
25 PR target/16135
26 * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
27 * configure.ac: Include LIBGFOR_TARGET_ILP32.
28 * configure: Regenerate.
29 * config.h.in: Likewise.
30 * libgfortran.h: Provide default definitions for C99 types
31 on ILP32 targets that don't have them.
32
33 PR target/17999
34 * configure.ac: Check for snprintf.
35 * configure: Regenerate.
36 * config.h.in: Likewise.
37 * intrinsics/date_and_time.c (date_and_time): Do not
38 use snprinf if it is not available.
39 * io/write.c (output_float): Likewise.
40
41 2004-11-20 Steven G. Kargl <kargls@comcast.net>
42
43 * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
44 * Makefile.in: Regenerated
45 * intrinsics/umask.c: New file
46 * intrinsics/unlink.c: ditto
47 * intrinsics/exit.c: ditto
48
49 2004-11-18 Victor Leikehman <lei@il.ibm.com>
50
51 * m4/matmul.m4: Loops reordered to improve cache behavior.
52 * generated/matmul_??.c: Regenerated.
53
54 2004-11-10 Paul Brook <paul@codesourcery.com>
55
56 PR fortran/18218
57 * configure.ac: Check for strtof.
58 * configure: Regenerate.
59 * config.h.in: Regenerate.
60 * io/read.c (convert_real): Use strtof if available.
61 (convert_precision_real): Remove.
62 (read_f): Avoid poor exponentiation algorithm.
63
64 2004-11-05 Andreas Schwab <schwab@suse.de>
65
66 * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
67 AC_PROG_F77, F77 and FFLAGS.
68 * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
69 FCCOMPILE instead of F77COMPILE.
70 * configure, Makefile.in: Regenerate.
71
72 2004-11-05 Kelley Cook <kcook@gcc.gnu.org>
73
74 * acinclude.m4: Properly quote AC_CACHE_CHECK.
75 * Makefile.am: Add in ACLOCAL_AMFLAGS.
76 * aclocal.m4, configure, Makefile.in: Regenerate.
77
78 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
79
80 * config.h.in: Regenerate.
81 * configure: Regenerate.
82 * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
83 * io/unix.c (S_IRGRP): Define if undefined.
84 (S_IWGRP): Same.
85 (S_IROTH): Same.
86 (S_IWOTH): Same.
87 (tempfile): Use mktemp if mkstemp missing, fix typos.
88
89 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
90
91 * intrinsics/system.c ("libgfortran.h"): Move after system headers.
92
93 2004-10-30 Canqun Yang <canqun@nudt.edu.cn>
94
95 * intrinsics/rand.c (irand): Handle NULL argument.
96
97 2004-10-07 Paul Brook <paul@codesourcery.com>
98
99 * io/transfer.c (finalize_transfer): Free internal streams.
100 * io/unix.c (mem_close): Free stream object.
101
102 2004-10-07 Paul Brook <paul@codesourcery.com>
103
104 * intrinsics/string_intrinsics.c (string_verify): Fix off by one
105 error.
106
107 2004-10-06 Paul Brook <paul@codesourcery.com>
108
109 PR libfortran/17709
110 * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
111
112 2004-10-04 Andrew Pinski <pinskia@physics.uc.edu>
113
114 * intrinsics/mvbits.c: Commit the file.
115
116 2004-10-04 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
117
118 PR fortran/17283
119 * intrinsics/pack_generic.c (__pack): Allocate memory for return array
120 if not done by caller.
121 (__pack_s): New function.
122 * runtime/memory.c (internal_malloc, internal_malloc64): Allow
123 allocating zero memory.
124
125 PR fortran/17631
126 * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
127 * Makefile.in: Regenerate.
128 * intrinsics/mvbits.h: New file.
129
130 PR fortran/17776
131 * intrinsics/system.c: New file.
132 * Makefile.am: Add dependency for the new file.
133 * Makefile.in: Regenerate.
134
135 2004-10-04 Paul Brook <paul@codesourcery.com>
136 Bud Davis <bdavis9659@comcast.net>
137
138 PR fortran/17706
139 PR fortran/16434
140 * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
141 BN and BZ formats.
142 * io/write.c (output_float): Don't output minus zero.
143
144 2004-10-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
145
146 * intrinsics/abort.c ("libgfortran.h"): Move.
147 * intrinsics/date_and_time.c ("libgfortran.h"): Same.
148 * intrinsics/write.c ("libgfortran.h"): Same.
149
150 2004-09-26 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
151
152 PR libfortran/16137
153 * config.h.in (HAVE_POWF): Undefine.
154 * configure.ac: Check for 'powf' in library.
155 * configure: Regenerate.
156 * intrinsics/c99_functions.c (powf): New function.
157
158 2004-09-24 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
159
160 * intrinsics/etime.c (etime_): New function.
161
162 2004-09-21 Steven G. Kargl <kargls@comcast.net>
163
164 * libgfortran.h: define gfc_alloca()
165 * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
166
167 2004-09-21 Bud Davis <bdavis9659@comcast.net>
168
169 PR fortran/17286
170 * io/list_read.c (namelist_read): ignore spaces after
171 the '=' for namelist reads.
172
173 2004-09-15 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
174
175 * config.h.in: Regenerate.
176 * configure: Regenerate.
177 * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
178 * unix.c: Include stdio.h.
179 (HAVE_SYS_MMAN_H): Check.
180 (PROT_READ, PROT_WRITE): Provide default definitions.
181
182 2004-09-15 Steven G. Kargl <kargls@comcast.net>
183
184 * intrincics/getcwd.c: New file.
185 * Makefile.am: Add getcwd.c.
186 * Makefile.in: Regenerated.
187
188 2004-09-15 Steven G. Kargl <kargls@comcast.net>
189 Paul Brook <paul@codesourcery.com>
190
191 * intrinsics/env.c (getenv, get_environmental_variable): Remove
192 trailing white space. Use alloca. Honour trim_name.
193
194 2004-09-13 Bud Davis <bdavis9659@comcast.net>
195
196 PR fortran/17090
197
198 * io/list_read.c (list_formatted_read): Handle trailing spaces
199 at end of line.
200
201 2004-09-06 Steven G. Kargl <kargls@comcast.net>
202
203 * io/write.c (output_float): Typo in comment. Remove debugging
204 printf. Fix format for FP of form 1e10.
205
206 2004-09-03 Richard Henderson <rth@redhat.com>
207
208 * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
209 copy_loop_double, copy_loop_ldouble): New.
210 (__cshift0): Make shift type ssize_t. Use % operator instead of
211 div. Use specialized versions of copy loop depending on the shape.
212
213 2004-09-02 Paul Brook <paul@codesourcery.com>
214
215 * io/format.c (parse_format_list): Set repeat count for P descriptors.
216 * write.c (output_float): Fix condition. Correctly handle nonzero
217 scale factor.
218
219 2004-09-01 Eric Botcazou <ebotcazou@libertysurf.fr>
220
221 * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
222 * mk-srk-inc.sh: Likewise.
223
224 2004-09-01 Paul Brook <paul@codesourcery.com>
225
226 * runtime/error.c (generate_error): Set both iostat and
227 library_return.
228
229 2004-08-31 Paul Brook <paul@codesourcery.com>
230
231 PR libfortran/16805
232 * io/list_read.c (next_char): Don't signal EOF for internal files.
233 * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
234
235 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
236
237 * io/unit.c: Separate copyright years by ','.
238 (compare, insert_unit, delete_unit, is_internal_unit, close_units):
239 Remove blank line in beginning of function.
240 (get_unit): Simplify code.
241
242 2004-08-31 Paul Brook <paul@codesourcery.com>
243
244 * io/unit.c (get_unit): Remove superfluous if.
245
246 2004-08-31 Paul Brook <paul@codesourcery.com>
247
248 * io/transfer.c (read_sf): Rename uinty to readlen. Detect EOF.
249 (finalize_transfer): Move setjmp after namlist IO.
250 * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
251
252 2004-08-31 Paul Brook <paul@codesourcery.com>
253
254 * list_read.c (eat_separator): Set at_eo when a '/' is seen.
255
256 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
257
258 * libgfortran.h: Replace 'gfc_strlen_type' by
259 'gfc_charlen_type'. Update comment accordingly.
260 * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
261 Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
262
263 2004-08-31 Paul Brook <paul@codesourcery.com>
264
265 * libgfortran.h: Add comments.
266
267 2004-08-30 Richard Henderson <rth@redhat.com>
268
269 * Makefile.am (gfor_helper_src): Split selected_kind.f90.
270 (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
271 (selected_int_kind.inc selected_real_kind.inc): New rules.
272 * Makefile.in: Regenerate.
273 * mk-sik-inc.sh, mk-srk-inc.sh: New files.
274 * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
275 include table of detected kinds.
276 * intrinsics/selected_real_kind.f90: Similarly.
277
278 2004-08-29 Steven G. Kargl <kargls@comcast.net>
279 Paul Brook <paul@codesourcery.com>
280
281 * intrinsics/bessel.c: New file.
282 * intrinsics/erf.c: New file.
283 * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
284 * configure.ac: Test for C99 Bessel and Error functions.
285 * Makefile.in: Regenerate.
286 * config.h.in: Regenerate.
287 * configure: Regenerate.
288
289 2004-08-29 Steven G. Kargl <kargls@comcast.net>
290 Paul Brook <paul@codesourcery.com>
291
292 * Makefile.am: Add intrinsics/getXid.c.
293 * configure.ac: Add tests for get{g,p,u}id.
294 * config.h.in: Regenerate.
295 * Makefile.in: Regenerate.
296 * configure: Regenerate.
297
298 2004-08-28 Paul Brook <paul@codesourcery.com>
299
300 PR libfortran/17195
301 * libgfortran.h (rtoa): Remove prototype.
302 * runtime/error.c (rtoa): Remove.
303 * io/write.c (calculate_G_format): Don't add blanks if E format is
304 used. Add correct number of blanks when exponent width is specified.
305 (output_float): Rewrite.
306
307 2004-08-27 Paul Brook <paul@codesourcery.com>
308
309 * io/rewind.c (st_rewind): Reset unit to read mode.
310
311 2004-08-27 Bud Davis <bdavis9659@comcast.net>
312
313 PR fortran/16597
314 * io/io.h: created typedef for unit_mode.
315 * io/io.h (gfc_unit): added mode to unit structure.
316 * io/transfer.c (data_transfer_init): flush if a write then
317 read is done on a unit (direct access files).
318 * io/rewind.c (st_rewind): Used unit mode instead of global.
319
320 2004-08-24 Bud Davis <bdavis9659@comcast.net>
321
322 PR fortran/17143
323 * runtime/error.c (itoa): keep from overflowing during
324 mod operation by using unsigned variable.
325
326 2004-08-24 Bud Davis <bdavis9659@comcast.net>
327
328 PR fortran/17164
329 * runtime/string_intrinsics.c (string_index):check for
330 substring longer than string.
331
332 2004-08-24 David Edelsohn <edelsohn@gnu.org>
333
334 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
335 * Makefile.in: Rebuilt.
336
337 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
338
339 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
340 Fix formatting issues, update copyright years.
341
342 2004-08-21 Bud Davis <bdavis9659@comcast.net>
343
344 PR 16908
345 * io/transfer.c (next_record_w): Do not blank pad.
346 * io/transfer.c (next_record): Take into account partial records.
347
348 2004-08-18 Victor Leikehman <lei@il.ibm.com>
349
350 PR fortran/13278
351 * io/transfer.c (st_set_nml_var)
352 * io/write.c (namelist_write): Allow var_name and var_name_len to be
353 null. For strings, use string_length field instead of len.
354 * io/io.h (struct namelist_type): New field string_length.
355 (st_set_nml_var_char): New argument string_length.
356
357 2004-08-13 Bud Davis <bdavis9659@comcast.net>
358
359 PR gfortran/16935
360 * io/open.c (st_open): use flags instead of the unit structure.
361
362 2004-08-10 Victor Leikehman <lei@il.ibm.com>
363
364 * io/list_read.c (namelist_read): Convert variable names
365 to lower case, so that mixed-case names are recognized.
366 Don't read beyond terminating slash.
367
368 2004-08-09 Richard Henderson <rth@redhat.com>
369 Roger Sayle <roger@eyesopen.com>
370
371 * intrinsics/c99_functions.c (nextafterf): New implementation that
372 works correctly with denormalized numbers.
373
374 2004-08-09 Victor Leikehman <lei@il.ibm.com>
375
376 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
377 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
378 Allocate space if return value has NULL in its data field.
379 * generated/*.c: Regenerate.
380
381 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
382
383 * intrinsics/env.c: New file.
384 * Makefile.am: Add env.c to build.
385 * Makefile.in: Regenerate.
386
387 2004-08-05 Victor Leikehman <lei@il.ibm.com>
388
389 PR libgfortran/16704
390 * io/read.c (read_radix): Understand letters f and F as hex digits.
391
392 2004-08-04 Victor Leikehman <lei@il.ibm.com>
393
394 * libgfortran.h (array_t, size0) New declarations.
395 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
396 space if return value descriptor has NULL in its data field,
397 and initialize bounds and stride.
398 * intrinsics/size.c (array_t, size0): Declarations moved to
399 libgfortran.h.
400 * generated/*.c: Regenerate.
401
402 2004-08-03 Roger Sayle <roger@eyesopen.com>
403
404 PR libgfortran/16137
405 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
406 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
407 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
408 * config.h.in: Regenerate.
409 * configure: Regenerate.
410
411 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
412 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
413 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
414 implementations for targets that don't support C99 float functions.
415
416 2004-08-01 Roger Sayle <roger@eyesopen.com>
417
418 * io/write.c (write_float): Use the slightly more portable isnan
419 in preference to isinf.
420
421 2004-07-18 Bud Davis <bdavis9659@comcast.net>
422
423 * configure.ac: Add check for LFS support.
424 * configure: Regenerate
425
426 2004-07-11 Paul Brook <paul@codesourcery.com>
427
428 PR fortran/16303
429 * m4/cexp.m4 (carg): Return -pi to pi.
430 * generated/exp_c?.c: Regenerate.
431
432 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
433
434 PR fortran/16291
435 * libgfortran/io/write.c: (write_float): Added length check.
436 Remove pointless memset calls.
437
438 2004-07-04 Bud Davis <bdavis9659@comcast.net>
439 Paul Brook <paul@codesourcery.com>
440
441 PR fortran/15472
442 * io/transfer.c(us_write): set recl for seq unform writes to max size.
443 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
444 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
445 right time.
446 * io/unix.c(is_seekable): set based upon the file/device, not the
447 method being used to access it (fd or mmap).
448 * io/unix.c(fd_flush): don't set file_size if !seekable.
449 * io/unix.c(fd_truncate: ditto.
450
451 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
452 Paul Brook <paul@codesourcery.com>
453
454 PR fortran/15280
455 PR fortran/15665
456 * libgfortran.h (gfc_strlen_type): Define.
457 * intrinsics/args.c (getarg): Rename ...
458 (getarg_i4): ... to this.
459 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
460 get_command_i4, get_command_i8): New functions.
461
462 2004-07-04 Matthias Klose <doko@debian.org>
463
464 * libtool-version: New.
465 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
466 * Makefile.in: Regenerate.
467 * configure.ac: Remove libtool_VERSION macro
468 * configure: Regenerate
469
470 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
471 Steven Bosscher <stevenb@suse.de>
472
473 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
474 commit in prefix.
475
476 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
477 Paul Brook <paul@codesourcery.com>
478
479 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
480 comments.
481 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
482
483 2004-06-27 Bud Davis <bdavis9659@comcast.net>
484
485 PR gfortran/12839
486 * io/write.c (write_float): check signbit for Infinity.
487
488 2004-06-26 Bud Davis <bdavis9659@comcast.net>
489
490 PR gfortran/16196
491 * unix.c(regular_file): create file if it does not exist.
492
493 2004-06-24 Andrew Pinski <apinski@apple.com>
494
495 * configure.ac: Remove check for libmx.
496 * configure: Regenerate.
497
498 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
499
500 PR fortran/15750
501 * inquire.c (st_inquire): Add comment
502 * io.h (st_parameter): Add iolength.
503 (st_iolength, st_iolength_done): Declare.
504 * transfer.c (iolength_transfer, iolength_transfer_init,
505 st_iolength, st_iolength_done): New functions.
506
507 2004-06-21 Steven G. Kargl <kargls@comcast.net>
508
509 * etime.c (etime_sub): Remove array rank check;
510 Add check for sufficient space.
511
512 2004-06-19 Bud Davis <bdavis9659@comcast.net>
513
514 PR gfortran/16080
515 * io/list_read.c(set_value): fixed spelling.
516
517 2004-06-19 Bud Davis <bdavis9659@comcast.net>
518
519 PR gfortran/16080
520 * io/list_read.c(set_value): don't copy if the string is null.
521
522 2004-06-14 Bud Davis <bdavis9659@comcast.net>
523
524 PR gfortran/15292
525 * intrinsics/c99_functions.c: Use fpclassify if it exists.
526
527 2004-06-13 Paul Brook <paul@codesourcery.com>
528
529 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
530 * configure.ac: Add checks for nextafter and nextafterf.
531 * Makefile.in, config.h.in, configure: Regenerate.
532 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
533 * intrinsics/rand.c (rand): Use normalize_r4_i4.
534 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
535 (random_r8): Use normalize_r8_i8.
536 * runtime/normalize.c: New file.
537
538 2004-06-13 Steven G. Kargl <kargls@comcast.net>
539 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
540
541 * random.c: Fix several spelling and formatting mistakes in
542 comments.
543 (random_r8): Fix loop to make random numbers range in [0,1(.
544
545
546 2004-06-13 Steven G. Kargl <kargls@comcast.net>
547
548 * random.c (random_r4): Burn a random number.
549 (random_r8): fix infinite loop.
550
551 2004-06-12 Bud Davis <bdavis9659@comcast.net>
552 Steve Kargl <sgk@troutmask.apl.washington.edu>
553
554 PR gfortran/15292
555 * intrinsics/c99_functions.c: New file.
556 * Makefile.am: Add new file.
557 * configure.ac: Added test for round/roundf.
558 * Makefile.in: Regenerate.
559 * configure: Regenerate.
560 * configure.h.in: Regenerate.
561
562 2004-06-12 Steven G. Kargl <kargls@comcast.net>
563
564 * Makefile.am: Add rand.c and etime.c
565 * Makefile.in: Regenerated.
566 * aclocal.in: Regenerated.
567 * cpu_time.c (second_sub, second): New functions.
568 * rand.c (irand, rand, srand): New file.
569 * etime.c (etime_sub, etime): New file.
570
571 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
572 Steven Bosscher <stevenb@suse.de>
573
574 PR fortran/14923
575 * intrinsics/date_and_time.c: New file.
576 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
577 * Makefile.in, aclocal.m4: Regenerate.
578 * libgfortran.h: Prototype date_and_time().
579
580 2004-06-12 Bud Davis <bdavis9659@comcast.net>
581
582 PR fortran/15665
583 * intrinsics/args.c: Implement GETARG and IARGC.
584 * Makefile.am: Add it.
585 * Makefile.in: Regenerate.
586
587 2004-06-12 Bud Davis <bdavis9659@comcast.net>
588
589 PR gfortran/12839
590 * io/write.c(write_float): Format inf and nan IAW F2003.
591
592 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
593
594 PR gfortran/14897
595 * io/transfer.c (formatted_transfer): position is unique
596 for T and TL edit descriptors.
597 (data_transfer_init): set record length to size of internal
598 file.
599
600 2004-06-09 Bud Davis <bdavis9659@comcast.net>
601
602 PR gfortran/15755
603 * io/backspace.c(st_backspace): call correct routine for
604 formatted and un-formatted units.
605
606 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
607
608 PR gfortran/11800
609 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
610 (lib_LTLIBRARIES): Rename to ...
611 (toolexeclib_LTLIBRARIES): this for multilib support.
612 * configure.in: Rename to ...
613 * configure.ac: this. Update to modern autoconf style, enable
614 multilibs, support --enable-version-specific-runtime-libs.
615 * Makefile.in: Regenerated.
616 * configure: Regenerated.
617 * aclocal.m4: Regenerated.
618
619 2004-05-30 Steven G. Kargl <kargls@comcast.net>
620
621 * libgfortran.h (random_seed): Update prototype.
622 * intrinsics/random.c: Disable old implementation and add new one.
623
624 2004-05-30 Andreas Jaeger <aj@suse.de>
625
626 * intrinsics/random.c: Include unistd.h for close and read
627 prototypes, remove unneeded inclusion of assert.h.
628
629 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
630 unneeded inclusion of assert.h.
631
632 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
633
634 PR fortran/15234
635 * intrinsics/associated.c: Remove enum.
636 (associated): Replace TRUE/FALSE by 1/0.
637
638 2004-05-23 Steven G. Kargl <kargls@comcast.net>
639
640 * random.c (random_seed): Use correct variable.
641
642 2004-05-22 Steven G. Kargl <kargls@comcast.net>
643
644 * intrinsics/system_clock: New file.
645 * Makefile.am: Add intrinsics/system_clock.c.
646 * Makefile.in: Regenerate.
647
648 2004-05-21 Roger Sayle <roger@eyesopen.com>
649
650 * io/format.c (parse_format_list): Allow the comma after a string
651 literal to be optional.
652
653 2004-05-18 Paul Brook <paul@codesourcery.com>
654 Feng Wang <fengwang@nudt.edu.cn>
655
656 * Makefile.am (i_pow_c): Set it. Add build rule.
657 (gfor_built_src): Use it.
658 (m4_files): add m4/pow.m4.
659 * Makefile.in: Regenerate.
660 * m4/pow.m4: New file.
661 * generated/pow_*.c: Regenerate.
662
663 2004-05-18 Paul Brook <paul@codesourcery.com>
664
665 * Makefile.am: Remove references to types.m4.
666 * m4/iparm.m4: Merge with types.m4.
667 * m4/types.m4: Remove.
668 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
669 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
670 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
671 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
672 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
673 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
674 Update to use new iparm.m4.
675 * generated/*.c: Regenerate.
676
677 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
678
679 PR fortran/15235
680 * gfortran.h (offset_t): Rename to ...
681 (gfc_offset): ... this.
682 * io/backspace.c (formatted_backspace, unformatted_backspace),
683 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
684 transfer.c (us_read, us_write, next_record_r, next_record_w),
685 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
686 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
687 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
688 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
689 occurences of offset_t by gfc_offset.
690
691 2004-05-16 Paul Brook <paul@codesourcery.com>
692
693 * io/format.c (write_real): Don't include padding in format.
694
695 2004-05-16 Paul Brook <paul@codesourcery.com>
696
697 * io/format.c (format_lex): Make c an int.
698
699 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
700 Paul Brook <paul@codesourcery.com>
701
702 * io/write.c (write_logical): Don't print extra blank.
703 (write_integer): Base field width on kind.
704 (list_formatted_write): Output initial blank.
705
706 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
707
708 * io/io.h (flush): Add prototype.
709 * io/transfer.c (finalize_transfer): Flush partial records.
710 * io/unix.c (flush): New function.
711
712 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
713
714 PR fortran/15234
715 * io/io.h (unit_t): Rename to ...
716 (gfc_unit) ... this.
717 (unit_root, current_unit, find_file, find_unit, get_unit): Now
718 of type gfc_unit.
719 (delete_file, insert_unit, close_unit): Argument now of type
720 gfc_unit.
721 * backspace.c (st_backspace), close.c (st_close), endfile.c
722 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
723 (test_endfile, edit_modes, new_unit, already_open, st_open),
724 rewind.c (st_rewind), transfer.c (current_unit), unit.c
725 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
726 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
727 get_unit, init_units, close_unit), unix.c (find_file0,
728 find_file, delete_file): Replace all occurences of unit_t by
729 gfc_unit.
730
731 2004-05-15 Bud Davis <bdavis9659@comcast.net>
732
733 PR fortran/15311
734 * io/write.c (write_a): right justify A edit output.
735
736 2004-05-14 Bud Davis <bdavis9659@comcast.net>
737
738 PR fortran/15149
739 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
740 * runtime/main.c(init): Call random_seed as part of MAIN init.
741
742 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
743
744 * io/format.c: (parse_format_list): No comma is required after
745 P descriptor.
746
747 2004-05-13 Bud Davis <bdavis9659@comcast.net>
748
749 PR fortran/15204
750 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
751
752 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
753 Steven Bosscher <stevenb@suse.de>
754
755 PR libfortran/15234
756 * libgfortran.h: Include <inttypes.h> if available.
757
758 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
759
760 * io/unix.c (MAP_FAILED): Define if missing.
761 (mmap_alloc): Cast MAP_FAILED to char *.
762 (mmap_open): Likewise.
763
764 2004-04-26 Bud Davis <bdavis9659@comcast.net>
765
766 * generated/_abs_i8.f90: New file.
767 * generated/_abs_c4.f90: New file.
768 * generated/_abs_c8.f90: New file.
769 * Makefile.am: Add them.
770 * Makefile.in: Regenerate.
771 `
772 2004-04-26 Bud Davis <bdavis9659@comcast.net>
773
774 PR fortran/14056
775 * generated/_abs_i4.f90: New file.
776 * Makefile.am: Add it.
777 * Makefile.in: Regenerate.
778
779 2004-04-25 Bud Davis <bdavis9659@comcast.net>
780
781 PR fortran/14942
782 * io/list_read.c(list_formatted_read): finish consuming the
783 spaces and seperators at eoln to get ready for next item.
784
785 2004-04-23 Bud Davis <bdavis9659@comcast.net>
786
787 PR fortran/15113
788 * io/read.c(read_a): Handle field width > destination and no field width.
789
790 2004-04-22 Bud Davis <bdavis9659@comcast.net>
791
792 PR fortran/14906
793 * io/format.c (format_item): gracefully handle a ')'
794 when it is the first character encountered in the string.
795
796 2004-04-11 Bud Davis <bdavis9659@comcast.net>
797
798 PR fortran/14904
799 * io/transfer.c (next_record): Update last_record when
800 more than one record is written to a direct access file
801 with one write statement.
802
803 2004-04-11 Bud Davis <bdavis9659@comcast.net>
804
805 PR fortran/14901
806 * io/transfer.c (next_record_w) : No '\n' if internal.
807 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
808
809 2004-04-11 Bud Davis <bdavis9659@comcast.net>
810
811 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
812 Will need to change this later to support direct access files > 2gb.
813
814 2004-04-03 Bud Davis <bdavis9659@comcast.net>
815
816 PR gfortran/14762
817 * io/transfer.c (next_record_r) : Skip to next record.
818
819 2004-04-03 Bud Davis <bdavis9659@comcast.net>
820
821 PR gfortran/14836
822 * io/transfer.c (next_record): Update last_record for DIRECT
823
824 2004-04-03 Bud Davis <bdavis9659@comcast.net>
825
826 PR gfortran/14837
827 * io/unix.c (find_file0): Use fd field of struct
828
829 2004-04-03 Bud Davis <bdavis9659@comcast.net>
830
831 PR 14831
832 * io/inquire.c (inquire_via_unit): Changed return string for
833 BLANK=NULL. Use correct variable for ACTION.
834
835 2004-04-01 Bud Davis <bdavis9659@comcast.net>
836
837 PR 14746
838 * io/read.c (read_f): Allow a decimal without a leading digit.
839 * io/write.c (output_float): remove a leading '0' to keep from
840 overflowing the field (F edit descriptor).
841
842 2004-04-01 Bud Davis <bdavis9659@comcast.net>
843
844 PR gfortran/14565
845 * io/open.c (new_unit),
846 * io/io.h : new_unit is now visible
847 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
848 * io/transfer.c (data_transfer_init): remove compile warnings.
849 * io/rewind.c (st_rewind): ftruncate if writing.
850
851 2004-03-24 Bud Davis <bdavis9659@comcast.net>
852
853 * write.c (write_l): Use extract_int for 'L' edit descriptor.
854
855 2004-03-24 Bud Davis <bdavis9659@comcast.net>
856
857 PR 13919
858 * io/io.h (global_t):
859 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
860 Move eof_jmp to a global structure.
861 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
862
863 2004-03-24 Bud Davis <bdavis9659@comcast.net>
864
865 * m4/cexp.m4 (csqrt): Actually use the passed value.
866 * generated/exp_c?.c: Regenerate.
867
868 2004-03-24 Bud Davis <bdavis9659@comcast.net>
869
870 PR 12921
871 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
872 * open.c (new_unit): Moved test for positioned direct access error.
873 (init_units): Corrected calculation of max records.
874
875 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
876
877 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
878 * Makefile.in: Regenerate.
879 * m4/dotprodc.m4: New file. Implement complex dot_product.
880 * m4/dotprod.m4: Delete the complex implementation.
881 * generated/dotprod_*: Update.
882
883 2004-02-07 Bud Davis <bdavis9659@comcast.net>
884
885 * transfer.c (write_constant_string): Do not delete H's in hollerith
886 formats.
887
888 2004-01-05 Andrew Pinski <apinski@apple.com>
889
890 * configure.in: Check for csin in -lmx also.
891 * configure: Regenerate.
892
893 2004-01-01 Paul Brook <paul@codesourcery.com>
894
895 * io/list_read.c (find_nml_node): Make static.
896 (match_namelist_name): Ditto.
897 * io/read.c (convert_precision_real): Make static, fix spelling.
898 * io/transfer.c (extract_real): Remove unused prototype.
899 (st_set_nml_var): Make static.
900 * io/write.c (extract_real): Make static.
901
902 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
903
904 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
905
906 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
907
908 * io/transfer.c (data_transfer_init): Give a runtime error for list
909 formatted reads and writes from/to files opened for unformatted IO.
910
911 2003-11-30 Paul Brook <paul@nowt.org>
912
913 * runtime/memory.c (push_context): Remove.
914 (pop_context): Remove.
915 * libgfortran.h: Remove prototypes.
916
917 2003-11-27 Paul Brook <paul@nowt.org>
918
919 * runtime/memory.c (deallocate): Nullify pointer after freeing.
920
921 2003-11-27 Paul Brook <paul@nowt.org>
922
923 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
924 * libgfortran.h: Ditto.
925 * m4/in_pack.m4: Ditto.
926 * runtime/in_pack_generic.c: Ditto.
927 * runtime/memory.c: Ditto.
928
929 2003-11-26 Richard Henderson <rth@redhat.com>
930
931 * m4/exponent.m4, m4/fraction.m4: New.
932 * m4/nearest.m4, m4/set_exponent.m4: New.
933 * generated/*: Update.
934 * Makefile.am: Add them.
935 (AM_CFLAGS): New. Use -std=gnu99.
936 * Makefile.in: Regenerate.
937
938 2003-11-08 Paul Brook <paul@nowt.org>
939
940 PR fortran/12704
941 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
942 * m4/maxloc1.m4: Ditto.
943 * m4/minloc0.m4: Ditto.
944 * m4/minloc1.m4: Ditto.
945 * m4/ifunction.m4: Set return value for zero sized arrays.
946 * m4/iforeach.m4: Ditto.
947 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
948 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
949 * generated/*: Update.
950
951 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
952
953 PR fortran/12702
954 * io/list_read.c (eat_spaces): Treat tab as space.
955
956 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
957
958 * intrinsics/random.c: Add reference to paper containing algorithm.
959 (random_seed): Extra error checking and proper handling of arrays.
960 (arandom_r4, arandom_r8): Implement.
961
962 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
963
964 PR fortran/12703
965 * runtime/memory.c (allocate_size): Allow allocation
966 of zero-sized objects.
967
968 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
969
970 PR fortran/12701
971 * open.c (new_unit): Open without a file name opens
972 a file with name fort.<unit>.
973
974 2003-10-12 Feng Wang <wf_cs@yahoo.com>
975
976 * intrinsics/cshift0.c: New file.
977 * m4/cshift1.m4: New file
978 * generated/cshift*.c: New files.
979 * Makefile.am: Add them.
980 * Makefile.in: Regenerate.
981
982 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
983
984 * io/list_read.c (read_character): Remove unwanted call to free_saved.
985
986 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
987
988 * intrinsics/string_intrinsics.c (string_trim): New function.
989 (string_repeat): New function.
990
991 2003-10-11 Paul Brook <paul@nowt.org>
992
993 * intrinsics/dprod_r8.f90: New file.
994 * Makefile.am (gfor_specific_src): Add it.
995 (gfor_built_specific_src): Rename from gfor_build_specific_c.
996 Add new intrinsics.
997 (gfor_specific2_src): Rename from gfor_built_specific2_c.
998 Add new intrinsics.
999 * Makefile.in: Regenerate.
1000 * generated/_aint_*.f90: New files.
1001 * generated/_anint*.f90: New files.
1002 * generated/_atan2*.f90: New files.
1003 * generated/_mod*.f90: New files.
1004
1005 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
1006
1007 * intrinsics/selected_kind.f90: New file.
1008 * Makefile.am: Add it.
1009 * Makefile.in: regenerate.
1010
1011 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
1012 Paul Brook <paul@nowt.org>
1013
1014 * intrinsics/random.c: New file.
1015 * Makefile.am (gfor_hemper_src): Add it.
1016 (gfor_specific_c): Fix typo.
1017
1018 2003-09-19 Paul Brook <paul@nowt.org>
1019
1020 * All: rename g95->gfc.
1021
1022 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
1023
1024 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
1025
1026 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
1027
1028 * io/write.c (write_float): Dectection of positive infinite number,
1029 Not a Number(NaN) and negative infinite number.
1030 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
1031 output a very_very small number ( < 0.1e-100 ).
1032
1033 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
1034
1035 * libgfortran.h (xtoa, itoa): Parameter modified.
1036 * io/io.h (namelist_info): Declaration to support namelist I/O
1037 (st_parameter): Add namelist related component
1038 (ionml, empty_internal_buffer, st_set_nml_var_int,
1039 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
1040 st_set_nml_var_log): Declaration
1041 (set_integer, set_integer): Parameter changed
1042 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
1043 fnodes
1044 (parse_format_list): Fix bug about FMT_SLASH
1045 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
1046 newly allocated saved_string
1047 (next_char): Add detection of End_Of_Line support
1048 (convert_integer): Now can process 64 bits interger
1049 (read_real): Bug fixed
1050 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
1051 (match_namelist_name): New implemention
1052 * io/lock.c (ionml): New global variable
1053 (library_end): Free memory in ionml
1054 * io/open.c (st_open): Variable initializtion
1055 * io/read.c (max_value): 64 bits interger support
1056 (convert_precsion_real): New procedure to replace "strtod" with more
1057 features
1058 (read_f, read_radix): Input bug fix
1059 * io/transfer.c: (sf_seen_eor): New static variable
1060 (read_sf): Zeroize base buffer; fix bugs: single read statement can
1061 not get input in mutli line when read from stdin
1062 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
1063 request
1064 (data_transfer_init): Clear internal buffer for Internel File I/O.
1065 Internal File now worked. Detect some error condition for namelist.
1066 Some minor bug fix
1067 (next_record_w): Internal file and Namelist I/O support.
1068 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
1069 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
1070 * io/unit.c (implicit_unit): Deletion
1071 (get_unit): Now cannot open a unit implicitly.
1072 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
1073 mapped buffer.
1074 (mem_alloc_r_at): Internal file I/O support added
1075 (empty_internal_buffer): New function
1076 * io/write.c (extract_int): Support 64 bits interger processing
1077 (output_float): Varibale initialization
1078 (write_float): Infinite real number detection.
1079 (write_int): 64 bits integer I/O support
1080 (write_decimal): New function to output decimal number
1081 (otoa, btoa): Better implemention and 64 bits interger support
1082 (namelist_write): New function
1083 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
1084 interger support
1085
1086 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1087
1088 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
1089 get_mem ): Add attribute.
1090 * intrinsics/spread_generic.c (__spread): Fix spelling.
1091 * io/inquire.c (inquire_via_filename): Add const.
1092 * io/io.h (sys_exit): Add attribute.
1093 * io/io.h (move_pos_offset): Add move_pos_offset.
1094 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
1095 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
1096 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
1097 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
1098 write_z): Add const.
1099 * io/read.c (convert_real): Add const.
1100 * io/transfer.c (type_name): Add const.
1101 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
1102 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
1103 inquire_read, inquire_write, inquire_readwrite): Add const.
1104 * io/write.c (output_float): Remove unused variable.
1105 * io/write.c (write_a, extract_int, extract_real, output_float,
1106 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
1107 write_e, write_f, write_en, write_es, write_logical, write_integer,
1108 write_character, write_real, write_complex): Add const.
1109 * runtime/error.c (rtoa): Remove unused variable.
1110 * runtime/select.c (select_string): Add const.
1111 * runtime/stop.c (stop_string): Add const.
1112
1113 2003-08-10 Paul Brook <paul@nowt.org>
1114
1115 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
1116 (FFLAGS): Add -fno-underscoring.
1117 * Makefile.in: Regenerate.
1118 * intrinsics/abort.c: New file.
1119
1120 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
1121
1122 * fmain.c (main): Do not call init and cleanup; call set_args instead.
1123 * libgfortran.h (init, cleanup): Remove declarations.
1124 (set_args): Add declaration.
1125 * runtime/main.c (init, cleanup): Make them static, and give them
1126 the constructor and destructor attributes.
1127 (set_args): New function.
1128
1129 2003-08-10 Paul Brook <paul@nowt.org>
1130
1131 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
1132 on which string is longest.
1133
1134 2003-08-10 Paul Brook <paul@nowt.org>
1135
1136 * Makefile.am (EXTRA_DIST): Remove old files.
1137 * Makefile.in: Regenerate.
1138
1139 2003-07-26 Paul Brook <paul@nowt.org>
1140
1141 Rename library to libgfortran.
1142 * libgfortran.h: Change prefix to _libgfortran_.
1143
1144 2003-07-24 Paul Brook <paul@nowt.org>
1145
1146 * configure.in: Don't pull in system libtool. Use toplevel
1147 auxiliary files.
1148
1149 2003-07-22 Paul Brook <paul@nowt.org>
1150
1151 Regenerate all configury files.
1152
1153 2003-07-09 Chun Huang <compiler@sohu.com>
1154
1155 * intrinsics/string_intrinsic.c (string_scan): New function.
1156 (string_verify): New function.
1157
1158 2003-06-25 Paul Brook <paul@nowt.org>
1159
1160 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
1161 (mem_seek): Don't bother setting physical_offset.
1162
1163 2003-06-20 Paul Brook <paul@nowt.org>
1164
1165 * libgfor.h (stop_numeric): Declare.
1166 * runtime/pause.c: New file.
1167 * Makefile.am: Add it.
1168
1169 2003-06-08 Paul Brook <paul@nowt.org>
1170
1171 * m4/cexp.m4 (cabs): Use correct typed version.
1172 (csqrt): New function.
1173
1174 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
1175
1176 Spotted by Benjamin and Tobias:
1177 * io/list_read.c: Add Separator '\t'.
1178 (parse_real, read_real): Accept real values starting with an optional
1179 sign follows a decimal point.
1180
1181 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
1182
1183 * Makefile.am: Don't put cmath objects in subdir.
1184 * configure.in: Rename MATHOBJ to MATH_OBJ.
1185
1186 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
1187
1188 * intrinsics/associated.c: New file.
1189 * Makefile.am: Add it. Regenerate Makefile.in.
1190 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
1191 G95_DESCRIPTOR_DTYPE.
1192
1193 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
1194
1195 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
1196 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
1197 the scale_factor to 0 for F editing.
1198
1199 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
1200
1201 * libgfor.h: Only include stdint.h if it exists.
1202
1203 2003-05-07 Paul Brook <paul@nowt.org>
1204
1205 * libgfor.h: Use stdint.h types.
1206 * intrinsics/ishift.c: Ditto.
1207 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
1208
1209 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
1210
1211 * libgfor.h (offsetof): Define if nobody else does.
1212 * runtime/memory.c (HEADER_SIZE): Use it.
1213
1214 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
1215
1216 * configure.in: Require autoconf 2.54.
1217
1218 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
1219 Paul Brook <paul@nowt.org>
1220
1221 * intrinsics/reshape_generic.c: Copy the whole element, not just the
1222 first byte.
1223 * m4/transpose.m4: New file.
1224 * Makefile.am: Add them.
1225 Regenerate generated files.
1226
1227 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1228
1229 * io/format.c (parse_format_list): Allow 'X' without integer
1230 prefix. This is an extension. Interpretation is '1X'.
1231
1232 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
1233
1234 * io/format.c (parse_format_list): Allow '0P'.
1235
1236 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1237
1238 * Makefile.in: Re-regenerate for automake 1.7.3.
1239
1240 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
1241
1242 Port implementation for CHARACTER SELECT from Andy's tree.
1243 * runtime/select.c: New file
1244 * Makefile.am: Add it.
1245 * Makefile.in: Regenerate.
1246
1247 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
1248
1249 * io/transfer.c (formatted_transfer): Modified
1250 * io/unix.c (move_pos_offset): New Function.
1251 * io/format.c (parse_format_list): Modified.
1252
1253 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
1254
1255 * io/write.c (write_float,write_real): New implemention of
1256 FMT_G and default float editing.
1257 (calculate_exp,calculate_G_format,output_float): New Function.
1258 (write_float,write_real,write_logical): Modified
1259 * libgfor.h (default_rtoa): Remove Declaration.
1260 * runtime/error.c (default_rtoa): Remove Function.
1261
1262 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
1263
1264 Spotted by Yang:
1265 * io/write.c (extract_real): Add missing break statement.
1266
1267 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1268
1269 * cpu_time.c: Make sure we have a definition of HZ. Don't
1270 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
1271
1272 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1273 Paul Brook <paul@nowt.org>
1274
1275 * configure.in: Check for process time headers and GETTIMEOFDAY.
1276 * makefile.am: Add intrinsics/cpu_time.c.
1277 * acinclude.m4: New file.
1278 * intrinsics/cpu_time.c: New file.
1279 * m4/dotprodl.m4: Fix typo.
1280 Regenerate generated files.
1281
1282 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
1283
1284 * io/write.c (extract_real): Ouput floating point value.
1285 (write_float): New Function.
1286 (write_e, write_f, write_en, write_es): Modified
1287 * io/transfer.c (formatted_transfer): Modified.
1288 * libgfor.h (default_rtoa): Declaration.
1289 (rtoa): Declaration.
1290 * runtime/error.c (default_rtoa): New Function.
1291 (rtoa): New Function.
1292
1293 2003-04-05 Paul Brook <paul@nowt.org>
1294
1295 * intrinsics/spread_generic.c: New file.
1296 * Makefile.am: Add it. Regenerate Makefile.in.
1297
1298 2003-03-29 Paul Brook <paul@nowt.org>
1299
1300 * intrinsics/pack_generic.c: New file.
1301 * intrinsics/unpack_generic.c: New file.
1302 * Makefile.am: Add them. Regenerate Makefile.in.
1303
1304 2003-03-25 Paul Brook <paul@nowt.org>
1305
1306 * intrinsics/eoshift0.c: New file.
1307 * intrinsics/eoshift2.c: New file.
1308 * m4/eoshift1.m4: New file.
1309 * m4/eoshift3.m4: New file.
1310 * Makefile.am: Add them.
1311 * in_unpack_generic.c: Initialize src.
1312 Regenerate generated files.
1313
1314 2003-03-14 Paul Brook <paul@nowt.org>
1315
1316 * m4/shape.m4: Work properly with array temporaries.
1317 * m4/in_pack.m4: Skip redundant checks for array temporaries.
1318 * runtime/in_pack_generic.c: Ditto.
1319
1320 2003-03-12 Paul Brook <paul@nowt.org>
1321
1322 * m4/shape.m4: Work properly with noncontiguous arrays.
1323
1324 2003-03-08 Paul Brook <paul@nowt.org>
1325
1326 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1327 * runtime/in_pack_generic.c: Ditto.
1328
1329 2003-02-08 Paul Brook <paul@nowt.org>
1330
1331 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1332 * io/close.c (st_close): Return void.
1333 * io/open.c (st_open): Return void.
1334 * libgfor.h (g95_array_char): Declare.
1335 (internal_malloc_size): Ditto.
1336 (internal_pack*, internal_unpack*): Ditto.
1337 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1338 arrays.
1339 * m4/in_unpack.m4: Include file fixes.
1340 * m4/reshape.m4: Increment the correct source pointer.
1341 * Makefile.am (maxloc): Fix typo.
1342 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1343 storage if neccessary. Fix logic for packed arrays.
1344 * runtime/in_unpack_generic.c: Call optimized functions.
1345 * runtime/main.c: Use runtime_error to report errors.
1346 * memory.c (internal_malloc_size): Make non-static.
1347
1348 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1349
1350 * reshape_packed.c, lock.c: Add #include <string.h>.
1351 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1352 environ.c, error.c, memory.c, string.c: Add const.
1353 * error.c (show_locus): Add void.
1354
1355 2003-02-21 Paul Brook <paul@nowt.org>
1356
1357 * m4/in_pack.m4: Avoid returning const * parameter.
1358 * Makefile.am: Only regenerate files in maintainer mode.
1359
1360 2003-02-20 Paul Brook <paul@nowt.org>
1361
1362 Add array repacking support functions.
1363 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1364 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1365 * Makefile.am: Build them. Regenerate configury files.
1366 * generated/: New directory for generated files (need to move
1367 everything else there).
1368
1369 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1370
1371 * m4/cexp.m4: Fix typo.
1372
1373 2003-01-26 Paul Brook <paul@nowt.org>
1374
1375 * intrinsics/: Add missing generated files.
1376
1377 2003-01-26 Paul Brook <paul@nowt.org>
1378
1379 * Makefile.am: Put -I before the filename.
1380
1381 2003-01-24 Paul Brook <paul@nowt.org>
1382
1383 * configure.in: Add AM_MAINTAINER_MODE.
1384
1385 2003-01-23 Paul Brook <paul@nowt.org>
1386
1387 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1388 and auotmake.
1389 Also regenerate other configury files.
1390
1391 2003-01-21 Paul Brook <paul@nowt.org>
1392
1393 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1394
1395 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1396
1397 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1398 Don't include "alloca.h".
1399
1400 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1401
1402 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1403 * Makefile.am: Adjust file name.
1404 * Makefile.in: Regenerate.
1405 * gfortypes.h: Kill, include everything in...
1406 * libgfor.h: ...here. Include config.h
1407 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1408 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1409 intrinsics/reshape_packed.c, intrinsics/size.c,
1410 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1411 for prefix for all functions instead of hardcoded.
1412
1413 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1414
1415 * io/lock.c (library_end): Propagate library return
1416 code.
1417
1418 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1419
1420 Port fixes from Andy's tree:
1421 * io/read.c (read_decimal): Reverse sense of overflow
1422 comparison during integer reads.
1423 * io/format.c (revert): Fix comment.
1424 (next_format): Fix format revision.
1425 * io/unix.c: Fix and simplify mmap version of stream
1426 functions.
1427
1428 2003-01-11 Paul Brook <paul@nowt.org>
1429
1430 * configure, Makefile.in: Regenerate.
1431
1432 2003-01-11 Paul Brook <paul@nowt.org>
1433
1434 * runtime/stop.c: Rewrite.
1435
1436 2003-01-08 Paul Brook <paul@nowt.org>
1437
1438 * configure, Makefile.in: Regenerate.
1439
1440 2003-01-05 Paul Brook <paul@nowt.org>
1441
1442 * (*.m4) Move to m4/.
1443 * intrinsics/string.c (_gfor_string_index): New Function.
1444
1445 2002-12-29 Paul Brook <paul@nowt.org>
1446
1447 * intrinsics/reshape.*: New files.
1448 * gcc_config.patch: Update to new GCC configure system.
1449
1450 2002-10-10 Paul Brook <paul@nowt.org>
1451
1452 * intrinsics/size.c: New file.
1453 * intrinsics/shape.m4: New file.
1454 * Makefile.am: Add above files.
1455
1456 2002-10-02 Paul Brook <paul@nowt.org>
1457
1458 * fmain.c (main): Move here.
1459 * libgfor.c: From here.
1460 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1461 * Makefile.am: Build libgforbegin.
1462 * gcc_config.patch: Remove stray -march=athlon.
1463 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1464 * ifunction.m4: Move variable declarations to allow compilation with
1465 gcc < 3.0
1466 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1467 * README: Document use of patch -p1.
1468
1469 2002-09-12 Paul Brook <paul@nowt.org>
1470
1471 * math/*: Add complex math library functions.
1472 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1473 * Makefile.am: Add details for above.
1474 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1475
1476 2002-09-09 Paul Brook <paul@nowt.org>
1477
1478 * libgfor.c (determine_endianness): Use an array rather than a struct.
1479 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1480
1481 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1482
1483 * libgfor.c: Add fatal signal handler.
1484 Romove superfluous abort() calls.
1485
1486 2002-09-07 Paul Brook <paul@nowt.org>
1487
1488 * Makefile.am, intrinsics: Major rewrite.
1489
1490 2002-09-02 Paul Brook <paul@nowt.org>
1491
1492 * Makefile.am: Added -I$(srcdir) to m4 rule.
1493
1494 2002-08-30 Paul Brook <paul@nowt.org>
1495
1496 * io/*: Integrated libgforio.
1497 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1498 intrinsics in the intrisics directory.
1499 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1500 filename. Add 'and' and 'all' intrinsics.
1501
1502 2002-08-17 Paul Brook <paul@nowt.org>
1503
1504 * ALL: First release as more than just a single file