OSDN Git Service

2005-07-07 Thomas Koenig <Thomas.Koenig@online.de>
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2005-07-07  Thomas Koenig  <Thomas.Koenig@online.de>
2
3         PR libfortran/21594
4         * intrinsics/eoshift0.c:  If abs(shift) > len, fill the
5         the whole array with the boundary value, but don't overrun it.
6         * intrinsics/eoshift2.c:  Likewise.
7         * m4/eoshift1.m4:  Likewise.
8         * m4/eoshift3.m4:  Likewise.
9         * generated/eoshift1_4.c:  Regenerated.
10         * generated/eoshift1_8.c:  Regenerated.
11         * generated/eoshift3_4.c:  Regenerated.
12         * generated/eoshift3_8.c:  Regenerated.
13
14 2005-07-07  Feng Wang  <fengwang@nudt.edu.cn>
15
16         PR fortran/16531
17         * io/transfer.c (formatted_transfer): Enable FMT_A on other types to
18         support Hollerith constants.
19
20 2005-07-01  Andreas Jaeger  <aj@suse.de>
21
22         * intrinsics/unpack_generic.c: Remove const from parameter.
23
24         * io/transfer.c (formatted_transfer): Remove unused variable.
25
26 2005-06-28  Thomas Koenig  <Thomas.Koenig@online.de>
27
28         PR libfortran/22142
29         * m4/eoshift1.m4:  Correct bstride (it needs to be multiplied
30         by size since it's a char pointer).
31         * m4/eoshift1_4.c:  Regenerated.
32         * m4/eoshift1_8.c:  Regenerated.
33
34 2005-06-28  Thomas Koenig  <Thomas.Koenig@online.de>
35
36         PR libfortran/22142
37         * m4/eoshift3.m4:  Correct bstride (it needs to be multiplied
38         by size since it's a char pointer).
39         * m4/eoshift3_4.c:  Regenerated.
40         * m4/eoshift3_8.c:  Regenerated.
41
42 2005-06-28  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
43
44         PR libfortran/22170
45         * io/transfer.c (formatted_transfer): Do not iterate on the
46         repeat count of a FMT_SLASH, since this is already done in
47         next_format().
48
49 2005-06-25  Thomas Koenig  <Thomas.Koenig@online.de>
50
51         PR libfortran/22144
52         * m4/cshift1.m4: Remove const from argument ret.
53         Populate return array descriptor if ret->data is NULL.
54         * m4/eoshift1.m4: Likewise.
55         * m4/eoshift3.m4: Likewise.
56         * generated/cshift1_4.c:  Regenerated.
57         * generated/cshift1_8.c:  Regenerated.
58         * generated/eoshift1_4.c:  Regenerated.
59         * generated/eoshift1_8.c:  Regenerated.
60         * generated/eoshift3_4.c:  Regenerated.
61         * generated/eoshift3_8.c:  Regenerated.
62
63 2005-06-24  Jerry DeLisle <jvdelisle@verizon.net>
64
65         PR libfortran/21915
66         * Makefile.am: Include intrinsics/hyper.c.
67         * c99_protos.h: Add prototypes for single precision versions of
68         acosh, asinh, and atanh for platforms that do not have these.
69         * config.h.in: Add #undef for wrappers.
70         * configure.ac: Add checks for single precision versions.
71         * aclocal.m4: Regenerated.
72         * Makefile.in: Regenerated.
73         * configure: Regenerated.
74         * intrinsics/hyper.c: New file, adds new wrapper functions.
75
76 2005-06-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
77
78         * intrinsics/c99_functions.c (log10l): New log10l function for
79         systems where this is not available.
80         * c99_protos.h: Prototype for log10l function.
81         * libgfortran.h: Use generated kinds.h to define GFC_INTEGER_*,
82         GFC_UINTEGER_*, GFC_LOGICAL_*, GFC_REAL_*, GFC_COMPLEX_*. Update
83         prototypes for gfc_itoa and xtoa.
84         * io/io.h: Update prototypes for set_integer and max_value.
85         * io/list_read.c (convert_integer): Use new
86         GFC_(INTEGER|REAL)_LARGEST type.
87         * io/read.c (set_integer): Likewise.
88         (max_value): Likewise.
89         (convert_real): Likewise.
90         (real_l): Likewise.
91         (next_char): Likewise.
92         (read_decimal): Likewise.
93         (read_radix): Likewise.
94         (read_f): Likewise.
95         * io/write.c (extract_int): Use new GFC_INTEGER_LARGEST type.
96         (extract_real): Use new GFC_REAL_LARGEST type.
97         (calculate_exp): Likewise.
98         (calculate_G_format): Likewise.
99         (output_float): Likewise. Use log10l for long double values.
100         Add comment for sprintf format. Use GFC_REAL_LARGEST_FORMAT.
101         (write_l): Use new GFC_INTEGER_LARGEST type.
102         (write_float): Use new GFC_REAL_LARGEST type.
103         (write_int): Remove useless special case for (len < 8).
104         (write_decimal): Use GFC_INTEGER_LARGEST.
105         (otoa): Use GFC_UINTEGER_LARGEST as argument.
106         (btoa): Use GFC_UINTEGER_LARGEST as argument.
107         * runtime/error.c (gfc_itoa): Use GFC_INTEGER_LARGEST as
108         argument.
109         (xtoa): Use GFC_UINTEGER_LARGEST as argument.
110         * Makefile.am: Use mk-kinds-h.sh to generate header kinds.h
111         with all Fortran kinds available.
112         * configure.ac: Check for strtold and log10l.
113         * Makefile.in: Regenerate.
114         * aclocal.m4: Regenerate.
115         * configure: Regenerate.
116         * config.h.in: Regenerate.
117         * mk-kinds-h.sh: Configuration script for available integer
118         and real kinds.
119
120
121 2005-06-18  Janne Blomqvist  <jblomqvi@cc.hut.fi>
122
123         * unix.c (stream_at_bof): Don't assume that all non-mmapped files
124         are non-seekable.
125         (stream_at_eof): Likewise.
126
127 2005-06-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
128
129         PR libfortran/19155
130         * io/read.c (convert_real): strtod can set errno to EINVAL on an
131         empty string, but we shouldn't have an error in that case.
132
133 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
134
135         PR libfortran/19216
136         * io/list_read.c (eat_separator): No need to call next_record,
137         even in non-namelist_mode.
138
139 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
140
141         * io/transfer.c (formatted_transfer): Fix typo in error message.
142
143 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
144
145         PR libfortran/16436
146         * io/transfer.c (read_sf): Correct updating of bytes_left field.
147         (formatted_transfer): Correct updating of bytes_left field and
148         reformatting code (comments and whitespace).
149         * io/unix.c (move_pos_offset): "active" field should not be
150         changed here. Whitespace corrections.
151
152 2005-06-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
153
154         PR libfortran/21950
155         * intrinsics/c99_functions.c (scalbn): Provide fallback
156         implementation for scalbn.
157         * c99_protos.h: Prototype for scalbn.
158         * configure.ac: Add check for scalbn.
159         * configure: Regenerate.
160         * config.h.in: Regenerate.
161
162 2005-06-14  Thomas Koenig  <Thomas.Koenig@online.de>
163
164         * intrinsics/eoshift0.c:  Removed prototype for eoshift0.
165         * intrinsics/eoshift2.c:  Removed prototype for eoshift2.
166
167 2005-06-14  Tom Tromey  <tromey@redhat.com>
168
169         PR libgcj/19877:
170         * configure, aclocal.m4, Makefile.in: Rebuilt.
171
172 2005-06-12  Thomas Koenig  <Thomas.Koenig@online.de>
173
174         PR libfortran/21594
175         * intrinsics/eoshift0.c:  Add prototype for eoshift0.
176         * intrinsics/eoshift2.c:  Add prototype for eoshift2.
177
178 2005-06-12  Steven G. Kargl <kargls@comcast.net>
179             Thomas Koenig  <Thomas.Koenig@online.de>
180
181         PR libfortran/PR21797
182         * m4/cexp.m4 (csqrt`'q):  Add type qualifyer to
183         sqrt and fabs.
184         * generated/exp_c4.c:  Regenerated.
185
186 2005-06-12  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
187
188         PR libfortran/19155
189         * io/read.c (read_f): Take care of spaces after initial sign.
190
191 2005-06-11  Thomas Koenig  <Thomas.Koenig@onlinde.de>
192
193         PR libfortran/21333
194         * Makefile.am: Add in_pack_c4.c, in_pack_c8.c, in_unpack_c4.c
195         and in_unpack_c8.c.
196         * Makefile.in: Regenerate.
197         * libgfortran.h:  Declare internal_pack_c4, internal_pack_c8,
198         internal_unpack_c4 and internal_unpack_c8.
199         * m4/in_pack.m4: Use rtype_ccode insteald of rtype_kind
200         in function name.
201         Use sizeof (rtype_name) as size for memory allocation.
202         * m4/in_unpack.m4: Use rtype_ccode insteald of rtype_kind
203         in function name.
204         Use sizeof (rtype_name) for calculation of sizes for memcpy.
205         * runtime/in_pack_generic.c:  For real, integer and logical
206         call internal_pack_4 if size==4 and internal_pack_8 if
207         size==8.
208         For complex, call internal_pack_c4 if size==8 and
209         internal_pack_c8 if size==16.
210         * runtime/in_unpack_generic.c: For real, integer and logical
211         call internal_unpack_4 if size==4 and internal_unpack_8 if
212         size==8.
213         For complex, call internal_unpack_c4 if size==8 and
214         internal_unpack_c8 if size==16.
215         * generated/in_pack_i4.c:  Regenerated.
216         * generated/in_pack_i8.c:  Regenerated.
217         * generated/in_unpack_i4.c:  Regenerated.
218         * generated/in_unpack_i8.c:  Regenerated.
219         * generated/in_pack_c4.c:  New file.
220         * generated/in_pack_c8.c:  New file.
221         * generated/in_unpack_c4.c:  New file.
222         * generated/in_unpack_c8.c:  New file.
223
224 2005-06-09  Thomas Koenig  <Thomas.Koenig@online.de>
225
226         PR libfortran/21480
227         * m4/reshape.m4:  Use sizeof (rtype_name) for sizes to be passed
228         to reshape_packed.
229         * generated/reshape_c4.c:  Regenerated.
230         * generated/reshape_c8.c:  Regenerated.
231         * generated/reshape_i4.c:  Regenerated.
232         * generated/reshape_i8.c:  Regenerated.
233
234 2005-06-07  Thomas Koenig  <Thomas.Koenig@online.de>
235
236         PR libfortran/21926
237         * m4/matmul.m4:  Correct zeroing of result for non-packed
238         arrays with lowest stride is one.
239         * generated/matmul_c4.c:  Regenerated.
240         * generated/matmul_c8.c:  Regenerated.
241         * generated/matmul_i4.c:  Regenerated.
242         * generated/matmul_i8.c:  Regenerated.
243         * generated/matmul_r4.c:  Regenerated.
244         * generated/matmul_r8.c:  Regenerated.
245
246 2005-05-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
247
248         PR libfortran/20179
249         * io/unix.c (fd_close): Add test so that we don't close()
250         stdout and stderr.
251
252 2005-05-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
253
254         PR libfortran/20006
255         * io/format.c (parse_format_list): Set repeat count of $ format
256         node to 1.
257         * io/transfer.c (read_sf): Add g.seen_dollar to the test
258         concerning advancing I/O.
259         (data_transfer_init): Likewise.
260         (finalize_transfer): Likewise.
261
262 2005-05-27  Thomas Koenig  <Thomas.Koenig@online.de>
263
264         * runtime/in_pack_generic.c:  Adjust copyright years.
265         (in_pack_generic):  Change dimension of auxiliary arrays from
266         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
267         * runtime/in_unpack_generic.c:  Adjust copyright years.
268         (in_unpack_generic):  Change dimension of auxiliary arrays from
269         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
270
271 2005-05-26  Thomas Koenig  <Thomas.Koenig@online.de>
272
273         PR libfortran/17283
274         * intrinsics/unpack_generic.c:  Fix name of routine
275         on top.  Update copyright years.
276         (unpack1):  Remove const from return array descriptor.
277         rs:  New variable, for calculating return sizes.
278         Populate return array descriptor if ret->data is NULL.
279
280 2005-05-22  Peter Wainwright  <prw@ceiriog1.demon.co.uk>
281
282         PR libfortran/21376
283         * io/write.c (output_float): Rework logic to avoid call to log10
284         with argument equal to zero.
285
286 2005-05-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
287
288         * configure.ac: Check for trunc and truncf in libm.
289         * configure: Regenerate.
290         * config.h.in: Likewise.
291         * intrinsics/c99_functions.c (trunc, truncf): New functions.
292         * c99_protos.h (trunc, truncf): Declare them.
293
294 2005-05-18  Thomas Koenig  <Thomas.Koenig@online.de>
295
296         PR libfortran/21127
297         * Makefile.am:  Really commit.
298         * Makefile.in:  Really commit.
299
300 2005-05-18  Thomas Koenig  <Thomas.Koenig@online.de>
301
302         PR libfortran/21127
303         * Makefile.am:  Add generated/reshape_c4.c and
304         generated/reshape_c8.c.
305         * Makefile.in:  Regenerated.
306         * m4/iparm.m4:  Define rtype_ccode to be c4 or c8 for
307         complex types, 4 or 8 otherwise.
308         * m4/reshape.m4:  Use rtype_ccode instead of rtype_kind
309         in function name.
310         * generated/reshape_c4.c: New file.
311         * generated/reshape_c8.c: New file.
312
313 2005-05-16  Andreas Jaeger  <aj@suse.de>
314
315         * configure.ac: Add additional warning flags.
316         * configure: Regenerate.
317
318         * io/write.c (calculate_G_format): Remove unused parameter.
319         (output_float): Remove unused parameter.
320         (write_float): Change callers.
321         (nml_write_obj): Avoid signed warning.
322         Make variable const to support -Wwrite-strings.
323
324         * io/unix.c (fd_alloc, mmap_open, mmap_sfree, mem_sfree,
325         mem_truncate): Mark argument as unused.
326
327         * io/unit.c (get_unit): Mark argument as unused.
328         (init_units): Avoid warning about signed comparision.
329
330         * io/transfer.c (next_record_r): Remove unused parameter.
331         (next_record_w): Remove unused parameter.
332         (next_record): Change callers.
333         (iolength_transfer): Mark arguments as unused.
334
335         * io/open.c: Add initializer.
336
337         * io/list_read.c (read_character): Mark argument as unused.
338         (nml_match_name): Add const to make compile with -Wwrite-strings.
339
340         * io/format.c: Add initializer.
341
342 2005-05-15  Andreas Jaeger  <aj@suse.de>
343
344         * m4/eoshift1.m4: Initialize variables to avoid warnings.
345         * m4/eoshift3.m4: Initialize variables to avoid warnings.
346         * generated/eoshift1_4.c, generated/eoshift1_8.c,
347         generated/eoshift3_4.c, generated/eoshift3_8.c: Regenerated.
348
349         * intrinsics/spread_generic.c (spread): Initialize variables to
350         avoid warnings.
351
352         * intrinsics/eoshift0.c (eoshift0): Initialize variables to avoid
353         warnings.
354         * intrinsics/eoshift2.c (eoshift2): Initialize variables to avoid
355         warnings.
356
357         * io/list_read.c (nml_get_obj_data): Initialize variables to avoid
358         warnings.
359
360         * intrinsics/pack_generic.c (pack): Remove unneeded calculation.
361
362         * m4/matmull.m4 (matmul_): Remove unneeded calculations, fix
363         pointer cast to avoid warning.
364         * generated/matmul_l4.c: Regenerated.
365         * generated/matmul_l8.c: Regenerated.
366
367         * Makefile.am: Remove AM_CFLAGS here.
368         * configure.ac: Define AM_CFLAGS and AM_FCFLAGS so that warnings
369         are set.  Set additionally -Wstrict-prototypes for CFLAGS.
370         * Makefile.in: Regenerated.
371         * aclocal.m4: Regenerated.
372         * configure: Regenerated.
373
374         * intrinsics/system_clock.c (system_clock_4, system_clock_8): Add
375         missing returns, reformat a bit.
376
377         * io/write.c (nml_write_obj): Use %d again - and cast to int,
378         st_sprintf does not handle %ld.
379
380         * io/unit.c (is_internal_unit): Add void as parameter list.
381
382         * io/transfer.c: Move prototype declarations before the functions.
383
384         * runtime/normalize.c (almostone_r4, almostone_r8): Fix parameter
385         list.
386
387         * intrinsics/random.c (KISS_DEFAULT_SEED): Remove extra semicolon.
388
389         * io/transfer.c: Do not use empty initializers for global objects.
390         Add missing initializers.
391
392         * io/lock.c: Do not use empty initializers for global objects.
393
394         * io/close.c: Add missing initializers.
395
396         * runtime/environ.c: Add missing initializers. Do not use empty
397         initializers for global object.
398         (init_string): Mark argument as unused.
399
400         * runtime/main.c (cleanup): Fix parameter list.
401
402         * io/io.h: Fix parameter lists.
403
404         * m4/transpose.m4, m4/matmul.m4: Fix pointer cast to avoid
405         warning.
406
407         * generated/transpose_c4.c, generated/transpose_c8.c,
408         generated/transpose_i4.c, generated/transpose_i8.c,
409         generated/matmul_c4.c, generated/matmul_c8.c,
410         generated/matmul_i4.c, generated/matmul_i8.c,
411         generated/matmul_r4.c, generated/matmul_r8.c: Regenerated.
412
413         * io/write.c (nml_write_obj): Fix 64-bit problem.
414
415         * io/list_read.c (nml_get_obj_data): Add missing braces around
416         initializer to avoid warnings.
417
418         * intrinsics/etime.c (etime_sub): Remove unused variable.
419
420         * intrinsics/chdir.c, intrinsics/getlog.c, intrinsics/link.c,
421         intrinsics/symlnk.c, intrinsics/perror.c: Include <string.h> for
422         prototypes.
423
424         * runtime/string.c (compare0): Remove unused variable.
425         * io/unit.c (init_units): Remove unused variables.
426         * intrinsics/getcwd.c (getcwd_i4_sub): Remove unused variable.
427         * intrinsics/unlink.c (unlink_i4_sub): Remove unused variable.
428         * intrinsics/stat.c (stat_i4_sub, fstat_i8_sub, fstat_i4_sub,
429         stat_i8_sub): Remove unused variable.
430
431 2005-05-12  Thomas Koenig  <Thomas.Koenig@online.de>
432
433         PR libfortran/21324
434         * runtime/memory.c:  Don't define GFC_CLEAR_MEMORY (it's a
435         performance hog).
436         * io/open.c (new_unit): Zero freshly allocated memory for
437         unit structure.
438         * io/unit.c (init_units):  Zero freshly allocated memory for
439         STDIN, STDOUT and STDERR.
440         * io/unix.c (open_internal):  Zero freshly allocated memory
441         for unix_stream.
442         (fd_to_stream):  Likewise.
443
444 2005-05-11  Bud Davis  <bdavis@gfortran.org>
445
446         PR fortran/19478
447         * io/unix.c (fd_truncate): update positions when ftruncate
448         fails (like writing to /dev/null).
449
450 2005-05-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
451
452         PR libfortran/21471
453         * open.c (new_unit): Take care of the case where POSITION_APPEND
454         is specified (sseek to the end, and set u>-endfile).
455
456 2005-05-10  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
457
458         PR fortran/20178
459         * Makefile.am (gfor_specific_src): Add 'intrinsics/f2c_intrinsics.F90'
460         to dependencies.
461         * Makefile.in: Regenerate.
462         * intrinsics/f2c_specific.F90: New file.
463
464 2005-05-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
465
466         PR libfortran/20788
467         * io/unix.c (fd_to_stream): Add an avoid_mmap argument indicating
468         we don't we to mmap this stream. Use fd_open instead of mmap_open
469         in that case.
470         (open_external): Call fd_to_stream with avoid_mmap = 0.
471         (input_stream): Call fd_to_stream with avoid_mmap = 1.
472         (output_stream): Likewise.
473         (error_stream): Likewise.
474
475 2005-05-09  Mike Stump  <mrs@apple.com>
476
477         * configure: Regenerate.
478
479 2005-05-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
480
481         PR libfortran/19155
482         * io/read.c (read_f): Accept 'e', 'E', 'd' and 'D' as first
483         non-blank characters of a real number.
484
485 2005-05-04  Thomas Koenig  <Thomas.Koenig@online.de>
486
487         PR libfortran/21354
488         * m4/cshift1.m4: Change dimension of auxiliary arrays from
489         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
490         * m4/eoshift1.m4: Likewise.
491         * m4/eoshift3.m4: Likewise.
492         * m4/ifunction.m4: Likewise.
493         * m4/in_pack.m4: Likewise.
494         * m4/in_unpack.m4: Likewise.
495         * intrinsics/cshift0.c: Likewise.
496         * intrinsics/eoshift0.c: Likewise.
497         * intrinsics/eoshift2.c: Likewise.
498         * intrinsics/random.c: Likewise.
499         * intrinsics/spread_generic.c: Likewise.
500         * intrinsics/stat.c: Likewise.
501         * generated/all_l4.c: Regenerated.
502         * generated/all_l8.c: Regenerated.
503         * generated/any_l4.c: Regenerated.
504         * generated/any_l8.c: Regenerated.
505         * generated/count_4_l4.c: Regenerated.
506         * generated/count_4_l8.c: Regenerated.
507         * generated/count_8_l4.c: Regenerated.
508         * generated/count_8_l8.c: Regenerated.
509         * generated/cshift1_4.c: Regenerated.
510         * generated/cshift1_8.c: Regenerated.
511         * generated/eoshift1_4.c: Regenerated.
512         * generated/eoshift1_8.c: Regenerated.
513         * generated/eoshift3_4.c: Regenerated.
514         * generated/eoshift3_8.c: Regenerated.
515         * generated/in_pack_i4.c: Regenerated.
516         * generated/in_pack_i8.c: Regenerated.
517         * generated/in_unpack_i4.c: Regenerated.
518         * generated/in_unpack_i8.c: Regenerated.
519         * generated/maxloc0_4_i4.c: Regenerated.
520         * generated/maxloc0_4_i8.c: Regenerated.
521         * generated/maxloc0_4_r4.c: Regenerated.
522         * generated/maxloc0_4_r8.c: Regenerated.
523         * generated/maxloc0_8_i4.c: Regenerated.
524         * generated/maxloc0_8_i8.c: Regenerated.
525         * generated/maxloc0_8_r4.c: Regenerated.
526         * generated/maxloc0_8_r8.c: Regenerated.
527         * generated/maxloc1_4_i4.c: Regenerated.
528         * generated/maxloc1_4_i8.c: Regenerated.
529         * generated/maxloc1_4_r4.c: Regenerated.
530         * generated/maxloc1_4_r8.c: Regenerated.
531         * generated/maxloc1_8_i4.c: Regenerated.
532         * generated/maxloc1_8_i8.c: Regenerated.
533         * generated/maxloc1_8_r4.c: Regenerated.
534         * generated/maxloc1_8_r8.c: Regenerated.
535         * generated/maxval_i4.c: Regenerated.
536         * generated/maxval_i8.c: Regenerated.
537         * generated/maxval_r4.c: Regenerated.
538         * generated/maxval_r8.c: Regenerated.
539         * generated/minloc0_4_i4.c: Regenerated.
540         * generated/minloc0_4_i8.c: Regenerated.
541         * generated/minloc0_4_r4.c: Regenerated.
542         * generated/minloc0_4_r8.c: Regenerated.
543         * generated/minloc0_8_i4.c: Regenerated.
544         * generated/minloc0_8_i8.c: Regenerated.
545         * generated/minloc0_8_r4.c: Regenerated.
546         * generated/minloc0_8_r8.c: Regenerated.
547         * generated/minloc1_4_i4.c: Regenerated.
548         * generated/minloc1_4_i8.c: Regenerated.
549         * generated/minloc1_4_r4.c: Regenerated.
550         * generated/minloc1_4_r8.c: Regenerated.
551         * generated/minloc1_8_i4.c: Regenerated.
552         * generated/minloc1_8_i8.c: Regenerated.
553         * generated/minloc1_8_r4.c: Regenerated.
554         * generated/minloc1_8_r8.c: Regenerated.
555         * generated/minval_i4.c: Regenerated.
556         * generated/minval_i8.c: Regenerated.
557         * generated/minval_r4.c: Regenerated.
558         * generated/minval_r8.c: Regenerated.
559         * generated/product_c4.c: Regenerated.
560         * generated/product_c8.c: Regenerated.
561         * generated/product_i4.c: Regenerated.
562         * generated/product_i8.c: Regenerated.
563         * generated/product_r4.c: Regenerated.
564         * generated/product_r8.c: Regenerated.
565         * generated/sum_c4.c: Regenerated.
566         * generated/sum_c8.c: Regenerated.
567         * generated/sum_i4.c: Regenerated.
568         * generated/sum_i8.c: Regenerated.
569         * generated/sum_r4.c: Regenerated.
570         * generated/sum_r8.c: Regenerated.
571
572 2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>
573
574         PR libfortran/18958
575         libgfortran.h:  Change typedef of index_type from size_t
576         to ssize_t.
577
578 2005-04-30  Paul Thomas  <pault@gcc.gnu.org>
579
580         PR libfortran/18857
581         * generated/matmul_r8.c: Remove incorrect assertions.
582         * generated/matmul_c4.c: Regenerate
583         * generated/matmul_c8.c: Regenerate
584         * generated/matmul_i4.c: Regenerate
585         * generated/matmul_i8.c: Regenerate
586         * generated/matmul_r4.c: Regenerate
587         * generated/matmul_r8.c: Regenerate
588
589 2005-04-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
590
591         * configure.ac: Check for ftruncate and chsize.
592         * io/unix.c (fd_truncate): Provide chsize as alternative to
593         ftruncate.
594         * config.h.in: Regenerate.
595         * configure: Regenerate.
596
597 2004-04-29  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
598
599         * intrinsics/rename.c: Add missing #includes.
600
601 2004-04-28  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
602
603         * AUTHORS, COPYING, INSTALL, NEWS, README: Remove.
604
605 2005-04-26  David Edelsohn  <edelsohn@gnu.org>
606
607         PR libfortran/20930
608         * io/rewind.c (st_rewind): Flush the stream when resetting the mode
609         from WRITING to READING.
610
611 2005-04-22  Paul Thomas  <pault@gcc.gnu.org>
612             Jerry DeLisle  <jvdelisle@verizon.net>
613
614         * io/write.c (nml_write_obj): Provide 1 more byte for ext_name.
615         * io/list_read.c (nml_get_obj_data): Put extra brackets in get_mem
616         call for ext_name.  These fix the bug reported by Jerry DeLisle to
617         the fortran list and are based on his suggested fix.
618
619 2005-04-22  Thomas Koenig  <Thomas.Koenig@online.de>
620
621         PR libfortran/20074
622         PR libfortran/20436
623         PR libfortran/21108
624         * m4/reshape.m4 (reshape_`'rtype_kind):  rs, rex:  New
625         variables, to be used in calculation of return array sizes.
626         Populate return array descriptor if ret->data is NULL.
627         Fix condition for early return (it used to test something
628         undefined if order was used).
629         Remove duplicate check wether pad is used.
630         * intrinsics/reshape_generic.c (reshape_generic): Likewise.
631         Fix a few places where the wrong variables were set.
632         * generated/reshape_i4.c: Regenerated.
633         * generated/reshape_i8.c: Regenerated.
634
635 2005-04-18  Paul  Thomas <pault@gcc.gnu.org>
636
637         * io/list_read.c (nml_touch_nodes, nml_read_obj,
638         nml_get_obj_data): Fix memory leaks in code for derived types.
639
640 2005-04-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
641
642         PR libfortran/20950
643         * io/inquire.c (inquire_via_unit): Check for the gfc_unit being
644         NULL when setting ioparm.sequential.
645
646 2005-04-17  Thomas Koenig  <Thomas.Koenig@online.de>
647
648         PR libfortran/21075
649         * m4/reshape.m4 (reshape_`'rtype_kind):  Change dimension
650         of auxiliary arrays from GFC_MAX_DIMENSIONS - 1 to
651         GFC_MAX_DIMENSIONS.
652         * intrinsics/reshape_generic.c (reshape_generic):  Likewise.
653         * generated/reshape_i4.c:  Regenerated.
654         * generated/reshape_i8.c:  Regenerated.
655
656 2005-04-17 Paul Thomas <pault@gcc.gnu.org>
657
658         * io/list_read.c (eat_separator): at_eol = 1 replaced
659         (zapped at some time?).
660
661 2005-04-17 Paul Thomas <pault@gcc.gnu.org>
662
663         PR libgfortran/12884
664         PR libgfortran/17285
665         PR libgfortran/18122
666         PR libgfortran/18210
667         PR libgfortran/18392
668         PR libgfortran/18591
669         PR libgfortran/18879
670         * io/io.h (nml_ls): Declare.
671         (namelist_info): Modify for arrays.
672         * io/list_read.c (namelist_read): Reduced to call to new functions.
673         (match_namelist_name): Simplified.
674         (nml_query): Handles stdin queries ? and =?. New function.
675         (nml_get_obj_data): Parses object name. New function.
676         (touch_nml_nodes): Marks objects for read. New function.
677         (untouch_nml_nodes): Resets objects. New function.
678         (parse_qualifier): Parses and checks qualifiers. New function
679         (nml_read_object): Reads and stores object data. New function.
680         (eat_separator): No new_record on '/' in namelist.
681         (finish_separator): No new_record on '/' in namelist.
682         (read_logical): Error return for namelist.
683         (read_integer): Error return for namelist.
684         (read_complex): Error return for namelist.
685         (read_real): Error return for namelist.
686         * io/lock.c (library_end): Free extended namelist_info types.
687         * io/transfer.c (st_set_nml_var): Modified for arrays.
688         (st_set_nml_var_dim): Dimension descriptors. New function.
689         * io/write.c (namelist_write): Reduced to call to new functions.
690         (nml_write_obj): Writes output for object. New function.
691         (write_integer): Suppress leading blanks for repeat counts.
692         (write_int): Suppress leading blanks for repeat counts.
693         (write_float): Suppress leading blanks for repeat counts.
694         (output_float): Suppress leading blanks for repeat counts.
695
696 2005-04-15  Thomas Koenig  <Thomas.Koenig@online.de>
697
698         PR libfortran/18495
699         * intrinsics/spread_generic.c (spread):  Remove const from
700         return array descriptor.
701         New variables: rrank (rank of return array),  rs (for
702         calculating the size of the return array), srank (rank
703         of the source array).
704         Generate runtime error if the dim= argument is larger than
705         the rank of the return array.
706         Generate runtime error if the needed rank of the return
707         array is larger than 7.
708         If ret->data is null, populate the return array descriptor
709         and initialize the variables for the actual operation.
710         Otherwise, set ret->dim[0].stride to one if it is zero.
711         Change second, independent use of variable dim to srank.
712
713 2005-04-12  Mike Stump  <mrs@apple.com>
714
715         * configure: Regenerate.
716
717 2005-04-13  Thomas Koenig  <Thomas.Koenig@online.de>
718
719         PR libfortran/19106
720         * m4/iforeach.c (name`'rtype_qual`_'atype_code):  Add TODO
721         that setting correct strides is a front end job.
722         (`m'name`'rtype_qual`_'atype_code):  Likewise.  If mask has
723         a lowest stride of 0, adjust to 1.
724         * m4/ifunction.c (name`'rtype_qual`_'atype_code):  Add TODO
725         that setting correct strides is a front end job.
726         (`m'name`'rtype_qual`_'atype_code):  Likewise.  If mask has
727         a lowest stride of 0, adjust to 1.
728         * maxloc0_4_i4.c: Regenerated
729         * maxloc0_4_i8.c: Regenerated
730         * maxloc0_4_r4.c: Regenerated
731         * maxloc0_4_r8.c: Regenerated
732         * maxloc0_8_i4.c: Regenerated
733         * maxloc0_8_i8.c: Regenerated
734         * maxloc0_8_r4.c: Regenerated
735         * maxloc0_8_r8.c: Regenerated
736         * maxloc1_4_i4.c: Regenerated
737         * maxloc1_4_i8.c: Regenerated
738         * maxloc1_4_r4.c: Regenerated
739         * maxloc1_4_r8.c: Regenerated
740         * maxloc1_8_i4.c: Regenerated
741         * maxloc1_8_i8.c: Regenerated
742         * maxloc1_8_r4.c: Regenerated
743         * maxloc1_8_r8.c: Regenerated
744         * maxval_i4.c: Regenerated
745         * maxval_i8.c: Regenerated
746         * maxval_r4.c: Regenerated
747         * maxval_r8.c: Regenerated
748         * minloc0_4_i4.c: Regenerated
749         * minloc0_4_i8.c: Regenerated
750         * minloc0_4_r4.c: Regenerated
751         * minloc0_4_r8.c: Regenerated
752         * minloc0_8_i4.c: Regenerated
753         * minloc0_8_i8.c: Regenerated
754         * minloc0_8_r4.c: Regenerated
755         * minloc0_8_r8.c: Regenerated
756         * minloc1_4_i4.c: Regenerated
757         * minloc1_4_i8.c: Regenerated
758         * minloc1_4_r4.c: Regenerated
759         * minloc1_4_r8.c: Regenerated
760         * minloc1_8_i4.c: Regenerated
761         * minloc1_8_i8.c: Regenerated
762         * minloc1_8_r4.c: Regenerated
763         * minloc1_8_r8.c: Regenerated
764         * minval_i4.c: Regenerated
765         * minval_i8.c: Regenerated
766         * minval_r4.c: Regenerated
767         * minval_r8.c: Regenerated
768         * product_c4.c: Regenerated
769         * product_c8.c: Regenerated
770         * product_i4.c: Regenerated
771         * product_i8.c: Regenerated
772         * product_r4.c: Regenerated
773         * product_r8.c: Regenerated
774         * sum_c4.c: Regenerated
775         * sum_c8.c: Regenerated
776         * sum_i4.c: Regenerated
777         * sum_i8.c: Regenerated
778         * sum_r4.c: Regenerated
779         * sum_r8.c: Regenerated
780
781 2005-04-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
782
783         PR libfortran/20788
784         * runtime/environ.c (init_unsigned_integer): Function for
785         environment variables we want to be positive.
786         (init_integer): Function to allow negative environment
787         variables (e.g. for GFORTRAN_STDIN_UNIT).
788
789 2005-04-10  Thomas Koenig <Thomas.Koenig@online.de>
790
791         PR libfortran/17992
792         PR libfortran/19568
793         PR libfortran/19595
794         PR libfortran/20005
795         PR libfortran/20092
796         PR libfortran/20131
797         PR libfortran/20661
798         PR libfortran/20744
799         * io/transfer.c (top level): eor_condition: New static variable.
800         (read_sf): Remove unnecessary zeroing of buffer (there is enough
801         information in its length).
802         Return a string of length 0 (to be padded by caller) if EOR was
803         seen previously.
804         Remove erroneous special casing of EOR for standard input.
805         Set eor_condition for non-advancing I/O if an end of line was
806         detected.
807         Increment ioparm.size if necessary.
808         (formatted_transfer):  Skip the function if there is an EOR condition.
809         (data_transfer_init):  Initialize eor_condition to zero (false).
810         (next_record_r):  Clear sf_seen_eor if a \n has been seen already.
811         (finalize_transfer):  If there is an EOR condition, raise the error.
812
813 2005-04-09  Bud Davis  <bdavis@gfortran.org>
814             Steven G. Kargl <kargls@comcast.net>
815
816         PR fortran/19872
817         * io/transfer.c (data_transfer_init): truncate an existing
818         file on the first write.
819
820 2005-04-09  Thomas Koenig  <Thomas.Koenig@online.de>
821
822         PR libfortran/19106
823         PR libfortran/19014
824         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): ditto.
825         If retarray->data is NULL (i.e. the front end does not
826         know the rank and dimenson of the array), fill in its
827         properties and allocate memory.
828         Change the assertions about rank and dimension of retarray into
829         runtime errors and only check them for retarray->data != NULL.
830         Do the same for correcting the stride from 0 to 1 in retarray.
831         (`m'name`'rtype_qual`_'atype_code): Likewise.
832         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Likewise.
833         Change assertion about rank of array to runtime error.
834         (`m'name`'rtype_qual`_'atype_code): Likewise.
835         * generated/all_l4.c: Regenerated.
836         * generated/all_l8.c: Regenerated.
837         * generated/any_l4.c: Regenerated.
838         * generated/any_l8.c: Regenerated.
839         * generated/count_4_l4.c: Regenerated.
840         * generated/count_4_l8.c: Regenerated.
841         * generated/count_8_l4.c: Regenerated.
842         * generated/count_8_l8.c: Regenerated.
843         * generated/maxloc0_4_i4.c: Regenerated.
844         * generated/maxloc0_4_i8.c: Regenerated.
845         * generated/maxloc0_4_r4.c: Regenerated.
846         * generated/maxloc0_4_r8.c: Regenerated.
847         * generated/maxloc0_8_i4.c: Regenerated.
848         * generated/maxloc0_8_i8.c: Regenerated.
849         * generated/maxloc0_8_r4.c: Regenerated.
850         * generated/maxloc0_8_r8.c: Regenerated.
851         * generated/maxloc1_4_i4.c: Regenerated.
852         * generated/maxloc1_4_i8.c: Regenerated.
853         * generated/maxloc1_4_r4.c: Regenerated.
854         * generated/maxloc1_4_r8.c: Regenerated.
855         * generated/maxloc1_8_i4.c: Regenerated.
856         * generated/maxloc1_8_i8.c: Regenerated.
857         * generated/maxloc1_8_r4.c: Regenerated.
858         * generated/maxloc1_8_r8.c: Regenerated.
859         * generated/maxval_i4.c: Regenerated.
860         * generated/maxval_i8.c: Regenerated.
861         * generated/maxval_r4.c: Regenerated.
862         * generated/maxval_r8.c: Regenerated.
863         * generated/minloc0_4_i4.c: Regenerated.
864         * generated/minloc0_4_i8.c: Regenerated.
865         * generated/minloc0_4_r4.c: Regenerated.
866         * generated/minloc0_4_r8.c: Regenerated.
867         * generated/minloc0_8_i4.c: Regenerated.
868         * generated/minloc0_8_i8.c: Regenerated.
869         * generated/minloc0_8_r4.c: Regenerated.
870         * generated/minloc0_8_r8.c: Regenerated.
871         * generated/minloc1_4_i4.c: Regenerated.
872         * generated/minloc1_4_i8.c: Regenerated.
873         * generated/minloc1_4_r4.c: Regenerated.
874         * generated/minloc1_4_r8.c: Regenerated.
875         * generated/minloc1_8_i4.c: Regenerated.
876         * generated/minloc1_8_i8.c: Regenerated.
877         * generated/minloc1_8_r4.c: Regenerated.
878         * generated/minloc1_8_r8.c: Regenerated.
879         * generated/minval_i4.c: Regenerated.
880         * generated/minval_i8.c: Regenerated.
881         * generated/minval_r4.c: Regenerated.
882         * generated/minval_r8.c: Regenerated.
883         * generated/product_c4.c: Regenerated.
884         * generated/product_c8.c: Regenerated.
885         * generated/product_i4.c: Regenerated.
886         * generated/product_i8.c: Regenerated.
887         * generated/product_r4.c: Regenerated.
888         * generated/product_r8.c: Regenerated.
889         * generated/sum_c4.c: Regenerated.
890         * generated/sum_c8.c: Regenerated.
891         * generated/sum_i4.c: Regenerated.
892         * generated/sum_i8.c: Regenerated.
893         * generated/sum_r4.c: Regenerated.
894         * generated/sum_r8.c: Regenerated.
895
896 2005-04-09  Thomas Koenig <Thomas.Koenig@online.de>
897
898         PR libfortran/20163
899         * runtime/string.c (compare0): Use fstrlen() to
900         strip trailing blanks from option string.
901
902 2005-04-09  Andrew Pinski  <pinskia@physics.uc.edu>
903
904         PR fortran/13257
905         * format.c (parse_format_list): Allow an optional comma
906         between descriptors.
907
908 2005-04-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
909
910         * io/backspace.c (unformatted_backspace): Do not dereference
911         the pointer to the stream.
912
913 2005-04-07  Andrew Pinski  <pinskia@physics.uc.edu>
914
915         PR libfortran/20766
916         * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
917         "-Wl,-single_module".
918         * configure: Regenerate.
919         * Makefile.am (libgfortran_la_LDFLAGS): Add extra_ldflags_libgfortran.
920         * Makefile.in: Regenerate.
921
922 2005-04-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
923
924         PR libfortran/20755
925         * write.c (write_float): A G edit descriptor may locally change
926         the scale factor, but it needs to be restored afterwards.
927
928 2005-04-03  Dale Ranta  <dir@lanl.gov>
929             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
930
931         PR libfortran/20068
932         PR libfortran/20125
933         PR libfortran/20156
934         PR libfortran/20471
935         * io/backspace.c (unformatted_backspace): Fix error in arithmetic.
936         (st_backspace): When in WRITING mode, we flush and falling back
937         into READING mode. In all cases, correctly position the stream.
938
939 2005-03-31  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
940
941         PR libfortran/20660
942         * io/inquire.c (inquire_via_unit): Non-opened units should still be
943         reported by an INQUIRE statement as existing.
944         * io/transfer.c (data_transfer_init): Never accept negative units.
945
946 2005-03-29  Dale Ranta  <dir@lanl.gov>
947             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
948
949         PR libfortran/20163
950         * io/open.c (st_open): call library_end() before returning even if
951         an error arises.
952
953 2005-03-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
954
955         PR libfortran/19678
956         * list_read.c (next_char, eat_separator, finish_separator, read_real)
957         (namelist_read): Add support for '\r' as well as '\n' as EOL
958         character.
959
960         PR libfortran/19679
961         * list_read.c (read_sf): Add a '\r' in a test to support DOS
962         line-endings when line length is exceeded.
963
964 2005-03-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
965
966         PR libfortran/15332
967         * io/format.c (parse_format_list): format node for colon edit
968         descriptor needs a repeat counter set to 1.
969
970 2005-02-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
971
972         * config.h.in: Regenerate.
973
974 2005-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
975
976         PR libfortran/18025
977         * write.c (output_float): Handling the "F0.d" format similarly as
978         commercial compilers.
979
980 2005-03-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
981
982         * Makefile.am: Added new files.
983         * Makefile.in: Regenerate.
984         * aclocal.m4: Regenerate.
985         * configure.ac: add checks for signal.h headers file, as well as
986         following functions: chdir, strerror, getlogin, gethostname, kill,
987         link, symlink, perror, sleep, time.
988         * configure: Regenerate.
989         * intrinsics/chdir.c, intrinsics/gerror.c, intrinsics/getlog.c,
990         intrinsics/hostnm.c, intrinsics/ierrno.c, intrinsics/kill.c,
991         intrinsics/link.c, intrinsics/perror.c, intrinsics/rename.c,
992         intrinsics/sleep.c, intrinsics/symlnk.c, intrinsics/time.c: Newly
993         implementend g77 intrinsics.
994
995 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
996
997         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
998         In all substitutions, leave gcc_version to be expanded by the Makefile.
999         * aclocal.m4, configure: Regenerate.
1000         * Makefile.am: Set gcc_version.
1001         * Makefile.in: Regenerate.
1002
1003 2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1004
1005         PR libfortran/20257
1006         * open.c (new_unit): set record length to max_offset rather than
1007           using a hard-coded limit (which was too low).
1008
1009 2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1010
1011         PR libfortran/20480
1012         * write.c (output_float): special check when writing 0.0 with
1013           EN and ES formats.
1014
1015 2005-03-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1016
1017         PR libfortran/20124
1018         * write.c (output_float): Adds a nzero_real variable to store
1019         the number of leading zeros whatever the format width is. Corrects
1020         the rounding of numbers less than 10^(-width). Fixes typo in an
1021         error message. Updates copyright years
1022
1023 2005-02-27  Toon Moene  <toon@moene.indiv.nluug.nl>
1024
1025         * runtime/environ.c: Update copyright years.
1026
1027 2005-02-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1028
1029         * io/write.c: Update copyright years.
1030
1031 2005-02-27  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1032
1033         PR libfortran/20101
1034         * io/write.c (output_float): Added special check for value 0.0 in
1035         PE format.
1036
1037 2004-02-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1038
1039         * io/write.c (output_float): Fix typo in condition.
1040
1041 2005-02-25  Peter O'Gorman  <peter@pogma.com>
1042             Toon Moene  <toon@moene.indiv.nluug.nl>
1043
1044         PR libgfortran/17748
1045         * runtime/environ.c: Remove references to environ.
1046         (show_variables): remove GFORTRAN_UNBUFFERED_* and
1047         GFORTRAN_NAME_* because they require environ.
1048         (pattern_scan): Remove function.
1049
1050 2004-02-22  Paul Thomas <paulthomas2@wannado.fr>
1051             Bud Davis  <bdavis@gfortran.org>
1052
1053         * io/list_read.c (read_real): Handle separators properly
1054         in list directed read.
1055
1056 2004-02-21  Bud Davis  <bdavis@gfortran.org>
1057
1058         PR fortran/20086
1059         * io/transfer.c (write_constant_string): accept an 'h' as
1060         the start of a hollerith format string.
1061
1062 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1063
1064         PR libfortran/19302
1065         * intrinsics/c99_functions.c (nextafterf): Special-case infinite
1066         numbers.
1067
1068 2005-02-21  Steven G. Kargl  <kargls@comcast.net>
1069
1070         * io/write.c (output_float):  Typo in error meesage.
1071
1072 2005-02-20  Steven G. Kargl  <kargls@comcast.net>
1073
1074         PR 20085
1075         * intrinsic/args.c (iargc): Off by 1.
1076
1077 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
1078
1079       *  intrinsic/date_and_time.c: Fix conformance problems.
1080
1081 2005-02-01  Paul Thomas <paulthomas2@wanadoo.fr>
1082
1083         PR libgfortran/19363
1084         PR libgfortran/19691
1085         * libgfortran.h (isfinite): Work around broken isfinite(x) in Cygwin.
1086
1087 2005-01-30  Bud Davis  <bdavis@gfortran.org>
1088
1089         PR fortran/19647
1090         * io/inquire.c (inquire_via_unit): Use correct variable for
1091         pad.
1092
1093 2005-01-29  Thomas Koenig  <Thomas.Koenig@online.de>
1094
1095         PR libfortran/19595
1096         * io/transfer.c (data_transfer_init): eor requires advance="NO".
1097
1098 2005-01-25  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1099
1100         PR libfortran/19524
1101         * io/read.c (read_f): Don't free uninitialized pointer.
1102
1103 2005-01-23  James A. Morrison  <phython@gcc.gnu.org>
1104         Paul Brook  <paul@codesourcery.com>
1105
1106         PR fortran/19294
1107         * Makefile.am: Add transpose_c4.c and transpose_c8.c.
1108         * intrinsics/cshift0.c: Use separate optimized loops for complex types.
1109         * m4/transpose.m4: Include type letter in function name.
1110         * Makefile.in: Regenerate.
1111         * generated/transpose_*.c: Regenerate.
1112
1113 2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>
1114
1115         PR libfortran/19451
1116         * io/transfer.c (finalize_transfer):  Don't do anything if
1117         there is an error condition.
1118
1119 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
1120
1121         PR libgfortran/19052
1122         * libgfortran.h (options_t): Add stderr_unit.
1123         * io/io.h (error_stream): Declare.
1124         * io/open.c (new_unit): Do not terminate abnormally if opening
1125         file preconnected to stdin, stdout, or stderr.
1126         * io/unit.c (init_units): Initialize stderr_unit.
1127         * io/unix.c (error_stream): New function.
1128         * runtime/environ.c (GFORTRAN_STDERR_UNIT): New environment variable.
1129
1130 2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>
1131
1132         PR libfortran/18982
1133         * io/unix.c (regular_file):  No need to change flags->action
1134         if an error occurs.  Document this.
1135         No need to call stat() for STATUS_OLD, open() will
1136         fail anyway.
1137         For ACTION_UNSPECIFIED, try open for read-write, then for
1138         read-only if open fails with EACCES, then for write-only
1139         if that fails with EACCES again.
1140         * io/unix.c (open_external): Document changed behavior of
1141         regular_file.
1142
1143 2005-01-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1144
1145         PR fortran/19194
1146         * io/io.h (st_parameter): Use 'GFC_INTEGER_4' instead of 'int',
1147         use CHARACTER macro for definition of string valued paramters.
1148
1149 2005-01-22  Bud Davis  <bdavis9659@comcast.net>
1150
1151         PR fortran/19314
1152         * io/inquire.c(inquire_via_unit): implement POSITION=.
1153         * io/transfer.c(next_record): update position for
1154         INQUIRE.
1155         * io/rewind.c(st_rewind): update position for
1156         INQUIRE.
1157
1158 2005-01-16  Bud Davis  <bdavis9659@comcast.net>
1159
1160         PR fortran/18778
1161         * io/transfer.c (us_read): no bytes available is not a
1162         runtime error.
1163
1164 2005-01-15  Bud Davis  <bdavis9659@comcast.net>
1165
1166         PR fortran/18983
1167         * io/transfer.c (st_write_done): only truncate when it
1168         is required.
1169
1170 2005-01-12  Toon Moene  <toon@moene.indiv.nluug.nl>
1171
1172         PR libfortran/19280
1173         c99_protos.h: License changed to GPL+exception.
1174         libgfortran.h: Ditto.
1175         intrinsics/abort.c: Ditto.
1176         intrinsics/args.c: Ditto.
1177         intrinsics/associated.c: Ditto.
1178         intrinsics/bessel.c: Ditto.
1179         intrinsics/c99_functions.c: Ditto.
1180         intrinsics/cpu_time.c: Ditto.
1181         intrinsics/cshift0.c: Ditto.
1182         intrinsics/date_and_time.c: Ditto.
1183         intrinsics/env.c: Ditto.
1184         intrinsics/eoshift0.c: Ditto.
1185         intrinsics/eoshift2.c: Ditto.
1186         intrinsics/erf.c: Ditto.
1187         intrinsics/etime.c: Ditto.
1188         intrinsics/exit.c: Ditto.
1189         intrinsics/flush.c: Ditto.
1190         intrinsics/fnum.c: Ditto.
1191         intrinsics/getXid.c: Ditto.
1192         intrinsics/getcwd.c: Ditto.
1193         intrinsics/ishftc.c: Ditto.
1194         intrinsics/mvbits.c: Ditto.
1195         intrinsics/pack_generic.c: Ditto.
1196         intrinsics/rand.c: Ditto.
1197         intrinsics/random.c: Ditto.
1198         intrinsics/reshape_generic.c: Ditto.
1199         intrinsics/reshape_packed.c: Ditto.
1200         intrinsics/size.c: Ditto.
1201         intrinsics/spread_generic.c: Ditto.
1202         intrinsics/stat.c: Ditto.
1203         intrinsics/string_intrinsics.c: Ditto.
1204         intrinsics/system.c: Ditto.
1205         intrinsics/system_clock.c: Ditto.
1206         intrinsics/transpose_generic.c: Ditto.
1207         intrinsics/umask.c: Ditto.
1208         intrinsics/unlink.c: Ditto.
1209         intrinsics/unpack_generic.c: Ditto.
1210         io/backspace.c: Ditto.
1211         io/close.c: Ditto.
1212         io/endfile.c: Ditto.
1213         io/format.c: Ditto.
1214         io/inquire.c: Ditto.
1215         io/io.h: Ditto.
1216         io/list_read.c: Ditto.
1217         io/lock.c: Ditto.
1218         io/open.c: Ditto.
1219         io/read.c: Ditto.
1220         io/rewind.c: Ditto.
1221         io/transfer.c: Ditto.
1222         io/unit.c: Ditto.
1223         io/unix.c: Ditto.
1224         io/write.c: Ditto.
1225         m4/all.m4: Ditto.
1226         m4/any.m4: Ditto.
1227         m4/cexp.m4: Ditto.
1228         m4/chyp.m4: Ditto.
1229         m4/count.m4: Ditto.
1230         m4/cshift1.m4: Ditto.
1231         m4/ctrig.m4: Ditto.
1232         m4/dotprod.m4: Ditto.
1233         m4/dotprodc.m4: Ditto.
1234         m4/dotprodl.m4: Ditto.
1235         m4/eoshift1.m4: Ditto.
1236         m4/eoshift3.m4: Ditto.
1237         m4/exponent.m4: Ditto.
1238         m4/fraction.m4: Ditto.
1239         m4/head.m4: Ditto.
1240         m4/iforeach.m4: Ditto.
1241         m4/ifunction.m4: Ditto.
1242         m4/in_pack.m4: Ditto.
1243         m4/in_unpack.m4: Ditto.
1244         m4/iparm.m4: Ditto.
1245         m4/matmul.m4: Ditto.
1246         m4/matmull.m4: Ditto.
1247         m4/maxloc0.m4: Ditto.
1248         m4/maxloc1.m4: Ditto.
1249         m4/maxval.m4: Ditto.
1250         m4/minloc0.m4: Ditto.
1251         m4/minloc1.m4: Ditto.
1252         m4/minval.m4: Ditto.
1253         m4/mtype.m4: Ditto.
1254         m4/nearest.m4: Ditto.
1255         m4/pow.m4: Ditto.
1256         m4/product.m4: Ditto.
1257         m4/reshape.m4: Ditto.
1258         m4/set_exponent.m4: Ditto.
1259         m4/shape.m4: Ditto.
1260         m4/specific.m4: Ditto.
1261         m4/specific2.m4: Ditto.
1262         m4/sum.m4: Ditto.
1263         m4/transpose.m4: Ditto.
1264         m4/types.m4: Ditto.
1265         runtime/environ.c: Ditto.
1266         runtime/error.c: Ditto.
1267         runtime/in_pack_generic.c: Ditto.
1268         runtime/in_unpack_generic.c: Ditto.
1269         runtime/main.c: Ditto.
1270         runtime/memory.c: Ditto.
1271         runtime/normalize.c: Ditto.
1272         runtime/pause.c: Ditto.
1273         runtime/select.c: Ditto.
1274         runtime/stop.c: Ditto.
1275         runtime/string.c: Ditto.
1276         generated/_abs_c4.f90: Regenerated.
1277         generated/_abs_c8.f90: Regenerated.
1278         generated/_abs_i4.f90: Regenerated.
1279         generated/_abs_i8.f90: Regenerated.
1280         generated/_abs_r4.f90: Regenerated.
1281         generated/_abs_r8.f90: Regenerated.
1282         generated/_acos_r4.f90: Regenerated.
1283         generated/_acos_r8.f90: Regenerated.
1284         generated/_aint_r4.f90: Regenerated.
1285         generated/_aint_r8.f90: Regenerated.
1286         generated/_anint_r4.f90: Regenerated.
1287         generated/_anint_r8.f90: Regenerated.
1288         generated/_asin_r4.f90: Regenerated.
1289         generated/_asin_r8.f90: Regenerated.
1290         generated/_atan2_r4.f90: Regenerated.
1291         generated/_atan2_r8.f90: Regenerated.
1292         generated/_atan_r4.f90: Regenerated.
1293         generated/_atan_r8.f90: Regenerated.
1294         generated/_conjg_c4.f90: Regenerated.
1295         generated/_conjg_c8.f90: Regenerated.
1296         generated/_cos_c4.f90: Regenerated.
1297         generated/_cos_c8.f90: Regenerated.
1298         generated/_cos_r4.f90: Regenerated.
1299         generated/_cos_r8.f90: Regenerated.
1300         generated/_cosh_r4.f90: Regenerated.
1301         generated/_cosh_r8.f90: Regenerated.
1302         generated/_dim_i4.f90: Regenerated.
1303         generated/_dim_i8.f90: Regenerated.
1304         generated/_dim_r4.f90: Regenerated.
1305         generated/_dim_r8.f90: Regenerated.
1306         generated/_exp_c4.f90: Regenerated.
1307         generated/_exp_c8.f90: Regenerated.
1308         generated/_exp_r4.f90: Regenerated.
1309         generated/_exp_r8.f90: Regenerated.
1310         generated/_log10_r4.f90: Regenerated.
1311         generated/_log10_r8.f90: Regenerated.
1312         generated/_log_c4.f90: Regenerated.
1313         generated/_log_c8.f90: Regenerated.
1314         generated/_log_r4.f90: Regenerated.
1315         generated/_log_r8.f90: Regenerated.
1316         generated/_mod_i4.f90: Regenerated.
1317         generated/_mod_i8.f90: Regenerated.
1318         generated/_mod_r4.f90: Regenerated.
1319         generated/_mod_r8.f90: Regenerated.
1320         generated/_sign_i4.f90: Regenerated.
1321         generated/_sign_i8.f90: Regenerated.
1322         generated/_sign_r4.f90: Regenerated.
1323         generated/_sign_r8.f90: Regenerated.
1324         generated/_sin_c4.f90: Regenerated.
1325         generated/_sin_c8.f90: Regenerated.
1326         generated/_sin_r4.f90: Regenerated.
1327         generated/_sin_r8.f90: Regenerated.
1328         generated/_sinh_r4.f90: Regenerated.
1329         generated/_sinh_r8.f90: Regenerated.
1330         generated/_sqrt_c4.f90: Regenerated.
1331         generated/_sqrt_c8.f90: Regenerated.
1332         generated/_sqrt_r4.f90: Regenerated.
1333         generated/_sqrt_r8.f90: Regenerated.
1334         generated/_tan_r4.f90: Regenerated.
1335         generated/_tan_r8.f90: Regenerated.
1336         generated/_tanh_r4.f90: Regenerated.
1337         generated/_tanh_r8.f90: Regenerated.
1338         generated/all_l4.c: Regenerated.
1339         generated/all_l8.c: Regenerated.
1340         generated/any_l4.c: Regenerated.
1341         generated/any_l8.c: Regenerated.
1342         generated/count_4_l4.c: Regenerated.
1343         generated/count_4_l8.c: Regenerated.
1344         generated/count_8_l4.c: Regenerated.
1345         generated/count_8_l8.c: Regenerated.
1346         generated/cshift1_4.c: Regenerated.
1347         generated/cshift1_8.c: Regenerated.
1348         generated/dotprod_c4.c: Regenerated.
1349         generated/dotprod_c8.c: Regenerated.
1350         generated/dotprod_i4.c: Regenerated.
1351         generated/dotprod_i8.c: Regenerated.
1352         generated/dotprod_l4.c: Regenerated.
1353         generated/dotprod_l8.c: Regenerated.
1354         generated/dotprod_r4.c: Regenerated.
1355         generated/dotprod_r8.c: Regenerated.
1356         generated/eoshift1_4.c: Regenerated.
1357         generated/eoshift1_8.c: Regenerated.
1358         generated/eoshift3_4.c: Regenerated.
1359         generated/eoshift3_8.c: Regenerated.
1360         generated/exp_c4.c: Regenerated.
1361         generated/exp_c8.c: Regenerated.
1362         generated/exponent_r4.c: Regenerated.
1363         generated/exponent_r8.c: Regenerated.
1364         generated/fraction_r4.c: Regenerated.
1365         generated/fraction_r8.c: Regenerated.
1366         generated/hyp_c4.c: Regenerated.
1367         generated/hyp_c8.c: Regenerated.
1368         generated/in_pack_i4.c: Regenerated.
1369         generated/in_pack_i8.c: Regenerated.
1370         generated/in_unpack_i4.c: Regenerated.
1371         generated/in_unpack_i8.c: Regenerated.
1372         generated/matmul_c4.c: Regenerated.
1373         generated/matmul_c8.c: Regenerated.
1374         generated/matmul_i4.c: Regenerated.
1375         generated/matmul_i8.c: Regenerated.
1376         generated/matmul_l4.c: Regenerated.
1377         generated/matmul_l8.c: Regenerated.
1378         generated/matmul_r4.c: Regenerated.
1379         generated/matmul_r8.c: Regenerated.
1380         generated/maxloc0_4_i4.c: Regenerated.
1381         generated/maxloc0_4_i8.c: Regenerated.
1382         generated/maxloc0_4_r4.c: Regenerated.
1383         generated/maxloc0_4_r8.c: Regenerated.
1384         generated/maxloc0_8_i4.c: Regenerated.
1385         generated/maxloc0_8_i8.c: Regenerated.
1386         generated/maxloc0_8_r4.c: Regenerated.
1387         generated/maxloc0_8_r8.c: Regenerated.
1388         generated/maxloc1_4_i4.c: Regenerated.
1389         generated/maxloc1_4_i8.c: Regenerated.
1390         generated/maxloc1_4_r4.c: Regenerated.
1391         generated/maxloc1_4_r8.c: Regenerated.
1392         generated/maxloc1_8_i4.c: Regenerated.
1393         generated/maxloc1_8_i8.c: Regenerated.
1394         generated/maxloc1_8_r4.c: Regenerated.
1395         generated/maxloc1_8_r8.c: Regenerated.
1396         generated/maxval_i4.c: Regenerated.
1397         generated/maxval_i8.c: Regenerated.
1398         generated/maxval_r4.c: Regenerated.
1399         generated/maxval_r8.c: Regenerated.
1400         generated/minloc0_4_i4.c: Regenerated.
1401         generated/minloc0_4_i8.c: Regenerated.
1402         generated/minloc0_4_r4.c: Regenerated.
1403         generated/minloc0_4_r8.c: Regenerated.
1404         generated/minloc0_8_i4.c: Regenerated.
1405         generated/minloc0_8_i8.c: Regenerated.
1406         generated/minloc0_8_r4.c: Regenerated.
1407         generated/minloc0_8_r8.c: Regenerated.
1408         generated/minloc1_4_i4.c: Regenerated.
1409         generated/minloc1_4_i8.c: Regenerated.
1410         generated/minloc1_4_r4.c: Regenerated.
1411         generated/minloc1_4_r8.c: Regenerated.
1412         generated/minloc1_8_i4.c: Regenerated.
1413         generated/minloc1_8_i8.c: Regenerated.
1414         generated/minloc1_8_r4.c: Regenerated.
1415         generated/minloc1_8_r8.c: Regenerated.
1416         generated/minval_i4.c: Regenerated.
1417         generated/minval_i8.c: Regenerated.
1418         generated/minval_r4.c: Regenerated.
1419         generated/minval_r8.c: Regenerated.
1420         generated/nearest_r4.c: Regenerated.
1421         generated/nearest_r8.c: Regenerated.
1422         generated/pow_c4_i4.c: Regenerated.
1423         generated/pow_c4_i8.c: Regenerated.
1424         generated/pow_c8_i4.c: Regenerated.
1425         generated/pow_c8_i8.c: Regenerated.
1426         generated/pow_i4_i4.c: Regenerated.
1427         generated/pow_i4_i8.c: Regenerated.
1428         generated/pow_i8_i4.c: Regenerated.
1429         generated/pow_i8_i8.c: Regenerated.
1430         generated/pow_r4_i4.c: Regenerated.
1431         generated/pow_r4_i8.c: Regenerated.
1432         generated/pow_r8_i4.c: Regenerated.
1433         generated/pow_r8_i8.c: Regenerated.
1434         generated/product_c4.c: Regenerated.
1435         generated/product_c8.c: Regenerated.
1436         generated/product_i4.c: Regenerated.
1437         generated/product_i8.c: Regenerated.
1438         generated/product_r4.c: Regenerated.
1439         generated/product_r8.c: Regenerated.
1440         generated/reshape_i4.c: Regenerated.
1441         generated/reshape_i8.c: Regenerated.
1442         generated/set_exponent_r4.c: Regenerated.
1443         generated/set_exponent_r8.c: Regenerated.
1444         generated/shape_i4.c: Regenerated.
1445         generated/shape_i8.c: Regenerated.
1446         generated/sum_c4.c: Regenerated.
1447         generated/sum_c8.c: Regenerated.
1448         generated/sum_i4.c: Regenerated.
1449         generated/sum_i8.c: Regenerated.
1450         generated/sum_r4.c: Regenerated.
1451         generated/sum_r8.c: Regenerated.
1452         generated/transpose_i4.c: Regenerated.
1453         generated/transpose_i8.c: Regenerated.
1454         generated/trig_c4.c: Regenerated.
1455         generated/trig_c8.c: Regenerated.
1456
1457 2005-01-07  Bud Davis  <bdavis9659@comcast.net>
1458
1459         PR fortran/18398
1460         * transfer.c (next_record_r): always skip the
1461         eol search if it was found during sf_read.
1462
1463 2004-12-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1464
1465         * libgfortran/libgfortran.h (GFC_UINTEGER_1, GFC_UINTEGER_2):
1466         Define.
1467         * intrinsics/ishftc.c: Update copyright years.
1468         (ishftc8): Change 'shift' and 'size' to GFC_INTEGER_4.
1469         * intrinsics/mvbits.c: Correct non-ASCII character in my name.
1470         Add implementations for GFC_INTEGER_1 and GFC_INTEGER_2.
1471
1472 2004-12-23  Bud Davis  <bdavis9659@comcast.net>
1473
1474         PR fortran/19071
1475         * io/tranfer.c (formatted_transfer): moved check for
1476         format reversion inside the processing loop.
1477
1478 2004-12-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1479
1480         PR libfortran/19074
1481         * libgfortran.h (itoa): Rename to gfc_itoa.
1482         * io/write.c (itoa): Same.
1483         * runtime/environ.c (itoa): Same.
1484         * runtime/error.c (itoa): Same.
1485
1486 2004-12-15  Bud Davis  <bdavis9659@comcast.net>
1487             Steven G. Kargl  <kargls@comcast.net>
1488
1489         PR fortran/17597
1490         * io/list_read.c (read_real): do not push back a comma when
1491         it delimits a real value without a decimal point
1492
1493 2004-12-14  Steve Ellcey  <sje@cup.hp.com>
1494
1495         * libgfortran/io/transfer.c (us_read): Use memcpy/memset
1496         instead of assignment to fill unaligned buffer.
1497         (us_write): Ditto.
1498         (next_record_w): Ditto.
1499
1500 2004-12-14  Steven G. Kargl  <kargls@comcast.net>
1501
1502         PR libfortran/18966
1503         * gfortran.h: typedef GFC_INTEGER_1 and GFC_INTEGER_2
1504         * intrinsics/cshift0.c (cshift0_1,cshift0_2): New functions.
1505         * intrinsics/eoshift0.c (eoshift0_1,eoshift0_2): New functions.
1506         * intrinsics/eoshift2.c (eoshift2_1,eoshift2_2): New functions.
1507
1508 2004-12-13  David Edelsohn  <edelsohn@gnu.org>
1509
1510         * io/transfer.c (read_sf): Change bitwise "and" to logical "and".
1511
1512 2004-12-12  Richard Henderson  <rth@redhat.com>
1513
1514         * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
1515         intrinsics/pack_generic.c, intrinsics/reshape_generic.c,
1516         intrinsics/spread_generic.c, intrinsics/transpose_generic.c,
1517         intrinsics/unpack_generic.c, m4/cshift1.m4, m4/dotprod.m4,
1518         m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
1519         m4/iforeach.m4, m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4,
1520         m4/reshape.m4, m4/shape.m4, m4/transpose.m4: Use standard prefix
1521         instead of "__".
1522         * generated/*: Rebuild.
1523
1524 2004-12-12  Richard Henderson  <rth@redhat.com>
1525
1526         * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY): New.
1527         (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT): New.
1528         (LIBGFOR_CHECK_ATTRIBUTE_ALIAS): New.
1529         * configure.ac: Use them.
1530         * configure, config.h.in, aclocal.m4: Rebuild.
1531         * libgfortran.h (prefix): Remove.
1532         (PREFIX, IPREFIX): New.
1533         (sym_rename, sym_rename1, sym_rename2): New.
1534         (internal_proto, export_proto, export_proto_np): New.
1535         (iexport_proto, iexport): New.
1536         (iexport_data_proto, iexport_data): New.
1537         * intrinsics/abort.c, intrinsics/args.c, intrinsics/associated.c,
1538         intrinsics/cpu_time.c, intrinsics/cshift0.c,
1539         intrinsics/date_and_time.c, intrinsics/env.c, intrinsics/eoshift0.c,
1540         intrinsics/eoshift2.c, intrinsics/etime.c, intrinsics/exit.c,
1541         intrinsics/flush.c, intrinsics/fnum.c, intrinsics/getXid.c,
1542         intrinsics/getcwd.c, intrinsics/ishftc.c, intrinsics/mvbits.c,
1543         intrinsics/pack_generic.c, intrinsics/rand.c, intrinsics/random.c,
1544         intrinsics/reshape_generic.c, intrinsics/size.c,
1545         intrinsics/spread_generic.c, intrinsics/stat.c,
1546         intrinsics/string_intrinsics.c, intrinsics/system.c,
1547         intrinsics/system_clock.c, intrinsics/transpose_generic.c,
1548         intrinsics/umask.c, intrinsics/unlink.c, intrinsics/unpack_generic.c,
1549         io/backspace.c, io/close.c, io/endfile.c, io/inquire.c, io/io.h,
1550         io/open.c, io/rewind.c, io/transfer.c, libgfortran.h, m4/cshift1.m4,
1551         m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4,
1552         m4/eoshift3.m4, m4/exponent.m4, m4/fraction.m4, m4/iforeach.m4,
1553         m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/nearest.m4,
1554         m4/pow.m4, m4/reshape.m4, m4/set_exponent.m4, m4/shape.m4,
1555         m4/transpose.m4, runtime/environ.c, runtime/error.c,
1556         runtime/in_pack_generic.c, runtime/in_unpack_generic.c,
1557         runtime/main.c, runtime/memory.c, runtime/pause.c, runtime/select.c,
1558         runtime/stop.c: Use them to mark symbols internal or external.
1559         * generated/*: Rebuild.
1560
1561 2004-12-09  David Edelsohn  <edelsohn@gnu.org>
1562
1563         PR bootstrap/18895
1564         Revert 2004-12-07 change.
1565         * Makefile.am (AM_MAKEFLAGS): Delete.
1566         * Makefile.in: Regenerate.
1567
1568 2004-12-07  Steve Ellcey  <sje@cup.hp.com>
1569
1570         * libgfortran/Makefile.am (AM_MAKEFLAGS): New.
1571         * libgfortran/Makefile.in: Regenerate
1572
1573 2004-12-07  Steve Ellcey  <sje@cup.hp.com>
1574
1575         * io/io.h (open_external): Change prototype.
1576         * io/unix.c (regular_file): Change prototype and set flags->action if
1577         needed.
1578         (open_external): Ditto.
1579         * io/open.c (new_unit): Let open_external set flags->action.
1580
1581 2004-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1582
1583         * configure.ac: Check for ieeefp.h.  Check for fabsf in libm.
1584         * configure: Regenerate.
1585         * config.h.in: Likewise.
1586         * c99_protos.h: New file.
1587         * libgfortran.h: Include c99_protos.h and conditionally ieeefp.h.
1588         * intrinsics/c99_functions.c (fabsf): New function.
1589
1590 2004-12-06  Richard Henderson  <rth@redhat.com>
1591
1592         * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
1593         intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
1594         intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
1595         m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
1596         of internal_malloc.
1597         * generated/*: Rebuild.
1598
1599 2004-12-06  Richard Henderson  <rth@redhat.com>
1600
1601         * intrinsics/c99_functions.c, intrinsics/eoshift0.c,
1602         intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
1603         intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
1604         intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
1605         intrinsics/spread_generic.c, intrinsics/stat.c,
1606         intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
1607         intrinsics/transpose_generic.c, intrinsics/unlink.c,
1608         intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
1609         io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
1610         io/write.c, runtime/environ.c, runtime/error.c,
1611         runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
1612         runtime/memory.c, runtime/pause.c, runtime/stop.c,
1613         runtime/string.c: Whitespace fixes.
1614
1615 2004-12-06  Richard Henderson  <rth@redhat.com>
1616
1617         * Makefile.am: Generate all m4 output under $(srcdir).
1618         * Makefile.in: Regenerate.
1619
1620 2004-12-02  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1621
1622         PR fortran/18710
1623         * io/transfer.c (unformatted_read, unformatted_write): width of
1624         a COMPLEX is twice its kind.
1625
1626 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
1627
1628         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1629         * configure, aclocal.m4, Makefile.in: Regenerate.
1630
1631 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
1632
1633         PR libfortran/18284
1634         * io/unix.c (fd_alloc_w_at): Update file_length when extending.
1635         * io/backspace.c (formatted_backspace): Reset endfile after backspace.
1636
1637 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
1638
1639         * io/inquire.c (inquire_via_unit): do not allow a direct access
1640         file to be opened for sequential I/O.
1641
1642 2004-12-02  Steven G. Kargl  <kargls@comcast.net>
1643         Paul Brook  <paul@codesourcery.com>
1644
1645         * intrinsics/flush.c: New file.
1646         * intrinsics/fnum.c: ditto
1647         * intrinsics/stat.c: ditto
1648         * io/io.h (unit_to_fd): Add prototype.
1649         * io/unix.c (unit_to_fd): New function.
1650         * configure.ac: Add test for members of struct stat.  Check for
1651         sys/types.h and sys/stat.h
1652         * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
1653         * configure.in: Regenerate.
1654         * config.h.in: Regenerate.
1655         * Makefile.in: Regenerate.
1656
1657 2004-12-01  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1658
1659         * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
1660
1661 2004-11-28  Bud Davis  <bdavis9659@comcast.net>
1662
1663         * io/unix.c (mmap_alloc_w_a): check for a write to a location
1664         less than the mapped area.
1665
1666 2004-11-27  Bud Davis  <bdavis9659@comcast.net>
1667
1668         PR fortran/18364
1669         *  io/endfile.c (st_endfile): flush the stream before truncating.
1670
1671 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
1672
1673         * configure: Regenerate for libtool change.
1674
1675 2004-11-22  Steven Bosscher  <stevenb@suse.de>
1676
1677         PR libfortran/15960
1678         * configure.ac: Check for finite in libm.
1679         * libgfortran.h: Define isfinite macro if not defined.
1680         * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
1681         HAVE_FPCLASSIFY.
1682         * io/write.c (write_float): Use isfinite instead of finite.
1683         * configure, config.h.in: Rebuilt.
1684
1685 2004-11-20  Roger Sayle  <roger@eyesopen.com>
1686
1687         * io/write.c (write_float, list_formatted_write): Fix indentation.
1688
1689 2004-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
1690
1691         PR target/16135
1692         * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
1693         * configure.ac: Include LIBGFOR_TARGET_ILP32.
1694         * configure: Regenerate.
1695         * config.h.in: Likewise.
1696         * libgfortran.h: Provide default definitions for C99 types
1697         on ILP32 targets that don't have them.
1698
1699         PR target/17999
1700         * configure.ac: Check for snprintf.
1701         * configure: Regenerate.
1702         * config.h.in: Likewise.
1703         * intrinsics/date_and_time.c (date_and_time): Do not
1704         use snprinf if it is not available.
1705         * io/write.c (output_float): Likewise.
1706
1707 2004-11-20  Steven G. Kargl  <kargls@comcast.net>
1708
1709         * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
1710         * Makefile.in: Regenerated
1711         * intrinsics/umask.c: New file
1712         * intrinsics/unlink.c: ditto
1713         * intrinsics/exit.c: ditto
1714
1715 2004-11-18  Victor Leikehman  <lei@il.ibm.com>
1716
1717         * m4/matmul.m4: Loops reordered to improve cache behavior.
1718         * generated/matmul_??.c: Regenerated.
1719
1720 2004-11-10  Paul Brook  <paul@codesourcery.com>
1721
1722         PR fortran/18218
1723         * configure.ac: Check for strtof.
1724         * configure: Regenerate.
1725         * config.h.in: Regenerate.
1726         * io/read.c (convert_real): Use strtof if available.
1727         (convert_precision_real): Remove.
1728         (read_f): Avoid poor exponentiation algorithm.
1729
1730 2004-11-05  Andreas Schwab  <schwab@suse.de>
1731
1732         * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
1733         AC_PROG_F77, F77 and FFLAGS.
1734         * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
1735         FCCOMPILE instead of F77COMPILE.
1736         * configure, Makefile.in: Regenerate.
1737
1738 2004-11-05  Kelley Cook  <kcook@gcc.gnu.org>
1739
1740         * acinclude.m4: Properly quote AC_CACHE_CHECK.
1741         * Makefile.am: Add in ACLOCAL_AMFLAGS.
1742         * aclocal.m4, configure, Makefile.in: Regenerate.
1743
1744 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1745
1746         * config.h.in: Regenerate.
1747         * configure: Regenerate.
1748         * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
1749         * io/unix.c (S_IRGRP): Define if undefined.
1750         (S_IWGRP): Same.
1751         (S_IROTH): Same.
1752         (S_IWOTH): Same.
1753         (tempfile): Use mktemp if mkstemp missing, fix typos.
1754
1755 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1756
1757         *  intrinsics/system.c ("libgfortran.h"): Move after system headers.
1758
1759 2004-10-30  Canqun Yang  <canqun@nudt.edu.cn>
1760
1761         * intrinsics/rand.c (irand): Handle NULL argument.
1762
1763 2004-10-07  Paul Brook  <paul@codesourcery.com>
1764
1765         * io/transfer.c (finalize_transfer): Free internal streams.
1766         * io/unix.c (mem_close): Free stream object.
1767
1768 2004-10-07  Paul Brook  <paul@codesourcery.com>
1769
1770         * intrinsics/string_intrinsics.c (string_verify): Fix off by one
1771         error.
1772
1773 2004-10-06  Paul Brook  <paul@codesourcery.com>
1774
1775         PR libfortran/17709
1776         * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
1777
1778 2004-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
1779
1780         * intrinsics/mvbits.c: Commit the file.
1781
1782 2004-10-04  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1783
1784         PR fortran/17283
1785         * intrinsics/pack_generic.c (__pack): Allocate memory for return array
1786         if not done by caller.
1787         (__pack_s): New function.
1788         * runtime/memory.c (internal_malloc, internal_malloc64): Allow
1789         allocating zero memory.
1790
1791         PR fortran/17631
1792         * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
1793         * Makefile.in: Regenerate.
1794         * intrinsics/mvbits.h: New file.
1795
1796         PR fortran/17776
1797         * intrinsics/system.c: New file.
1798         * Makefile.am: Add dependency for the new file.
1799         * Makefile.in: Regenerate.
1800
1801 2004-10-04  Paul Brook  <paul@codesourcery.com>
1802         Bud Davis  <bdavis9659@comcast.net>
1803
1804         PR fortran/17706
1805         PR fortran/16434
1806         * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
1807         BN and BZ formats.
1808         * io/write.c (output_float): Don't output minus zero.
1809
1810 2004-10-03  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1811
1812         * intrinsics/abort.c ("libgfortran.h"): Move.
1813         * intrinsics/date_and_time.c ("libgfortran.h"): Same.
1814         * intrinsics/write.c ("libgfortran.h"): Same.
1815
1816 2004-09-26  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
1817
1818         PR libfortran/16137
1819         * config.h.in (HAVE_POWF): Undefine.
1820         * configure.ac: Check for 'powf' in library.
1821         * configure: Regenerate.
1822         * intrinsics/c99_functions.c (powf): New function.
1823
1824 2004-09-24  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
1825
1826         * intrinsics/etime.c (etime_): New function.
1827
1828 2004-09-21  Steven G. Kargl  <kargls@comcast.net>
1829
1830         * libgfortran.h: define gfc_alloca()
1831         * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
1832
1833 2004-09-21  Bud Davis  <bdavis9659@comcast.net>
1834
1835         PR fortran/17286
1836         * io/list_read.c (namelist_read): ignore spaces after
1837         the '=' for namelist reads.
1838
1839 2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1840
1841         * config.h.in: Regenerate.
1842         * configure: Regenerate.
1843         * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
1844         * unix.c: Include stdio.h.
1845         (HAVE_SYS_MMAN_H): Check.
1846         (PROT_READ, PROT_WRITE): Provide default definitions.
1847
1848 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
1849
1850         * intrincics/getcwd.c: New file.
1851         * Makefile.am: Add getcwd.c.
1852         * Makefile.in: Regenerated.
1853
1854 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
1855         Paul Brook  <paul@codesourcery.com>
1856
1857         * intrinsics/env.c (getenv, get_environmental_variable): Remove
1858         trailing white space.  Use alloca.  Honour trim_name.
1859
1860 2004-09-13  Bud Davis  <bdavis9659@comcast.net>
1861
1862         PR fortran/17090
1863
1864         * io/list_read.c (list_formatted_read): Handle trailing spaces
1865         at end of line.
1866
1867 2004-09-06  Steven G. Kargl  <kargls@comcast.net>
1868
1869         * io/write.c (output_float): Typo in comment.  Remove debugging
1870         printf.  Fix format for FP of form 1e10.
1871
1872 2004-09-03  Richard Henderson  <rth@redhat.com>
1873
1874         * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
1875         copy_loop_double, copy_loop_ldouble): New.
1876         (__cshift0): Make shift type ssize_t.  Use % operator instead of
1877         div.  Use specialized versions of copy loop depending on the shape.
1878
1879 2004-09-02  Paul Brook  <paul@codesourcery.com>
1880
1881         * io/format.c (parse_format_list): Set repeat count for P descriptors.
1882         * write.c (output_float): Fix condition.  Correctly handle nonzero
1883         scale factor.
1884
1885 2004-09-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
1886
1887         * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
1888         * mk-srk-inc.sh: Likewise.
1889
1890 2004-09-01  Paul Brook  <paul@codesourcery.com>
1891
1892         * runtime/error.c (generate_error): Set both iostat and
1893         library_return.
1894
1895 2004-08-31  Paul Brook  <paul@codesourcery.com>
1896
1897         PR libfortran/16805
1898         * io/list_read.c (next_char): Don't signal EOF for internal files.
1899         * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
1900
1901 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1902
1903         * io/unit.c: Separate copyright years by ','.
1904         (compare, insert_unit, delete_unit, is_internal_unit, close_units):
1905         Remove blank line in beginning of function.
1906         (get_unit): Simplify code.
1907
1908 2004-08-31  Paul Brook  <paul@codesourcery.com>
1909
1910         * io/unit.c (get_unit): Remove superfluous if.
1911
1912 2004-08-31  Paul Brook  <paul@codesourcery.com>
1913
1914         * io/transfer.c (read_sf): Rename uinty to readlen.  Detect EOF.
1915         (finalize_transfer): Move setjmp after namlist IO.
1916         * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
1917
1918 2004-08-31  Paul Brook  <paul@codesourcery.com>
1919
1920         * list_read.c (eat_separator): Set at_eo when a '/' is seen.
1921
1922 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1923
1924         * libgfortran.h: Replace 'gfc_strlen_type' by
1925         'gfc_charlen_type'. Update comment accordingly.
1926         * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
1927         Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
1928
1929 2004-08-31  Paul Brook  <paul@codesourcery.com>
1930
1931         * libgfortran.h: Add comments.
1932
1933 2004-08-30  Richard Henderson  <rth@redhat.com>
1934
1935         * Makefile.am (gfor_helper_src): Split selected_kind.f90.
1936         (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
1937         (selected_int_kind.inc selected_real_kind.inc): New rules.
1938         * Makefile.in: Regenerate.
1939         * mk-sik-inc.sh, mk-srk-inc.sh: New files.
1940         * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
1941         include table of detected kinds.
1942         * intrinsics/selected_real_kind.f90: Similarly.
1943
1944 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
1945         Paul Brook  <paul@codesourcery.com>
1946
1947         * intrinsics/bessel.c: New file.
1948         * intrinsics/erf.c: New file.
1949         * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
1950         * configure.ac: Test for C99 Bessel and Error functions.
1951         * Makefile.in: Regenerate.
1952         * config.h.in: Regenerate.
1953         * configure: Regenerate.
1954
1955 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
1956         Paul Brook  <paul@codesourcery.com>
1957
1958         * Makefile.am: Add intrinsics/getXid.c.
1959         * configure.ac: Add tests for get{g,p,u}id.
1960         * config.h.in: Regenerate.
1961         * Makefile.in: Regenerate.
1962         * configure: Regenerate.
1963
1964 2004-08-28  Paul Brook  <paul@codesourcery.com>
1965
1966         PR libfortran/17195
1967         * libgfortran.h (rtoa): Remove prototype.
1968         * runtime/error.c (rtoa): Remove.
1969         * io/write.c (calculate_G_format): Don't add blanks if E format is
1970         used.  Add correct number of blanks when exponent width is specified.
1971         (output_float): Rewrite.
1972
1973 2004-08-27  Paul Brook  <paul@codesourcery.com>
1974
1975         * io/rewind.c (st_rewind): Reset unit to read mode.
1976
1977 2004-08-27  Bud Davis  <bdavis9659@comcast.net>
1978
1979         PR fortran/16597
1980         * io/io.h: created typedef for unit_mode.
1981         * io/io.h (gfc_unit): added mode to unit structure.
1982         * io/transfer.c (data_transfer_init): flush if a write then
1983         read is done on a unit (direct access files).
1984         * io/rewind.c (st_rewind): Used unit mode instead of global.
1985
1986 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
1987
1988         PR fortran/17143
1989         * runtime/error.c (itoa): keep from overflowing during
1990         mod operation by using unsigned variable.
1991
1992 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
1993
1994         PR fortran/17164
1995         * runtime/string_intrinsics.c (string_index):check for
1996         substring longer than string.
1997
1998 2004-08-24  David Edelsohn  <edelsohn@gnu.org>
1999
2000         * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
2001         * Makefile.in: Rebuilt.
2002
2003 2004-08-23  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2004
2005         * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
2006         Fix formatting issues, update copyright years.
2007
2008 2004-08-21  Bud Davis  <bdavis9659@comcast.net>
2009
2010         PR 16908
2011         * io/transfer.c (next_record_w): Do not blank pad.
2012         * io/transfer.c (next_record): Take into account partial records.
2013
2014 2004-08-18  Victor Leikehman  <lei@il.ibm.com>
2015
2016         PR fortran/13278
2017         * io/transfer.c (st_set_nml_var)
2018         * io/write.c (namelist_write): Allow var_name and var_name_len to be
2019         null. For strings, use string_length field instead of len.
2020         * io/io.h (struct namelist_type): New field string_length.
2021         (st_set_nml_var_char): New argument string_length.
2022
2023 2004-08-13  Bud Davis  <bdavis9659@comcast.net>
2024
2025         PR gfortran/16935
2026         * io/open.c (st_open): use flags instead of the unit structure.
2027
2028 2004-08-10  Victor Leikehman  <lei@il.ibm.com>
2029
2030         * io/list_read.c (namelist_read): Convert variable names
2031         to lower case, so that mixed-case names are recognized.
2032         Don't read beyond terminating slash.
2033
2034 2004-08-09  Richard Henderson  <rth@redhat.com>
2035             Roger Sayle  <roger@eyesopen.com>
2036
2037         * intrinsics/c99_functions.c (nextafterf): New implementation that
2038         works correctly with denormalized numbers.
2039
2040 2004-08-09  Victor Leikehman  <lei@il.ibm.com>
2041
2042         * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
2043         intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
2044         Allocate space if return value has NULL in its data field.
2045         * generated/*.c: Regenerate.
2046
2047 2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2048
2049         * intrinsics/env.c: New file.
2050         * Makefile.am: Add env.c to build.
2051         * Makefile.in: Regenerate.
2052
2053 2004-08-05  Victor Leikehman  <lei@il.ibm.com>
2054
2055         PR libgfortran/16704
2056         * io/read.c (read_radix): Understand letters f and F as hex digits.
2057
2058 2004-08-04  Victor Leikehman  <lei@il.ibm.com>
2059
2060         * libgfortran.h (array_t, size0) New declarations.
2061         * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
2062         space if return value descriptor has NULL in its data field,
2063         and initialize bounds and stride.
2064         * intrinsics/size.c (array_t, size0): Declarations moved to
2065         libgfortran.h.
2066         * generated/*.c: Regenerate.
2067
2068 2004-08-03  Roger Sayle  <roger@eyesopen.com>
2069
2070         PR libgfortran/16137
2071         * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
2072         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
2073         scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
2074         * config.h.in: Regenerate.
2075         * configure: Regenerate.
2076
2077         * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
2078         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
2079         nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
2080         implementations for targets that don't support C99 float functions.
2081
2082 2004-08-01  Roger Sayle  <roger@eyesopen.com>
2083
2084         * io/write.c (write_float): Use the slightly more portable isnan
2085         in preference to isinf.
2086
2087 2004-07-18  Bud Davis  <bdavis9659@comcast.net>
2088
2089         * configure.ac: Add check for LFS support.
2090         * configure: Regenerate
2091
2092 2004-07-11  Paul Brook  <paul@codesourcery.com>
2093
2094         PR fortran/16303
2095         * m4/cexp.m4 (carg): Return -pi to pi.
2096         * generated/exp_c?.c: Regenerate.
2097
2098 2004-07-08  Andreas Krebbel  <krebbel1@de.ibm.com>
2099
2100         PR fortran/16291
2101         * libgfortran/io/write.c: (write_float): Added length check.
2102         Remove pointless memset calls.
2103
2104 2004-07-04  Bud Davis  <bdavis9659@comcast.net>
2105             Paul Brook  <paul@codesourcery.com>
2106
2107         PR fortran/15472
2108         * io/transfer.c(us_write): set recl for seq unform writes to max size.
2109         * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
2110         * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
2111         right time.
2112         * io/unix.c(is_seekable): set based upon the file/device, not the
2113         method being used to access it (fd or mmap).
2114         * io/unix.c(fd_flush): don't set file_size if !seekable.
2115         * io/unix.c(fd_truncate: ditto.
2116
2117 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2118         Paul Brook  <paul@codesourcery.com>
2119
2120         PR fortran/15280
2121         PR fortran/15665
2122         * libgfortran.h (gfc_strlen_type): Define.
2123         * intrinsics/args.c (getarg): Rename ...
2124         (getarg_i4): ... to this.
2125         (getarg_i8, get_command_argument_i4, get_command_argument_i8,
2126         get_command_i4, get_command_i8): New functions.
2127
2128 2004-07-04  Matthias Klose  <doko@debian.org>
2129
2130         * libtool-version: New.
2131         * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
2132         * Makefile.in: Regenerate.
2133         * configure.ac: Remove libtool_VERSION macro
2134         * configure: Regenerate
2135
2136 2004-06-30  Steve Kargl  <sgk@troutmask.apl.washington.edu>
2137             Steven Bosscher  <stevenb@suse.de>
2138
2139         * intrinsics/rand.c (rand): Wrap the irand() call from the previous
2140         commit in prefix.
2141
2142 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2143         Paul Brook  <paul@codesourcery.com>
2144
2145         * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
2146         comments.
2147         * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
2148
2149 2004-06-27  Bud Davis  <bdavis9659@comcast.net>
2150
2151         PR gfortran/12839
2152         * io/write.c (write_float): check signbit for Infinity.
2153
2154 2004-06-26  Bud Davis  <bdavis9659@comcast.net>
2155
2156         PR gfortran/16196
2157         * unix.c(regular_file): create file if it does not exist.
2158
2159 2004-06-24  Andrew Pinski  <apinski@apple.com>
2160
2161         * configure.ac: Remove check for libmx.
2162         * configure: Regenerate.
2163
2164 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2165
2166         PR fortran/15750
2167         * inquire.c (st_inquire): Add comment
2168         * io.h (st_parameter): Add iolength.
2169         (st_iolength, st_iolength_done): Declare.
2170         * transfer.c (iolength_transfer, iolength_transfer_init,
2171         st_iolength, st_iolength_done): New functions.
2172
2173 2004-06-21  Steven G. Kargl  <kargls@comcast.net>
2174
2175         * etime.c (etime_sub): Remove array rank check;
2176         Add check for sufficient space.
2177
2178 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
2179
2180         PR gfortran/16080
2181         * io/list_read.c(set_value): fixed spelling.
2182
2183 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
2184
2185         PR gfortran/16080
2186         * io/list_read.c(set_value): don't copy if the string is null.
2187
2188 2004-06-14  Bud Davis  <bdavis9659@comcast.net>
2189
2190         PR gfortran/15292
2191         * intrinsics/c99_functions.c: Use fpclassify if it exists.
2192
2193 2004-06-13  Paul Brook  <paul@codesourcery.com>
2194
2195         * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
2196         * configure.ac: Add checks for nextafter and nextafterf.
2197         * Makefile.in, config.h.in, configure: Regenerate.
2198         * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
2199         * intrinsics/rand.c (rand): Use normalize_r4_i4.
2200         * intrinsics/random.c (random_r4): Use normalize_r4_i4.
2201         (random_r8): Use normalize_r8_i8.
2202         * runtime/normalize.c: New file.
2203
2204 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
2205             Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2206
2207         * random.c: Fix several spelling and formatting mistakes in
2208         comments.
2209         (random_r8): Fix loop to make random numbers range in [0,1(.
2210
2211
2212 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
2213
2214         * random.c (random_r4): Burn a random number.
2215         (random_r8): fix infinite loop.
2216
2217 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
2218       Steve Kargl  <sgk@troutmask.apl.washington.edu>
2219
2220         PR gfortran/15292
2221         * intrinsics/c99_functions.c: New file.
2222         * Makefile.am: Add new file.
2223         * configure.ac: Added test for round/roundf.
2224         * Makefile.in: Regenerate.
2225         * configure: Regenerate.
2226         * configure.h.in: Regenerate.
2227
2228 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
2229
2230         * Makefile.am: Add rand.c and etime.c
2231         * Makefile.in: Regenerated.
2232         * aclocal.in: Regenerated.
2233         * cpu_time.c (second_sub, second): New functions.
2234         * rand.c (irand, rand, srand): New file.
2235         * etime.c (etime_sub, etime): New file.
2236
2237 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2238             Steven Bosscher  <stevenb@suse.de>
2239
2240         PR fortran/14923
2241         * intrinsics/date_and_time.c: New file.
2242         * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
2243         * Makefile.in, aclocal.m4: Regenerate.
2244         * libgfortran.h: Prototype date_and_time().
2245
2246 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
2247
2248         PR fortran/15665
2249         * intrinsics/args.c: Implement GETARG and IARGC.
2250         * Makefile.am: Add it.
2251         * Makefile.in: Regenerate.
2252
2253 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
2254
2255         PR gfortran/12839
2256         * io/write.c(write_float): Format inf and nan IAW F2003.
2257
2258 2004-06-09  Bud Davis  <bdavis9659@comcaste.net>
2259
2260         PR gfortran/14897
2261         * io/transfer.c (formatted_transfer): position is unique
2262          for T and TL edit descriptors.
2263         (data_transfer_init): set record length to size of internal
2264          file.
2265
2266 2004-06-09  Bud Davis  <bdavis9659@comcast.net>
2267
2268         PR gfortran/15755
2269         * io/backspace.c(st_backspace): call correct routine for
2270         formatted and un-formatted units.
2271
2272 2004-05-30  Andreas Jaeger  <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
2273
2274         PR gfortran/11800
2275         * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
2276         (lib_LTLIBRARIES): Rename to ...
2277         (toolexeclib_LTLIBRARIES): this for multilib support.
2278         * configure.in: Rename to ...
2279         * configure.ac: this.  Update to modern autoconf style, enable
2280         multilibs, support --enable-version-specific-runtime-libs.
2281         * Makefile.in: Regenerated.
2282         * configure: Regenerated.
2283         * aclocal.m4: Regenerated.
2284
2285 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
2286
2287         * libgfortran.h (random_seed): Update prototype.
2288         * intrinsics/random.c: Disable old implementation and add new one.
2289
2290 2004-05-30  Andreas Jaeger  <aj@suse.de>
2291
2292         * intrinsics/random.c: Include unistd.h for close and read
2293         prototypes, remove unneeded inclusion of assert.h.
2294
2295         * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
2296         unneeded inclusion of assert.h.
2297
2298 2004-05-27  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
2299
2300         PR fortran/15234
2301         * intrinsics/associated.c: Remove enum.
2302         (associated): Replace TRUE/FALSE by 1/0.
2303
2304 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
2305
2306         * random.c (random_seed): Use correct variable.
2307
2308 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
2309
2310         * intrinsics/system_clock: New file.
2311         * Makefile.am: Add intrinsics/system_clock.c.
2312         * Makefile.in: Regenerate.
2313
2314 2004-05-21  Roger Sayle  <roger@eyesopen.com>
2315
2316         * io/format.c (parse_format_list): Allow the comma after a string
2317         literal to be optional.
2318
2319 2004-05-18  Paul Brook  <paul@codesourcery.com>
2320         Feng Wang  <fengwang@nudt.edu.cn>
2321
2322         * Makefile.am (i_pow_c): Set it. Add build rule.
2323         (gfor_built_src): Use it.
2324         (m4_files): add m4/pow.m4.
2325         * Makefile.in: Regenerate.
2326         * m4/pow.m4: New file.
2327         * generated/pow_*.c: Regenerate.
2328
2329 2004-05-18  Paul Brook  <paul@codesourcery.com>
2330
2331         * Makefile.am: Remove references to types.m4.
2332         * m4/iparm.m4: Merge with types.m4.
2333         * m4/types.m4: Remove.
2334         * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
2335         m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
2336         m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
2337         m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
2338         m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
2339         m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
2340         Update to use new iparm.m4.
2341         * generated/*.c: Regenerate.
2342
2343 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2344
2345         PR fortran/15235
2346         * gfortran.h (offset_t): Rename to ...
2347         (gfc_offset): ... this.
2348         * io/backspace.c (formatted_backspace, unformatted_backspace),
2349         io/io.h (stream, gfc_unit, global_t, file_length, file_position),
2350         transfer.c (us_read, us_write, next_record_r, next_record_w),
2351         io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
2352         fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
2353         mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
2354         mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
2355         occurences of offset_t by gfc_offset.
2356
2357 2004-05-16  Paul Brook  <paul@codesourcery.com>
2358
2359         * io/format.c (write_real): Don't include padding in format.
2360
2361 2004-05-16  Paul Brook  <paul@codesourcery.com>
2362
2363         * io/format.c (format_lex): Make c an int.
2364
2365 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2366         Paul Brook  <paul@codesourcery.com>
2367
2368         * io/write.c (write_logical): Don't print extra blank.
2369         (write_integer): Base field width on kind.
2370         (list_formatted_write): Output initial blank.
2371
2372 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2373
2374         * io/io.h (flush): Add prototype.
2375         * io/transfer.c (finalize_transfer): Flush partial records.
2376         * io/unix.c (flush): New function.
2377
2378 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
2379
2380         PR fortran/15234
2381         * io/io.h (unit_t): Rename to ...
2382         (gfc_unit) ... this.
2383         (unit_root, current_unit, find_file, find_unit, get_unit): Now
2384         of type gfc_unit.
2385         (delete_file, insert_unit, close_unit): Argument now of type
2386         gfc_unit.
2387         * backspace.c (st_backspace), close.c (st_close), endfile.c
2388         (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
2389         (test_endfile, edit_modes, new_unit, already_open, st_open),
2390         rewind.c (st_rewind), transfer.c (current_unit), unit.c
2391         (internal_unit, unit_cache, rotate_left, rotate_right, insert,
2392         insert_unit, delete_root, delete_treap, delete_unit, find_unit,
2393         get_unit, init_units, close_unit), unix.c (find_file0,
2394         find_file, delete_file): Replace all occurences of unit_t by
2395         gfc_unit.
2396
2397 2004-05-15  Bud Davis  <bdavis9659@comcast.net>
2398
2399         PR fortran/15311
2400         * io/write.c (write_a): right justify A edit output.
2401
2402 2004-05-14  Bud Davis  <bdavis9659@comcast.net>
2403
2404         PR fortran/15149
2405         * libgfortan.h,intrinsics/random.c: Made random_seed visible.
2406         * runtime/main.c(init): Call random_seed as part of MAIN init.
2407
2408 2004-05-13  Tobias Schlter  <tobias.schlueter@physik.uni-muenchen.de>
2409
2410         * io/format.c: (parse_format_list): No comma is required after
2411         P descriptor.
2412
2413 2004-05-13  Bud Davis  <bdavis9659@comcast.net>
2414
2415         PR fortran/15204
2416         * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
2417
2418 2004-05-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2419             Steven Bosscher  <stevenb@suse.de>
2420
2421         PR libfortran/15234
2422         * libgfortran.h: Include <inttypes.h> if available.
2423
2424 2004-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2425
2426         * io/unix.c (MAP_FAILED): Define if missing.
2427         (mmap_alloc): Cast MAP_FAILED to char *.
2428         (mmap_open): Likewise.
2429
2430 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
2431
2432         * generated/_abs_i8.f90: New file.
2433         * generated/_abs_c4.f90: New file.
2434         * generated/_abs_c8.f90: New file.
2435         * Makefile.am: Add them.
2436         * Makefile.in: Regenerate.
2437 `
2438 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
2439
2440         PR fortran/14056
2441         * generated/_abs_i4.f90: New file.
2442         * Makefile.am: Add it.
2443         * Makefile.in: Regenerate.
2444
2445 2004-04-25  Bud Davis  <bdavis9659@comcast.net>
2446
2447         PR fortran/14942
2448         * io/list_read.c(list_formatted_read): finish consuming the
2449         spaces and seperators at eoln to get ready for next item.
2450
2451 2004-04-23  Bud Davis  <bdavis9659@comcast.net>
2452
2453         PR fortran/15113
2454         * io/read.c(read_a): Handle field width > destination and no field width.
2455
2456 2004-04-22  Bud Davis  <bdavis9659@comcast.net>
2457
2458         PR fortran/14906
2459         * io/format.c (format_item): gracefully handle a ')'
2460         when it is the first character encountered in the string.
2461
2462 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
2463
2464         PR fortran/14904
2465         * io/transfer.c (next_record): Update last_record when
2466         more than one record is written to a direct access file
2467         with one write statement.
2468
2469 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
2470
2471         PR fortran/14901
2472         * io/transfer.c (next_record_w) : No '\n' if internal.
2473         * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
2474
2475 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
2476
2477         * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
2478         Will need to change this later to support direct access files > 2gb.
2479
2480 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
2481
2482         PR gfortran/14762
2483         * io/transfer.c (next_record_r) : Skip to next record.
2484
2485 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
2486
2487         PR gfortran/14836
2488         * io/transfer.c (next_record): Update last_record for DIRECT
2489
2490 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
2491
2492         PR gfortran/14837
2493         * io/unix.c (find_file0): Use fd field of struct
2494
2495 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
2496
2497         PR 14831
2498         * io/inquire.c (inquire_via_unit): Changed return string for
2499         BLANK=NULL. Use correct variable for ACTION.
2500
2501 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
2502
2503         PR 14746
2504         * io/read.c (read_f): Allow a decimal without a leading digit.
2505         * io/write.c (output_float): remove a leading '0' to keep from
2506         overflowing the field (F edit descriptor).
2507
2508 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
2509
2510         PR gfortran/14565
2511         * io/open.c (new_unit),
2512         * io/io.h : new_unit is now visible
2513         * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
2514         * io/transfer.c (data_transfer_init): remove compile warnings.
2515         * io/rewind.c (st_rewind): ftruncate if writing.
2516
2517 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
2518
2519         * write.c (write_l): Use extract_int for 'L' edit descriptor.
2520
2521 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
2522
2523         PR 13919
2524         * io/io.h (global_t):
2525         * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
2526           Move eof_jmp to a global structure.
2527         * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
2528
2529 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
2530
2531         * m4/cexp.m4 (csqrt): Actually use the passed value.
2532         * generated/exp_c?.c: Regenerate.
2533
2534 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
2535
2536         PR 12921
2537         * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
2538         * open.c (new_unit): Moved test for positioned direct access error.
2539         (init_units): Corrected calculation of max records.
2540
2541 2004-02-06  Feng Wang  <fengwang@nudt.edu.cn>
2542
2543         * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
2544         * Makefile.in: Regenerate.
2545         * m4/dotprodc.m4: New file. Implement complex dot_product.
2546         * m4/dotprod.m4: Delete the complex implementation.
2547         * generated/dotprod_*: Update.
2548
2549 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
2550
2551         * transfer.c (write_constant_string): Do not delete H's in hollerith
2552         formats.
2553
2554 2004-01-05  Andrew Pinski  <apinski@apple.com>
2555
2556         * configure.in: Check for csin in -lmx also.
2557         * configure: Regenerate.
2558
2559 2004-01-01  Paul Brook  <paul@codesourcery.com>
2560
2561         * io/list_read.c (find_nml_node): Make static.
2562         (match_namelist_name): Ditto.
2563         * io/read.c (convert_precision_real): Make static, fix spelling.
2564         * io/transfer.c (extract_real): Remove unused prototype.
2565         (st_set_nml_var): Make static.
2566         * io/write.c (extract_real): Make static.
2567
2568 2003-12-12  Huang Chun <chunhuang73@hotmal.com>
2569
2570         * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
2571
2572 2003-12-05  Melvin Hadasht  <melvin.hadasht@free.fr>
2573
2574         * io/transfer.c (data_transfer_init): Give a runtime error for list
2575         formatted reads and writes from/to files opened for unformatted IO.
2576
2577 2003-11-30  Paul Brook  <paul@nowt.org>
2578
2579         * runtime/memory.c (push_context): Remove.
2580         (pop_context): Remove.
2581         * libgfortran.h: Remove prototypes.
2582
2583 2003-11-27  Paul Brook  <paul@nowt.org>
2584
2585         * runtime/memory.c (deallocate): Nullify pointer after freeing.
2586
2587 2003-11-27  Paul Brook  <paul@nowt.org>
2588
2589         * intrinsics/string_intrinsics.c: Use new memory allocation interface.
2590         * libgfortran.h: Ditto.
2591         * m4/in_pack.m4: Ditto.
2592         * runtime/in_pack_generic.c: Ditto.
2593         * runtime/memory.c: Ditto.
2594
2595 2003-11-26  Richard Henderson  <rth@redhat.com>
2596
2597         * m4/exponent.m4, m4/fraction.m4: New.
2598         * m4/nearest.m4, m4/set_exponent.m4: New.
2599         * generated/*: Update.
2600         * Makefile.am: Add them.
2601         (AM_CFLAGS): New.  Use -std=gnu99.
2602         * Makefile.in: Regenerate.
2603
2604 2003-11-08  Paul Brook  <paul@nowt.org>
2605
2606         PR fortran/12704
2607         * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
2608         * m4/maxloc1.m4: Ditto.
2609         * m4/minloc0.m4: Ditto.
2610         * m4/minloc1.m4: Ditto.
2611         * m4/ifunction.m4: Set return value for zero sized arrays.
2612         * m4/iforeach.m4: Ditto.
2613         * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
2614         m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
2615         * generated/*: Update.
2616
2617 2003-10-30  Toon Moene  <toon@moene.indiv.nluug.nl>
2618
2619         PR fortran/12702
2620         * io/list_read.c (eat_spaces): Treat tab as space.
2621
2622 2003-10-30  Lars Segerlund  <Lars.Segerlund@comsys.se>
2623
2624         * intrinsics/random.c: Add reference to paper containing algorithm.
2625         (random_seed): Extra error checking and proper handling of arrays.
2626         (arandom_r4, arandom_r8): Implement.
2627
2628 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
2629
2630         PR fortran/12703
2631         * runtime/memory.c (allocate_size): Allow allocation
2632         of zero-sized objects.
2633
2634 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
2635
2636         PR fortran/12701
2637         * open.c (new_unit): Open without a file name opens
2638         a file with name fort.<unit>.
2639
2640 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
2641
2642         * intrinsics/cshift0.c: New file.
2643         * m4/cshift1.m4: New file
2644         * generated/cshift*.c: New files.
2645         * Makefile.am: Add them.
2646         * Makefile.in: Regenerate.
2647
2648 2003-10-12  XiaoQiang Zhang  <zhangapache@yahoo.com>
2649
2650         * io/list_read.c (read_character): Remove unwanted call to free_saved.
2651
2652 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
2653
2654         * intrinsics/string_intrinsics.c (string_trim): New function.
2655         (string_repeat): New function.
2656
2657 2003-10-11  Paul Brook  <paul@nowt.org>
2658
2659         * intrinsics/dprod_r8.f90: New file.
2660         * Makefile.am (gfor_specific_src): Add it.
2661         (gfor_built_specific_src): Rename from gfor_build_specific_c.
2662         Add new intrinsics.
2663         (gfor_specific2_src): Rename from gfor_built_specific2_c.
2664         Add new intrinsics.
2665         * Makefile.in: Regenerate.
2666         * generated/_aint_*.f90: New files.
2667         * generated/_anint*.f90: New files.
2668         * generated/_atan2*.f90: New files.
2669         * generated/_mod*.f90: New files.
2670
2671 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2672
2673         * intrinsics/selected_kind.f90: New file.
2674         * Makefile.am: Add it.
2675         * Makefile.in: regenerate.
2676
2677 2003-09-19  Lars Segerlund  <Lars.Segerlund@comsys.se>
2678         Paul Brook  <paul@nowt.org>
2679
2680         * intrinsics/random.c: New file.
2681         * Makefile.am (gfor_hemper_src): Add it.
2682         (gfor_specific_c): Fix typo.
2683
2684 2003-09-19  Paul Brook  <paul@nowt.org>
2685
2686         * All: rename g95->gfc.
2687
2688 2003-09-18  XiaoQiang Zhang  <zhangapache@yahoo.com>
2689
2690         * io/write.c (output_float): Fix bug of FMT_E, Add comments.
2691
2692 2003-09-09  XiaoQiang Zhang  <zhangapache@yahoo.com>
2693
2694         * io/write.c (write_float): Dectection of positive infinite number,
2695         Not a Number(NaN) and negative infinite number.
2696         (ioutput_float): Bug fix for FMT_E and FMT_D processing to
2697         output a very_very small number ( < 0.1e-100 ).
2698
2699 2003-09-07  XiaoQiang Zhang  <zhangapache@yahoo.com>
2700
2701         * libgfortran.h (xtoa, itoa): Parameter modified.
2702         * io/io.h (namelist_info): Declaration to support namelist I/O
2703         (st_parameter): Add namelist related component
2704         (ionml, empty_internal_buffer, st_set_nml_var_int,
2705         st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
2706         st_set_nml_var_log): Declaration
2707         (set_integer, set_integer): Parameter changed
2708         * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
2709          fnodes
2710         (parse_format_list): Fix bug about FMT_SLASH
2711         * io/list_read.c (push_char): Totally clear old saved_string, zeroize
2712         newly allocated saved_string
2713         (next_char): Add detection of End_Of_Line support
2714         (convert_integer): Now can process 64 bits interger
2715         (read_real): Bug fixed
2716         (init_at_eol, find_nml_node, match_namelist_name): Add new functions
2717         (match_namelist_name): New implemention
2718         * io/lock.c (ionml): New global variable
2719         (library_end): Free memory in ionml
2720         * io/open.c (st_open): Variable initializtion
2721         * io/read.c (max_value): 64 bits interger support
2722         (convert_precsion_real): New procedure to replace "strtod" with more
2723          features
2724         (read_f, read_radix): Input bug fix
2725         * io/transfer.c: (sf_seen_eor): New static variable
2726         (read_sf): Zeroize base buffer; fix bugs: single read statement can
2727         not get input in mutli line when read from stdin
2728         (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
2729          request
2730         (data_transfer_init): Clear internal buffer for Internel File I/O.
2731         Internal File now worked. Detect some error condition for namelist.
2732         Some minor bug fix
2733         (next_record_w): Internal file and Namelist I/O support.
2734         (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
2735         st_set_nml_var_complex, st_set_nml_var_log): Implemention.
2736         * io/unit.c (implicit_unit): Deletion
2737         (get_unit): Now cannot open a unit implicitly.
2738         * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
2739         mapped buffer.
2740         (mem_alloc_r_at): Internal file I/O support added
2741         (empty_internal_buffer): New function
2742         * io/write.c (extract_int): Support 64 bits interger processing
2743         (output_float): Varibale initialization
2744         (write_float): Infinite real number detection.
2745         (write_int): 64 bits integer I/O support
2746         (write_decimal): New function to output decimal number
2747         (otoa, btoa): Better implemention and 64 bits interger support
2748         (namelist_write): New function
2749         * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
2750         interger support
2751
2752 2003-08-15  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2753
2754         * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
2755         get_mem ): Add attribute.
2756         * intrinsics/spread_generic.c (__spread): Fix spelling.
2757         * io/inquire.c (inquire_via_filename): Add const.
2758         * io/io.h (sys_exit): Add attribute.
2759         * io/io.h (move_pos_offset): Add move_pos_offset.
2760         * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
2761         inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
2762         inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
2763         write_en, write_es, write_f, write_i, write_l, write_o, write_x,
2764         write_z): Add const.
2765         * io/read.c (convert_real): Add const.
2766         * io/transfer.c (type_name): Add const.
2767         * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
2768         inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
2769         inquire_read, inquire_write, inquire_readwrite): Add const.
2770         * io/write.c (output_float): Remove unused variable.
2771         * io/write.c (write_a, extract_int, extract_real, output_float,
2772         write_float, write_int, write_i, write_b, write_o, write_z, write_d,
2773         write_e, write_f, write_en, write_es, write_logical, write_integer,
2774         write_character, write_real, write_complex): Add const.
2775         * runtime/error.c (rtoa): Remove unused variable.
2776         * runtime/select.c (select_string): Add const.
2777         * runtime/stop.c (stop_string): Add const.
2778
2779 2003-08-10  Paul Brook  <paul@nowt.org>
2780
2781         * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
2782         (FFLAGS): Add -fno-underscoring.
2783         * Makefile.in: Regenerate.
2784         * intrinsics/abort.c: New file.
2785
2786 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
2787
2788         * fmain.c (main): Do not call init and cleanup; call set_args instead.
2789         * libgfortran.h (init, cleanup): Remove declarations.
2790         (set_args): Add declaration.
2791         * runtime/main.c (init, cleanup): Make them static, and give them
2792         the constructor and destructor attributes.
2793         (set_args): New function.
2794
2795 2003-08-10  Paul Brook  <paul@nowt.org>
2796
2797         * intrinsics/strinf_intrinsics.c (compare_string): Return value based
2798         on which string is longest.
2799
2800 2003-08-10  Paul Brook  <paul@nowt.org>
2801
2802         * Makefile.am (EXTRA_DIST): Remove old files.
2803         * Makefile.in: Regenerate.
2804
2805 2003-07-26  Paul Brook  <paul@nowt.org>
2806
2807         Rename library to libgfortran.
2808         * libgfortran.h: Change prefix to _libgfortran_.
2809
2810 2003-07-24  Paul Brook  <paul@nowt.org>
2811
2812         * configure.in: Don't pull in system libtool.  Use toplevel
2813         auxiliary files.
2814
2815 2003-07-22  Paul Brook  <paul@nowt.org>
2816
2817         Regenerate all configury files.
2818
2819 2003-07-09  Chun Huang  <compiler@sohu.com>
2820
2821         * intrinsics/string_intrinsic.c (string_scan): New function.
2822         (string_verify): New function.
2823
2824 2003-06-25  Paul Brook  <paul@nowt.org>
2825
2826         * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
2827         (mem_seek): Don't bother setting physical_offset.
2828
2829 2003-06-20  Paul Brook  <paul@nowt.org>
2830
2831         * libgfor.h (stop_numeric): Declare.
2832         * runtime/pause.c: New file.
2833         * Makefile.am: Add it.
2834
2835 2003-06-08  Paul Brook  <paul@nowt.org>
2836
2837         * m4/cexp.m4 (cabs): Use correct typed version.
2838         (csqrt): New function.
2839
2840 2003-06-07  Canqun Yang  <canqun@yahoo.com.cn>
2841
2842         Spotted by Benjamin and Tobias:
2843         * io/list_read.c: Add Separator '\t'.
2844         (parse_real, read_real): Accept real values starting with an optional
2845         sign follows a decimal point.
2846
2847 2003-06-06  Steven Bosscher  <steven@gcc.gnu.org>
2848
2849         * Makefile.am: Don't put cmath objects in subdir.
2850         * configure.in: Rename MATHOBJ to MATH_OBJ.
2851
2852 2003-06-02  Kejia Zhao  <Kejia_zh@yahoo.com.cn>
2853
2854         * intrinsics/associated.c: New file.
2855         * Makefile.am: Add it. Regenerate Makefile.in.
2856         * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
2857         G95_DESCRIPTOR_DTYPE.
2858
2859 2003-06-01  Canqun Yang  <canqun@yahoo.com.cn>
2860
2861         * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
2862         (calculate_G_format): Rewrite it to eliminate an infinte loop and set
2863         the scale_factor to 0 for F editing.
2864
2865 2003-05-11  Tobias Schlter  <innenminister@gmx.de>
2866
2867         * libgfor.h: Only include stdint.h if it exists.
2868
2869 2003-05-07  Paul Brook  <paul@nowt.org>
2870
2871         * libgfor.h: Use stdint.h types.
2872         * intrinsics/ishift.c: Ditto.
2873         * runtime/memory.c (malloc_t): Reorder fields for better alignment.
2874
2875 2003-05-05  Steven Bosscher  <steven@gcc.gnu.org>
2876
2877         * libgfor.h (offsetof): Define if nobody else does.
2878         * runtime/memory.c (HEADER_SIZE): Use it.
2879
2880 2003-05-01  Tobias Schlter  <innenminister@gmx.de>
2881
2882         * configure.in: Require autoconf 2.54.
2883
2884 2003-04-28  Tobias Schlter  <innenminister@gmx.de>
2885         Paul Brook  <paul@nowt.org>
2886
2887         * intrinsics/reshape_generic.c: Copy the whole element, not just the
2888         first byte.
2889         * m4/transpose.m4: New file.
2890         * Makefile.am: Add them.
2891         Regenerate generated files.
2892
2893 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
2894
2895         * io/format.c (parse_format_list): Allow 'X' without integer
2896         prefix.  This is an extension.  Interpretation is '1X'.
2897
2898 2003-04-18  Tobias Schlter  <Tobias.Schlueter@physik.uni-muenchen.de>
2899
2900         * io/format.c (parse_format_list): Allow '0P'.
2901
2902 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
2903
2904         * Makefile.in: Re-regenerate for automake 1.7.3.
2905
2906 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
2907
2908         Port implementation for CHARACTER SELECT from Andy's tree.
2909         * runtime/select.c: New file
2910         * Makefile.am: Add it.
2911         * Makefile.in: Regenerate.
2912
2913 2003-04-17  Xiaoqiang Zhang <zhangapache@yahoo.com>
2914
2915         * io/transfer.c (formatted_transfer): Modified
2916         * io/unix.c (move_pos_offset): New Function.
2917         * io/format.c (parse_format_list): Modified.
2918
2919 2003-04-15  Xiaoqiang Zhang <zhangapache@yahoo.com>
2920
2921         * io/write.c (write_float,write_real): New implemention of
2922         FMT_G and default float editing.
2923         (calculate_exp,calculate_G_format,output_float): New Function.
2924         (write_float,write_real,write_logical): Modified
2925         * libgfor.h (default_rtoa): Remove Declaration.
2926         * runtime/error.c (default_rtoa): Remove Function.
2927
2928 2003-04-15  Steven Bosscher  <steven@gcc.gnu.org>
2929
2930         Spotted by Yang:
2931         * io/write.c (extract_real): Add missing break statement.
2932
2933 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
2934
2935         * cpu_time.c: Make sure we have a definition of HZ.  Don't
2936         rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
2937
2938 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
2939             Paul Brook  <paul@nowt.org>
2940
2941         * configure.in: Check for process time headers and GETTIMEOFDAY.
2942         * makefile.am: Add intrinsics/cpu_time.c.
2943         * acinclude.m4: New file.
2944         * intrinsics/cpu_time.c: New file.
2945         * m4/dotprodl.m4: Fix typo.
2946         Regenerate generated files.
2947
2948 2003-04-11  Xiaoqiang Zhang <zhangapache@yahoo.com>
2949
2950         * io/write.c (extract_real): Ouput floating point value.
2951         (write_float): New Function.
2952         (write_e, write_f, write_en, write_es): Modified
2953         * io/transfer.c (formatted_transfer): Modified.
2954         * libgfor.h (default_rtoa): Declaration.
2955         (rtoa): Declaration.
2956         * runtime/error.c (default_rtoa): New Function.
2957         (rtoa): New Function.
2958
2959 2003-04-05  Paul Brook  <paul@nowt.org>
2960
2961         * intrinsics/spread_generic.c: New file.
2962         * Makefile.am: Add it. Regenerate Makefile.in.
2963
2964 2003-03-29  Paul Brook  <paul@nowt.org>
2965
2966         * intrinsics/pack_generic.c: New file.
2967         * intrinsics/unpack_generic.c: New file.
2968         * Makefile.am: Add them. Regenerate Makefile.in.
2969
2970 2003-03-25  Paul Brook  <paul@nowt.org>
2971
2972         * intrinsics/eoshift0.c: New file.
2973         * intrinsics/eoshift2.c: New file.
2974         * m4/eoshift1.m4: New file.
2975         * m4/eoshift3.m4: New file.
2976         * Makefile.am: Add them.
2977         * in_unpack_generic.c: Initialize src.
2978         Regenerate generated files.
2979
2980 2003-03-14  Paul Brook  <paul@nowt.org>
2981
2982         * m4/shape.m4: Work properly with array temporaries.
2983         * m4/in_pack.m4: Skip redundant checks for array temporaries.
2984         * runtime/in_pack_generic.c: Ditto.
2985
2986 2003-03-12  Paul Brook  <paul@nowt.org>
2987
2988         * m4/shape.m4: Work properly with noncontiguous arrays.
2989
2990 2003-03-08  Paul Brook  <paul@nowt.org>
2991
2992         * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
2993         * runtime/in_pack_generic.c: Ditto.
2994
2995 2003-02-08  Paul Brook  <paul@nowt.org>
2996
2997         * intrinsics/reshape_generic.c: Use runtime_error to report errors.
2998         * io/close.c (st_close): Return void.
2999         * io/open.c (st_open): Return void.
3000         * libgfor.h (g95_array_char): Declare.
3001         (internal_malloc_size): Ditto.
3002         (internal_pack*, internal_unpack*): Ditto.
3003         * m4/in_pack.m4: Allocate storage if neccessary.  Fix logic for packed
3004         arrays.
3005         * m4/in_unpack.m4: Include file fixes.
3006         * m4/reshape.m4: Increment the correct source pointer.
3007         * Makefile.am (maxloc): Fix typo.
3008         * runtime/in_pack_generic.c: Call optimized functions. Allocate
3009         storage if neccessary. Fix logic for packed arrays.
3010         * runtime/in_unpack_generic.c: Call optimized functions.
3011         * runtime/main.c: Use runtime_error to report errors.
3012         * memory.c (internal_malloc_size): Make non-static.
3013
3014 2003-02-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3015
3016         * reshape_packed.c, lock.c: Add #include <string.h>.
3017         * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
3018         environ.c, error.c, memory.c, string.c: Add const.
3019         * error.c (show_locus): Add void.
3020
3021 2003-02-21  Paul Brook  <paul@nowt.org>
3022
3023         * m4/in_pack.m4: Avoid returning const * parameter.
3024         * Makefile.am: Only regenerate files in maintainer mode.
3025
3026 2003-02-20  Paul Brook  <paul@nowt.org>
3027
3028         Add array repacking support functions.
3029         * m4/in_pack.m4, m4/in_unpack.m4: New files.
3030         * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
3031         * Makefile.am: Build them.  Regenerate configury files.
3032         * generated/: New directory for generated files (need to move
3033         everything else there).
3034
3035 2003-02-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3036
3037         * m4/cexp.m4: Fix typo.
3038
3039 2003-01-26  Paul Brook  <paul@nowt.org>
3040
3041         * intrinsics/: Add missing generated files.
3042
3043 2003-01-26  Paul Brook  <paul@nowt.org>
3044
3045         * Makefile.am: Put -I before the filename.
3046
3047 2003-01-24  Paul Brook  <paul@nowt.org>
3048
3049         * configure.in: Add AM_MAINTAINER_MODE.
3050
3051 2003-01-23  Paul Brook  <paul@nowt.org>
3052
3053         * configure.in, Makefile.am: Modify to work with unmodified autoconf
3054         and auotmake.
3055         Also regenerate other configury files.
3056
3057 2003-01-21  Paul Brook  <paul@nowt.org>
3058
3059         * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
3060
3061 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3062
3063         * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
3064         Don't include "alloca.h".
3065
3066 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3067
3068         * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
3069         * Makefile.am: Adjust file name.
3070         * Makefile.in: Regenerate.
3071         * gfortypes.h: Kill, include everything in...
3072         * libgfor.h: ...here.  Include config.h
3073         * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
3074         intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
3075         intrinsics/reshape_packed.c, intrinsics/size.c,
3076         m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
3077         for prefix for all functions instead of hardcoded.
3078
3079 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3080
3081         * io/lock.c (library_end): Propagate library return
3082         code.
3083
3084 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3085
3086         Port fixes from Andy's tree:
3087         * io/read.c (read_decimal): Reverse sense of overflow
3088         comparison during integer reads.
3089         * io/format.c (revert): Fix comment.
3090         (next_format): Fix format revision.
3091         * io/unix.c: Fix and simplify mmap version of stream
3092         functions.
3093
3094 2003-01-11  Paul Brook  <paul@nowt.org>
3095
3096         * configure, Makefile.in: Regenerate.
3097
3098 2003-01-11  Paul Brook  <paul@nowt.org>
3099
3100         * runtime/stop.c: Rewrite.
3101
3102 2003-01-08  Paul Brook  <paul@nowt.org>
3103
3104         * configure, Makefile.in: Regenerate.
3105
3106 2003-01-05  Paul Brook  <paul@nowt.org>
3107
3108         * (*.m4) Move to m4/.
3109         * intrinsics/string.c (_gfor_string_index): New Function.
3110
3111 2002-12-29  Paul Brook  <paul@nowt.org>
3112
3113         * intrinsics/reshape.*: New files.
3114         * gcc_config.patch: Update to new GCC configure system.
3115
3116 2002-10-10  Paul Brook  <paul@nowt.org>
3117
3118         * intrinsics/size.c: New file.
3119         * intrinsics/shape.m4: New file.
3120         * Makefile.am: Add above files.
3121
3122 2002-10-02  Paul Brook  <paul@nowt.org>
3123
3124         * fmain.c (main): Move here.
3125         * libgfor.c: From here.
3126         * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
3127         * Makefile.am: Build libgforbegin.
3128         * gcc_config.patch: Remove stray -march=athlon.
3129         * dotprodl.m4: Fix use of L8_TO_L4 macro.
3130         * ifunction.m4: Move variable declarations to allow compilation with
3131         gcc < 3.0
3132         * specific.m4, specific4.m4: Fix typo typecode->type_code.
3133         * README: Document use of patch -p1.
3134
3135 2002-09-12  Paul Brook  <paul@nowt.org>
3136
3137         * math/*: Add complex math library functions.
3138         * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
3139         * Makefile.am: Add details for above.
3140         * configure.in: Use AC_PROG_F95.  Test for the presence of csin.
3141
3142 2002-09-09  Paul Brook  <paul@nowt.org>
3143
3144         * libgfor.c (determine_endianness): Use an array rather than a struct.
3145         * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
3146
3147 2002-09-09  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3148
3149         * libgfor.c: Add fatal signal handler.
3150         Romove superfluous abort() calls.
3151
3152 2002-09-07  Paul Brook <paul@nowt.org>
3153
3154         * Makefile.am, intrinsics: Major rewrite.
3155
3156 2002-09-02  Paul Brook <paul@nowt.org>
3157
3158         * Makefile.am: Added -I$(srcdir) to m4 rule.
3159
3160 2002-08-30  Paul Brook <paul@nowt.org>
3161
3162         * io/*: Integrated libgforio.
3163         * Makefile.am, configure.in: Make compatable with GCC. Build code for
3164         intrinsics in the intrisics directory.
3165         * intrinsics/intrinsics.m4: Move here. Strip directories from the
3166         filename. Add 'and' and 'all' intrinsics.
3167
3168 2002-08-17  Paul Brook <paul@nowt.org>
3169
3170         * ALL: First release as more than just a single file