OSDN Git Service

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