OSDN Git Service

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