OSDN Git Service

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