OSDN Git Service

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