OSDN Git Service

2004-09-09 Victor Leikehman <lei@il.ibm.com>
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2004-09-09  Victor Leikehman  <lei@il.ibm.com>
2
3         * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
4         intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
5         Allocate space if return value has NULL in its data field.
6         * generated/*.c: Regenerate.
7
8 2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
9
10         * intrinsics/env.c: New file.
11         * Makefile.am: Add env.c to build.
12         * Makefile.in: Regenerate.
13
14 2004-08-05  Victor Leikehman  <lei@il.ibm.com>
15
16         PR libgfortran/16704
17         * io/read.c (read_radix): Understand letters f and F as hex digits.
18
19 2004-08-04  Victor Leikehman  <lei@il.ibm.com>
20
21         * libgfortran.h (array_t, size0) New declarations.
22         * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
23         space if return value descriptor has NULL in its data field,
24         and initialize bounds and stride.
25         * intrinsics/size.c (array_t, size0): Declarations moved to
26         libgfortran.h.
27         * generated/*.c: Regenerate.
28
29 2004-08-03  Roger Sayle  <roger@eyesopen.com>
30
31         PR libgfortran/16137
32         * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
33         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
34         scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
35         * config.h.in: Regenerate.
36         * configure: Regenerate.
37
38         * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
39         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
40         nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
41         implementations for targets that don't support C99 float functions.
42
43 2004-08-01  Roger Sayle  <roger@eyesopen.com>
44
45         * io/write.c (write_float): Use the slightly more portable isnan
46         in preference to isinf.
47
48 2004-07-18  Bud Davis  <bdavis9659@comcast.net>
49
50         * configure.ac: Add check for LFS support. 
51         * configure: Regenerate
52
53 2004-07-11  Paul Brook  <paul@codesourcery.com>
54
55         PR fortran/16303
56         * m4/cexp.m4 (carg): Return -pi to pi.
57         * generated/exp_c?.c: Regenerate.
58
59 2004-07-08  Andreas Krebbel  <krebbel1@de.ibm.com>
60
61         PR fortran/16291
62         * libgfortran/io/write.c: (write_float): Added length check.
63         Remove pointless memset calls.
64
65 2004-07-04  Bud Davis  <bdavis9659@comcast.net>
66             Paul Brook  <paul@codesourcery.com>
67
68         PR fortran/15472
69         * io/transfer.c(us_write): set recl for seq unform writes to max size.
70         * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
71         * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at 
72         right time.
73         * io/unix.c(is_seekable): set based upon the file/device, not the
74         method being used to access it (fd or mmap).
75         * io/unix.c(fd_flush): don't set file_size if !seekable.
76         * io/unix.c(fd_truncate: ditto.
77
78 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
79         Paul Brook  <paul@codesourcery.com>
80
81         PR fortran/15280
82         PR fortran/15665
83         * libgfortran.h (gfc_strlen_type): Define.
84         * intrinsics/args.c (getarg): Rename ...
85         (getarg_i4): ... to this.
86         (getarg_i8, get_command_argument_i4, get_command_argument_i8,
87         get_command_i4, get_command_i8): New functions.
88
89 2004-07-04  Matthias Klose  <doko@debian.org>
90
91         * libtool-version: New.
92         * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
93         * Makefile.in: Regenerate.
94         * configure.ac: Remove libtool_VERSION macro
95         * configure: Regenerate
96
97 2004-06-30  Steve Kargl  <sgk@troutmask.apl.washington.edu>
98             Steven Bosscher  <stevenb@suse.de>
99
100         * intrinsics/rand.c (rand): Wrap the irand() call from the previous
101         commit in prefix.
102
103 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
104         Paul Brook  <paul@codesourcery.com>
105
106         * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
107         comments.
108         * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
109
110 2004-06-27  Bud Davis  <bdavis9659@comcast.net>
111
112         PR gfortran/12839
113         * io/write.c (write_float): check signbit for Infinity.
114
115 2004-06-26  Bud Davis  <bdavis9659@comcast.net>
116
117         PR gfortran/16196
118         * unix.c(regular_file): create file if it does not exist.
119
120 2004-06-24  Andrew Pinski  <apinski@apple.com>
121
122         * configure.ac: Remove check for libmx.
123         * configure: Regenerate.
124
125 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
126
127         PR fortran/15750
128         * inquire.c (st_inquire): Add comment
129         * io.h (st_parameter): Add iolength.
130         (st_iolength, st_iolength_done): Declare.
131         * transfer.c (iolength_transfer, iolength_transfer_init,
132         st_iolength, st_iolength_done): New functions.
133
134 2004-06-21  Steven G. Kargl  <kargls@comcast.net>
135
136         * etime.c (etime_sub): Remove array rank check;
137         Add check for sufficient space.
138
139 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
140
141         PR gfortran/16080
142         * io/list_read.c(set_value): fixed spelling.
143
144 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
145
146         PR gfortran/16080
147         * io/list_read.c(set_value): don't copy if the string is null.
148
149 2004-06-14  Bud Davis  <bdavis9659@comcast.net>
150
151         PR gfortran/15292
152         * intrinsics/c99_functions.c: Use fpclassify if it exists.
153
154 2004-06-13  Paul Brook  <paul@codesourcery.com>
155
156         * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
157         * configure.ac: Add checks for nextafter and nextafterf.
158         * Makefile.in, config.h.in, configure: Regenerate.
159         * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
160         * intrinsics/rand.c (rand): Use normalize_r4_i4.
161         * intrinsics/random.c (random_r4): Use normalize_r4_i4.
162         (random_r8): Use normalize_r8_i8.
163         * runtime/normalize.c: New file.
164
165 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
166             Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
167
168         * random.c: Fix several spelling and formatting mistakes in 
169         comments.
170         (random_r8): Fix loop to make random numbers range in [0,1(.
171         
172
173 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
174
175         * random.c (random_r4): Burn a random number.
176         (random_r8): fix infinite loop.
177         
178 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
179       Steve Kargl  <sgk@troutmask.apl.washington.edu>
180
181         PR gfortran/15292
182         * intrinsics/c99_functions.c: New file.
183         * Makefile.am: Add new file.
184         * configure.ac: Added test for round/roundf.
185         * Makefile.in: Regenerate.
186         * configure: Regenerate.
187         * configure.h.in: Regenerate.
188
189 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
190
191         * Makefile.am: Add rand.c and etime.c
192         * Makefile.in: Regenerated.
193         * aclocal.in: Regenerated.
194         * cpu_time.c (second_sub, second): New functions.
195         * rand.c (irand, rand, srand): New file.
196         * etime.c (etime_sub, etime): New file.
197
198 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
199             Steven Bosscher  <stevenb@suse.de>
200
201         PR fortran/14923
202         * intrinsics/date_and_time.c: New file.
203         * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
204         * Makefile.in, aclocal.m4: Regenerate.
205         * libgfortran.h: Prototype date_and_time().
206
207 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
208
209         PR fortran/15665
210         * intrinsics/args.c: Implement GETARG and IARGC.
211         * Makefile.am: Add it.
212         * Makefile.in: Regenerate.
213
214 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
215
216         PR gfortran/12839
217         * io/write.c(write_float): Format inf and nan IAW F2003.
218
219 2004-06-09  Bud Davis  <bdavis9659@comcaste.net>
220
221         PR gfortran/14897
222         * io/transfer.c (formatted_transfer): position is unique
223          for T and TL edit descriptors.
224         (data_transfer_init): set record length to size of internal
225          file.
226
227 2004-06-09  Bud Davis  <bdavis9659@comcast.net>
228
229         PR gfortran/15755
230         * io/backspace.c(st_backspace): call correct routine for
231         formatted and un-formatted units.
232
233 2004-05-30  Andreas Jaeger  <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
234
235         PR gfortran/11800
236         * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
237         (lib_LTLIBRARIES): Rename to ...
238         (toolexeclib_LTLIBRARIES): this for multilib support.
239         * configure.in: Rename to ...
240         * configure.ac: this.  Update to modern autoconf style, enable
241         multilibs, support --enable-version-specific-runtime-libs.
242         * Makefile.in: Regenerated.
243         * configure: Regenerated.
244         * aclocal.m4: Regenerated.
245
246 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
247
248         * libgfortran.h (random_seed): Update prototype.
249         * intrinsics/random.c: Disable old implementation and add new one.
250
251 2004-05-30  Andreas Jaeger  <aj@suse.de>
252
253         * intrinsics/random.c: Include unistd.h for close and read
254         prototypes, remove unneeded inclusion of assert.h.
255
256         * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
257         unneeded inclusion of assert.h.
258
259 2004-05-27  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
260
261         PR fortran/15234
262         * intrinsics/associated.c: Remove enum.
263         (associated): Replace TRUE/FALSE by 1/0.
264
265 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
266
267         * random.c (random_seed): Use correct variable.
268
269 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
270
271         * intrinsics/system_clock: New file.
272         * Makefile.am: Add intrinsics/system_clock.c.
273         * Makefile.in: Regenerate.
274
275 2004-05-21  Roger Sayle  <roger@eyesopen.com>
276
277         * io/format.c (parse_format_list): Allow the comma after a string
278         literal to be optional.
279
280 2004-05-18  Paul Brook  <paul@codesourcery.com>
281         Feng Wang  <fengwang@nudt.edu.cn>
282
283         * Makefile.am (i_pow_c): Set it. Add build rule.
284         (gfor_built_src): Use it.
285         (m4_files): add m4/pow.m4.
286         * Makefile.in: Regenerate.
287         * m4/pow.m4: New file.
288         * generated/pow_*.c: Regenerate.
289
290 2004-05-18  Paul Brook  <paul@codesourcery.com>
291
292         * Makefile.am: Remove references to types.m4.
293         * m4/iparm.m4: Merge with types.m4.
294         * m4/types.m4: Remove.
295         * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
296         m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
297         m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
298         m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
299         m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
300         m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
301         Update to use new iparm.m4.
302         * generated/*.c: Regenerate.
303
304 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
305
306         PR fortran/15235
307         * gfortran.h (offset_t): Rename to ...
308         (gfc_offset): ... this.
309         * io/backspace.c (formatted_backspace, unformatted_backspace),
310         io/io.h (stream, gfc_unit, global_t, file_length, file_position),
311         transfer.c (us_read, us_write, next_record_r, next_record_w),
312         io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
313         fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
314         mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
315         mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
316         occurences of offset_t by gfc_offset.
317
318 2004-05-16  Paul Brook  <paul@codesourcery.com>
319
320         * io/format.c (write_real): Don't include padding in format.
321
322 2004-05-16  Paul Brook  <paul@codesourcery.com>
323
324         * io/format.c (format_lex): Make c an int.
325
326 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
327         Paul Brook  <paul@codesourcery.com>
328
329         * io/write.c (write_logical): Don't print extra blank.
330         (write_integer): Base field width on kind.
331         (list_formatted_write): Output initial blank.
332
333 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
334
335         * io/io.h (flush): Add prototype.
336         * io/transfer.c (finalize_transfer): Flush partial records.
337         * io/unix.c (flush): New function.
338
339 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
340
341         PR fortran/15234
342         * io/io.h (unit_t): Rename to ...
343         (gfc_unit) ... this.
344         (unit_root, current_unit, find_file, find_unit, get_unit): Now
345         of type gfc_unit.
346         (delete_file, insert_unit, close_unit): Argument now of type
347         gfc_unit.
348         * backspace.c (st_backspace), close.c (st_close), endfile.c
349         (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
350         (test_endfile, edit_modes, new_unit, already_open, st_open),
351         rewind.c (st_rewind), transfer.c (current_unit), unit.c
352         (internal_unit, unit_cache, rotate_left, rotate_right, insert,
353         insert_unit, delete_root, delete_treap, delete_unit, find_unit,
354         get_unit, init_units, close_unit), unix.c (find_file0,
355         find_file, delete_file): Replace all occurences of unit_t by
356         gfc_unit.
357
358 2004-05-15  Bud Davis  <bdavis9659@comcast.net>
359
360         PR fortran/15311
361         * io/write.c (write_a): right justify A edit output.
362
363 2004-05-14  Bud Davis  <bdavis9659@comcast.net>
364
365         PR fortran/15149
366         * libgfortan.h,intrinsics/random.c: Made random_seed visible.
367         * runtime/main.c(init): Call random_seed as part of MAIN init.
368
369 2004-05-13  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
370
371         * io/format.c: (parse_format_list): No comma is required after
372         P descriptor.
373
374 2004-05-13  Bud Davis  <bdavis9659@comcast.net>
375
376         PR fortran/15204
377         * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
378
379 2004-05-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
380             Steven Bosscher  <stevenb@suse.de>
381
382         PR libfortran/15234
383         * libgfortran.h: Include <inttypes.h> if available.
384
385 2004-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
386
387         * io/unix.c (MAP_FAILED): Define if missing.
388         (mmap_alloc): Cast MAP_FAILED to char *.
389         (mmap_open): Likewise.
390
391 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
392
393         * generated/_abs_i8.f90: New file.
394         * generated/_abs_c4.f90: New file.
395         * generated/_abs_c8.f90: New file.
396         * Makefile.am: Add them.
397         * Makefile.in: Regenerate.
398 `
399 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
400
401         PR fortran/14056
402         * generated/_abs_i4.f90: New file.
403         * Makefile.am: Add it.
404         * Makefile.in: Regenerate.
405
406 2004-04-25  Bud Davis  <bdavis9659@comcast.net>
407
408         PR fortran/14942
409         * io/list_read.c(list_formatted_read): finish consuming the
410         spaces and seperators at eoln to get ready for next item.
411
412 2004-04-23  Bud Davis  <bdavis9659@comcast.net>
413
414         PR fortran/15113
415         * io/read.c(read_a): Handle field width > destination and no field width.
416
417 2004-04-22  Bud Davis  <bdavis9659@comcast.net>
418
419         PR fortran/14906
420         * io/format.c (format_item): gracefully handle a ')'
421         when it is the first character encountered in the string.
422
423 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
424
425         PR fortran/14904
426         * io/transfer.c (next_record): Update last_record when
427         more than one record is written to a direct access file
428         with one write statement.
429
430 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
431
432         PR fortran/14901
433         * io/transfer.c (next_record_w) : No '\n' if internal.
434         * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
435
436 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
437
438         * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
439         Will need to change this later to support direct access files > 2gb.
440
441 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
442
443         PR gfortran/14762
444         * io/transfer.c (next_record_r) : Skip to next record.
445
446 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
447
448         PR gfortran/14836
449         * io/transfer.c (next_record): Update last_record for DIRECT
450
451 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
452
453         PR gfortran/14837
454         * io/unix.c (find_file0): Use fd field of struct
455
456 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
457
458         PR 14831
459         * io/inquire.c (inquire_via_unit): Changed return string for
460         BLANK=NULL. Use correct variable for ACTION.
461
462 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
463
464         PR 14746
465         * io/read.c (read_f): Allow a decimal without a leading digit.
466         * io/write.c (output_float): remove a leading '0' to keep from
467         overflowing the field (F edit descriptor).
468
469 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
470
471         PR gfortran/14565
472         * io/open.c (new_unit),
473         * io/io.h : new_unit is now visible
474         * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
475         * io/transfer.c (data_transfer_init): remove compile warnings.
476         * io/rewind.c (st_rewind): ftruncate if writing.
477
478 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
479
480         * write.c (write_l): Use extract_int for 'L' edit descriptor.
481
482 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
483
484         PR 13919
485         * io/io.h (global_t):
486         * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
487           Move eof_jmp to a global structure.
488         * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
489
490 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
491
492         * m4/cexp.m4 (csqrt): Actually use the passed value.
493         * generated/exp_c?.c: Regenerate.
494
495 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
496
497         PR 12921
498         * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
499         * open.c (new_unit): Moved test for positioned direct access error.
500         (init_units): Corrected calculation of max records.
501
502 2004-02-06  Feng Wang  <fengwang@nudt.edu.cn>
503
504         * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
505         * Makefile.in: Regenerate.
506         * m4/dotprodc.m4: New file. Implement complex dot_product.
507         * m4/dotprod.m4: Delete the complex implementation.
508         * generated/dotprod_*: Update.
509
510 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
511
512         * transfer.c (write_constant_string): Do not delete H's in hollerith
513         formats.
514
515 2004-01-05  Andrew Pinski  <apinski@apple.com>
516
517         * configure.in: Check for csin in -lmx also.
518         * configure: Regenerate.
519
520 2004-01-01  Paul Brook  <paul@codesourcery.com>
521
522         * io/list_read.c (find_nml_node): Make static.
523         (match_namelist_name): Ditto.
524         * io/read.c (convert_precision_real): Make static, fix spelling.
525         * io/transfer.c (extract_real): Remove unused prototype.
526         (st_set_nml_var): Make static.
527         * io/write.c (extract_real): Make static.
528
529 2003-12-12  Huang Chun <chunhuang73@hotmal.com>
530
531         * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
532
533 2003-12-05  Melvin Hadasht  <melvin.hadasht@free.fr>
534
535         * io/transfer.c (data_transfer_init): Give a runtime error for list
536         formatted reads and writes from/to files opened for unformatted IO.
537
538 2003-11-30  Paul Brook  <paul@nowt.org>
539
540         * runtime/memory.c (push_context): Remove.
541         (pop_context): Remove.
542         * libgfortran.h: Remove prototypes.
543
544 2003-11-27  Paul Brook  <paul@nowt.org>
545
546         * runtime/memory.c (deallocate): Nullify pointer after freeing.
547
548 2003-11-27  Paul Brook  <paul@nowt.org>
549
550         * intrinsics/string_intrinsics.c: Use new memory allocation interface.
551         * libgfortran.h: Ditto.
552         * m4/in_pack.m4: Ditto.
553         * runtime/in_pack_generic.c: Ditto.
554         * runtime/memory.c: Ditto.
555
556 2003-11-26  Richard Henderson  <rth@redhat.com>
557
558         * m4/exponent.m4, m4/fraction.m4: New.
559         * m4/nearest.m4, m4/set_exponent.m4: New.
560         * generated/*: Update.
561         * Makefile.am: Add them.
562         (AM_CFLAGS): New.  Use -std=gnu99.
563         * Makefile.in: Regenerate.
564
565 2003-11-08  Paul Brook  <paul@nowt.org>
566
567         PR fortran/12704
568         * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
569         * m4/maxloc1.m4: Ditto.
570         * m4/minloc0.m4: Ditto.
571         * m4/minloc1.m4: Ditto.
572         * m4/ifunction.m4: Set return value for zero sized arrays.
573         * m4/iforeach.m4: Ditto.
574         * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
575         m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
576         * generated/*: Update.
577
578 2003-10-30  Toon Moene  <toon@moene.indiv.nluug.nl>
579
580         PR fortran/12702
581         * io/list_read.c (eat_spaces): Treat tab as space.
582
583 2003-10-30  Lars Segerlund  <Lars.Segerlund@comsys.se>
584
585         * intrinsics/random.c: Add reference to paper containing algorithm.
586         (random_seed): Extra error checking and proper handling of arrays.
587         (arandom_r4, arandom_r8): Implement.
588
589 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
590
591         PR fortran/12703
592         * runtime/memory.c (allocate_size): Allow allocation
593         of zero-sized objects.
594
595 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
596
597         PR fortran/12701
598         * open.c (new_unit): Open without a file name opens
599         a file with name fort.<unit>.
600
601 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
602
603         * intrinsics/cshift0.c: New file.
604         * m4/cshift1.m4: New file
605         * generated/cshift*.c: New files.
606         * Makefile.am: Add them.
607         * Makefile.in: Regenerate.
608
609 2003-10-12  XiaoQiang Zhang  <zhangapache@yahoo.com>
610
611         * io/list_read.c (read_character): Remove unwanted call to free_saved.
612
613 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
614
615         * intrinsics/string_intrinsics.c (string_trim): New function.
616         (string_repeat): New function.
617
618 2003-10-11  Paul Brook  <paul@nowt.org>
619
620         * intrinsics/dprod_r8.f90: New file.
621         * Makefile.am (gfor_specific_src): Add it.
622         (gfor_built_specific_src): Rename from gfor_build_specific_c.
623         Add new intrinsics.
624         (gfor_specific2_src): Rename from gfor_built_specific2_c.
625         Add new intrinsics.
626         * Makefile.in: Regenerate.
627         * generated/_aint_*.f90: New files.
628         * generated/_anint*.f90: New files.
629         * generated/_atan2*.f90: New files.
630         * generated/_mod*.f90: New files.
631
632 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
633
634         * intrinsics/selected_kind.f90: New file.
635         * Makefile.am: Add it.
636         * Makefile.in: regenerate.
637
638 2003-09-19  Lars Segerlund  <Lars.Segerlund@comsys.se>
639         Paul Brook  <paul@nowt.org>
640
641         * intrinsics/random.c: New file.
642         * Makefile.am (gfor_hemper_src): Add it.
643         (gfor_specific_c): Fix typo.
644
645 2003-09-19  Paul Brook  <paul@nowt.org>
646
647         * All: rename g95->gfc.
648
649 2003-09-18  XiaoQiang Zhang  <zhangapache@yahoo.com>
650
651         * io/write.c (output_float): Fix bug of FMT_E, Add comments.
652
653 2003-09-09  XiaoQiang Zhang  <zhangapache@yahoo.com>
654
655         * io/write.c (write_float): Dectection of positive infinite number,
656         Not a Number(NaN) and negative infinite number.
657         (ioutput_float): Bug fix for FMT_E and FMT_D processing to
658         output a very_very small number ( < 0.1e-100 ).
659
660 2003-09-07  XiaoQiang Zhang  <zhangapache@yahoo.com>
661
662         * libgfortran.h (xtoa, itoa): Parameter modified.
663         * io/io.h (namelist_info): Declaration to support namelist I/O
664         (st_parameter): Add namelist related component
665         (ionml, empty_internal_buffer, st_set_nml_var_int,
666         st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
667         st_set_nml_var_log): Declaration
668         (set_integer, set_integer): Parameter changed
669         * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
670          fnodes
671         (parse_format_list): Fix bug about FMT_SLASH
672         * io/list_read.c (push_char): Totally clear old saved_string, zeroize
673         newly allocated saved_string
674         (next_char): Add detection of End_Of_Line support
675         (convert_integer): Now can process 64 bits interger
676         (read_real): Bug fixed
677         (init_at_eol, find_nml_node, match_namelist_name): Add new functions
678         (match_namelist_name): New implemention
679         * io/lock.c (ionml): New global variable
680         (library_end): Free memory in ionml
681         * io/open.c (st_open): Variable initializtion
682         * io/read.c (max_value): 64 bits interger support
683         (convert_precsion_real): New procedure to replace "strtod" with more
684          features
685         (read_f, read_radix): Input bug fix
686         * io/transfer.c: (sf_seen_eor): New static variable
687         (read_sf): Zeroize base buffer; fix bugs: single read statement can
688         not get input in mutli line when read from stdin
689         (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
690          request
691         (data_transfer_init): Clear internal buffer for Internel File I/O.
692         Internal File now worked. Detect some error condition for namelist.
693         Some minor bug fix
694         (next_record_w): Internal file and Namelist I/O support.
695         (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
696         st_set_nml_var_complex, st_set_nml_var_log): Implemention.
697         * io/unit.c (implicit_unit): Deletion
698         (get_unit): Now cannot open a unit implicitly.
699         * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
700         mapped buffer.
701         (mem_alloc_r_at): Internal file I/O support added
702         (empty_internal_buffer): New function
703         * io/write.c (extract_int): Support 64 bits interger processing
704         (output_float): Varibale initialization
705         (write_float): Infinite real number detection.
706         (write_int): 64 bits integer I/O support
707         (write_decimal): New function to output decimal number
708         (otoa, btoa): Better implemention and 64 bits interger support
709         (namelist_write): New function
710         * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
711         interger support
712
713 2003-08-15  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
714
715         * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
716         get_mem ): Add attribute.
717         * intrinsics/spread_generic.c (__spread): Fix spelling.
718         * io/inquire.c (inquire_via_filename): Add const.
719         * io/io.h (sys_exit): Add attribute.
720         * io/io.h (move_pos_offset): Add move_pos_offset.
721         * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
722         inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
723         inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
724         write_en, write_es, write_f, write_i, write_l, write_o, write_x,
725         write_z): Add const.
726         * io/read.c (convert_real): Add const.
727         * io/transfer.c (type_name): Add const.
728         * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
729         inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
730         inquire_read, inquire_write, inquire_readwrite): Add const.
731         * io/write.c (output_float): Remove unused variable.
732         * io/write.c (write_a, extract_int, extract_real, output_float,
733         write_float, write_int, write_i, write_b, write_o, write_z, write_d,
734         write_e, write_f, write_en, write_es, write_logical, write_integer,
735         write_character, write_real, write_complex): Add const.
736         * runtime/error.c (rtoa): Remove unused variable.
737         * runtime/select.c (select_string): Add const.
738         * runtime/stop.c (stop_string): Add const.
739
740 2003-08-10  Paul Brook  <paul@nowt.org>
741
742         * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
743         (FFLAGS): Add -fno-underscoring.
744         * Makefile.in: Regenerate.
745         * intrinsics/abort.c: New file.
746
747 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
748
749         * fmain.c (main): Do not call init and cleanup; call set_args instead.
750         * libgfortran.h (init, cleanup): Remove declarations.
751         (set_args): Add declaration.
752         * runtime/main.c (init, cleanup): Make them static, and give them
753         the constructor and destructor attributes.
754         (set_args): New function.
755
756 2003-08-10  Paul Brook  <paul@nowt.org>
757
758         * intrinsics/strinf_intrinsics.c (compare_string): Return value based
759         on which string is longest.
760
761 2003-08-10  Paul Brook  <paul@nowt.org>
762
763         * Makefile.am (EXTRA_DIST): Remove old files.
764         * Makefile.in: Regenerate.
765
766 2003-07-26  Paul Brook  <paul@nowt.org>
767
768         Rename library to libgfortran.
769         * libgfortran.h: Change prefix to _libgfortran_.
770
771 2003-07-24  Paul Brook  <paul@nowt.org>
772
773         * configure.in: Don't pull in system libtool.  Use toplevel
774         auxiliary files.
775
776 2003-07-22  Paul Brook  <paul@nowt.org>
777
778         Regenerate all configury files.
779
780 2003-07-09  Chun Huang  <compiler@sohu.com>
781
782         * intrinsics/string_intrinsic.c (string_scan): New function.
783         (string_verify): New function.
784
785 2003-06-25  Paul Brook  <paul@nowt.org>
786
787         * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
788         (mem_seek): Don't bother setting physical_offset.
789
790 2003-06-20  Paul Brook  <paul@nowt.org>
791
792         * libgfor.h (stop_numeric): Declare.
793         * runtime/pause.c: New file.
794         * Makefile.am: Add it.
795
796 2003-06-08  Paul Brook  <paul@nowt.org>
797
798         * m4/cexp.m4 (cabs): Use correct typed version.
799         (csqrt): New function.
800
801 2003-06-07  Canqun Yang  <canqun@yahoo.com.cn>
802
803         Spotted by Benjamin and Tobias:
804         * io/list_read.c: Add Separator '\t'.
805         (parse_real, read_real): Accept real values starting with an optional
806         sign follows a decimal point.
807
808 2003-06-06  Steven Bosscher  <steven@gcc.gnu.org>
809
810         * Makefile.am: Don't put cmath objects in subdir.
811         * configure.in: Rename MATHOBJ to MATH_OBJ.
812
813 2003-06-02  Kejia Zhao  <Kejia_zh@yahoo.com.cn>
814
815         * intrinsics/associated.c: New file.
816         * Makefile.am: Add it. Regenerate Makefile.in.
817         * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
818         G95_DESCRIPTOR_DTYPE.
819
820 2003-06-01  Canqun Yang  <canqun@yahoo.com.cn>
821
822         * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
823         (calculate_G_format): Rewrite it to eliminate an infinte loop and set
824         the scale_factor to 0 for F editing.
825
826 2003-05-11  Tobias Schlüter  <innenminister@gmx.de>
827
828         * libgfor.h: Only include stdint.h if it exists.
829
830 2003-05-07  Paul Brook  <paul@nowt.org>
831
832         * libgfor.h: Use stdint.h types.
833         * intrinsics/ishift.c: Ditto.
834         * runtime/memory.c (malloc_t): Reorder fields for better alignment.
835
836 2003-05-05  Steven Bosscher  <steven@gcc.gnu.org>
837
838         * libgfor.h (offsetof): Define if nobody else does.
839         * runtime/memory.c (HEADER_SIZE): Use it.
840
841 2003-05-01  Tobias Schlüter  <innenminister@gmx.de>
842
843         * configure.in: Require autoconf 2.54.
844
845 2003-04-28  Tobias Schlüter  <innenminister@gmx.de>
846         Paul Brook  <paul@nowt.org>
847
848         * intrinsics/reshape_generic.c: Copy the whole element, not just the
849         first byte.
850         * m4/transpose.m4: New file.
851         * Makefile.am: Add them.
852         Regenerate generated files.
853
854 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
855
856         * io/format.c (parse_format_list): Allow 'X' without integer
857         prefix.  This is an extension.  Interpretation is '1X'.
858
859 2003-04-18  Tobias Schlüter  <Tobias.Schlueter@physik.uni-muenchen.de>
860
861         * io/format.c (parse_format_list): Allow '0P'.
862
863 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
864
865         * Makefile.in: Re-regenerate for automake 1.7.3.
866
867 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
868
869         Port implementation for CHARACTER SELECT from Andy's tree.
870         * runtime/select.c: New file
871         * Makefile.am: Add it.
872         * Makefile.in: Regenerate.
873
874 2003-04-17  Xiaoqiang Zhang <zhangapache@yahoo.com>
875
876         * io/transfer.c (formatted_transfer): Modified
877         * io/unix.c (move_pos_offset): New Function.
878         * io/format.c (parse_format_list): Modified.
879
880 2003-04-15  Xiaoqiang Zhang <zhangapache@yahoo.com>
881
882         * io/write.c (write_float,write_real): New implemention of
883         FMT_G and default float editing.
884         (calculate_exp,calculate_G_format,output_float): New Function.
885         (write_float,write_real,write_logical): Modified
886         * libgfor.h (default_rtoa): Remove Declaration.
887         * runtime/error.c (default_rtoa): Remove Function.
888
889 2003-04-15  Steven Bosscher  <steven@gcc.gnu.org>
890
891         Spotted by Yang:
892         * io/write.c (extract_real): Add missing break statement.
893
894 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
895
896         * cpu_time.c: Make sure we have a definition of HZ.  Don't
897         rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
898
899 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
900             Paul Brook  <paul@nowt.org>
901
902         * configure.in: Check for process time headers and GETTIMEOFDAY.
903         * makefile.am: Add intrinsics/cpu_time.c.
904         * acinclude.m4: New file.
905         * intrinsics/cpu_time.c: New file.
906         * m4/dotprodl.m4: Fix typo.
907         Regenerate generated files.
908
909 2003-04-11  Xiaoqiang Zhang <zhangapache@yahoo.com>
910
911         * io/write.c (extract_real): Ouput floating point value.
912         (write_float): New Function.
913         (write_e, write_f, write_en, write_es): Modified
914         * io/transfer.c (formatted_transfer): Modified.
915         * libgfor.h (default_rtoa): Declaration.
916         (rtoa): Declaration.
917         * runtime/error.c (default_rtoa): New Function.
918         (rtoa): New Function.
919
920 2003-04-05  Paul Brook  <paul@nowt.org>
921
922         * intrinsics/spread_generic.c: New file.
923         * Makefile.am: Add it. Regenerate Makefile.in.
924
925 2003-03-29  Paul Brook  <paul@nowt.org>
926
927         * intrinsics/pack_generic.c: New file.
928         * intrinsics/unpack_generic.c: New file.
929         * Makefile.am: Add them. Regenerate Makefile.in.
930
931 2003-03-25  Paul Brook  <paul@nowt.org>
932
933         * intrinsics/eoshift0.c: New file.
934         * intrinsics/eoshift2.c: New file.
935         * m4/eoshift1.m4: New file.
936         * m4/eoshift3.m4: New file.
937         * Makefile.am: Add them.
938         * in_unpack_generic.c: Initialize src.
939         Regenerate generated files.
940
941 2003-03-14  Paul Brook  <paul@nowt.org>
942
943         * m4/shape.m4: Work properly with array temporaries.
944         * m4/in_pack.m4: Skip redundant checks for array temporaries.
945         * runtime/in_pack_generic.c: Ditto.
946
947 2003-03-12  Paul Brook  <paul@nowt.org>
948
949         * m4/shape.m4: Work properly with noncontiguous arrays.
950
951 2003-03-08  Paul Brook  <paul@nowt.org>
952
953         * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
954         * runtime/in_pack_generic.c: Ditto.
955
956 2003-02-08  Paul Brook  <paul@nowt.org>
957
958         * intrinsics/reshape_generic.c: Use runtime_error to report errors.
959         * io/close.c (st_close): Return void.
960         * io/open.c (st_open): Return void.
961         * libgfor.h (g95_array_char): Declare.
962         (internal_malloc_size): Ditto.
963         (internal_pack*, internal_unpack*): Ditto.
964         * m4/in_pack.m4: Allocate storage if neccessary.  Fix logic for packed
965         arrays.
966         * m4/in_unpack.m4: Include file fixes.
967         * m4/reshape.m4: Increment the correct source pointer.
968         * Makefile.am (maxloc): Fix typo.
969         * runtime/in_pack_generic.c: Call optimized functions. Allocate
970         storage if neccessary. Fix logic for packed arrays.
971         * runtime/in_unpack_generic.c: Call optimized functions.
972         * runtime/main.c: Use runtime_error to report errors.
973         * memory.c (internal_malloc_size): Make non-static.
974
975 2003-02-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
976
977         * reshape_packed.c, lock.c: Add #include <string.h>.
978         * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
979         environ.c, error.c, memory.c, string.c: Add const.
980         * error.c (show_locus): Add void.
981
982 2003-02-21  Paul Brook  <paul@nowt.org>
983
984         * m4/in_pack.m4: Avoid returning const * parameter.
985         * Makefile.am: Only regenerate files in maintainer mode.
986
987 2003-02-20  Paul Brook  <paul@nowt.org>
988
989         Add array repacking support functions.
990         * m4/in_pack.m4, m4/in_unpack.m4: New files.
991         * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
992         * Makefile.am: Build them.  Regenerate configury files.
993         * generated/: New directory for generated files (need to move
994         everything else there).
995
996 2003-02-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
997
998         * m4/cexp.m4: Fix typo.
999
1000 2003-01-26  Paul Brook  <paul@nowt.org>
1001
1002         * intrinsics/: Add missing generated files.
1003
1004 2003-01-26  Paul Brook  <paul@nowt.org>
1005
1006         * Makefile.am: Put -I before the filename.
1007
1008 2003-01-24  Paul Brook  <paul@nowt.org>
1009
1010         * configure.in: Add AM_MAINTAINER_MODE.
1011
1012 2003-01-23  Paul Brook  <paul@nowt.org>
1013
1014         * configure.in, Makefile.am: Modify to work with unmodified autoconf
1015         and auotmake.
1016         Also regenerate other configury files.
1017
1018 2003-01-21  Paul Brook  <paul@nowt.org>
1019
1020         * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1021
1022 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1023
1024         * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1025         Don't include "alloca.h".
1026
1027 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1028
1029         * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1030         * Makefile.am: Adjust file name.
1031         * Makefile.in: Regenerate.
1032         * gfortypes.h: Kill, include everything in...
1033         * libgfor.h: ...here.  Include config.h
1034         * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1035         intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1036         intrinsics/reshape_packed.c, intrinsics/size.c,
1037         m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1038         for prefix for all functions instead of hardcoded.
1039
1040 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1041
1042         * io/lock.c (library_end): Propagate library return
1043         code.
1044
1045 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1046
1047         Port fixes from Andy's tree:
1048         * io/read.c (read_decimal): Reverse sense of overflow
1049         comparison during integer reads.
1050         * io/format.c (revert): Fix comment.
1051         (next_format): Fix format revision.
1052         * io/unix.c: Fix and simplify mmap version of stream
1053         functions.
1054
1055 2003-01-11  Paul Brook  <paul@nowt.org>
1056
1057         * configure, Makefile.in: Regenerate.
1058
1059 2003-01-11  Paul Brook  <paul@nowt.org>
1060
1061         * runtime/stop.c: Rewrite.
1062
1063 2003-01-08  Paul Brook  <paul@nowt.org>
1064
1065         * configure, Makefile.in: Regenerate.
1066
1067 2003-01-05  Paul Brook  <paul@nowt.org>
1068
1069         * (*.m4) Move to m4/.
1070         * intrinsics/string.c (_gfor_string_index): New Function.
1071
1072 2002-12-29  Paul Brook  <paul@nowt.org>
1073
1074         * intrinsics/reshape.*: New files.
1075         * gcc_config.patch: Update to new GCC configure system.
1076
1077 2002-10-10  Paul Brook  <paul@nowt.org>
1078
1079         * intrinsics/size.c: New file.
1080         * intrinsics/shape.m4: New file.
1081         * Makefile.am: Add above files.
1082
1083 2002-10-02  Paul Brook  <paul@nowt.org>
1084
1085         * fmain.c (main): Move here.
1086         * libgfor.c: From here.
1087         * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1088         * Makefile.am: Build libgforbegin.
1089         * gcc_config.patch: Remove stray -march=athlon.
1090         * dotprodl.m4: Fix use of L8_TO_L4 macro.
1091         * ifunction.m4: Move variable declarations to allow compilation with
1092         gcc < 3.0
1093         * specific.m4, specific4.m4: Fix typo typecode->type_code.
1094         * README: Document use of patch -p1.
1095
1096 2002-09-12  Paul Brook  <paul@nowt.org>
1097
1098         * math/*: Add complex math library functions.
1099         * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1100         * Makefile.am: Add details for above.
1101         * configure.in: Use AC_PROG_F95.  Test for the presence of csin.
1102
1103 2002-09-09  Paul Brook  <paul@nowt.org>
1104
1105         * libgfor.c (determine_endianness): Use an array rather than a struct.
1106         * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1107
1108 2002-09-09  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1109
1110         * libgfor.c: Add fatal signal handler.
1111         Romove superfluous abort() calls.
1112
1113 2002-09-07  Paul Brook <paul@nowt.org>
1114
1115         * Makefile.am, intrinsics: Major rewrite.
1116
1117 2002-09-02  Paul Brook <paul@nowt.org>
1118
1119         * Makefile.am: Added -I$(srcdir) to m4 rule.
1120
1121 2002-08-30  Paul Brook <paul@nowt.org>
1122
1123         * io/*: Integrated libgforio.
1124         * Makefile.am, configure.in: Make compatable with GCC. Build code for
1125         intrinsics in the intrisics directory.
1126         * intrinsics/intrinsics.m4: Move here. Strip directories from the
1127         filename. Add 'and' and 'all' intrinsics.
1128
1129 2002-08-17  Paul Brook <paul@nowt.org>
1130
1131         * ALL: First release as more than just a single file