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