OSDN Git Service

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