OSDN Git Service

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