OSDN Git Service

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