OSDN Git Service

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