OSDN Git Service

b18aa05fcb1451f3146724ee1526e76399207082
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2
3         PR libfortran/20257
4         * open.c (new_unit): set record length to max_offset rather than
5           using a hard-coded limit (which was too low).
6
7 2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
8
9         PR libfortran/20480
10         * write.c (output_float): special check when writing 0.0 with
11           EN and ES formats.
12
13 2005-03-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14
15         PR libfortran/20124
16         * write.c (output_float): Adds a nzero_real variable to store
17         the number of leading zeros whatever the format width is. Corrects
18         the rounding of numbers less than 10^(-width). Fixes typo in an
19         error message. Updates copyright years
20
21 2005-02-27  Toon Moene  <toon@moene.indiv.nluug.nl>
22
23         * runtime/environ.c: Update copyright years.
24
25 2005-02-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
26
27         * io/write.c: Update copyright years.
28
29 2005-02-27  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
30
31         PR libfortran/20101
32         * io/write.c (output_float): Added special check for value 0.0 in
33         PE format.
34
35 2004-02-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
36
37         * io/write.c (output_float): Fix typo in condition.
38
39 2005-02-25  Peter O'Gorman  <peter@pogma.com>
40             Toon Moene  <toon@moene.indiv.nluug.nl>
41
42         PR libgfortran/17748
43         * runtime/environ.c: Remove references to environ.
44         (show_variables): remove GFORTRAN_UNBUFFERED_* and 
45         GFORTRAN_NAME_* because they require environ.
46         (pattern_scan): Remove function.
47
48 2004-02-22  Paul Thomas <paulthomas2@wannado.fr>
49             Bud Davis  <bdavis@gfortran.org>
50
51         * io/list_read.c (read_real): Handle separators properly
52         in list directed read.
53
54 2004-02-21  Bud Davis  <bdavis@gfortran.org>
55
56         PR fortran/20086
57         * io/transfer.c (write_constant_string): accept an 'h' as
58         the start of a hollerith format string.
59
60 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
61
62         PR libfortran/19302
63         * intrinsics/c99_functions.c (nextafterf): Special-case infinite
64         numbers.
65
66 2005-02-21  Steven G. Kargl  <kargls@comcast.net>
67
68         * io/write.c (output_float):  Typo in error meesage.
69
70 2005-02-20  Steven G. Kargl  <kargls@comcast.net>
71
72         PR 20085
73         * intrinsic/args.c (iargc): Off by 1.
74
75 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
76
77       *  intrinsic/date_and_time.c: Fix conformance problems.
78
79 2005-02-01  Paul Thomas <paulthomas2@wanadoo.fr>
80
81         PR libgfortran/19363
82         PR libgfortran/19691
83         * libgfortran.h (isfinite): Work around broken isfinite(x) in Cygwin.
84
85 2005-01-30  Bud Davis  <bdavis@gfortran.org>
86
87         PR fortran/19647
88         * io/inquire.c (inquire_via_unit): Use correct variable for
89         pad.
90
91 2005-01-29  Thomas Koenig  <Thomas.Koenig@online.de>
92
93         PR libfortran/19595
94         * io/transfer.c (data_transfer_init): eor requires advance="NO".
95
96 2005-01-25  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
97
98         PR libfortran/19524
99         * io/read.c (read_f): Don't free uninitialized pointer.
100
101 2005-01-23  James A. Morrison  <phython@gcc.gnu.org>
102         Paul Brook  <paul@codesourcery.com>
103
104         PR fortran/19294
105         * Makefile.am: Add transpose_c4.c and transpose_c8.c.
106         * intrinsics/cshift0.c: Use separate optimized loops for complex types.
107         * m4/transpose.m4: Include type letter in function name.
108         * Makefile.in: Regenerate.
109         * generated/transpose_*.c: Regenerate.
110
111 2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>
112
113         PR libfortran/19451
114         * io/transfer.c (finalize_transfer):  Don't do anything if
115         there is an error condition.
116
117 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
118
119         PR libgfortran/19052
120         * libgfortran.h (options_t): Add stderr_unit.
121         * io/io.h (error_stream): Declare.
122         * io/open.c (new_unit): Do not terminate abnormally if opening
123         file preconnected to stdin, stdout, or stderr.
124         * io/unit.c (init_units): Initialize stderr_unit.
125         * io/unix.c (error_stream): New function.
126         * runtime/environ.c (GFORTRAN_STDERR_UNIT): New environment variable.
127
128 2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>
129
130         PR libfortran/18982
131         * io/unix.c (regular_file):  No need to change flags->action
132         if an error occurs.  Document this.  
133         No need to call stat() for STATUS_OLD, open() will
134         fail anyway.
135         For ACTION_UNSPECIFIED, try open for read-write, then for
136         read-only if open fails with EACCES, then for write-only
137         if that fails with EACCES again.
138         * io/unix.c (open_external): Document changed behavior of
139         regular_file.
140
141 2005-01-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
142         
143         PR fortran/19194
144         * io/io.h (st_parameter): Use 'GFC_INTEGER_4' instead of 'int',
145         use CHARACTER macro for definition of string valued paramters.
146         
147 2005-01-22  Bud Davis  <bdavis9659@comcast.net>
148
149         PR fortran/19314
150         * io/inquire.c(inquire_via_unit): implement POSITION=.
151         * io/transfer.c(next_record): update position for 
152         INQUIRE.
153         * io/rewind.c(st_rewind): update position for
154         INQUIRE.
155
156 2005-01-16  Bud Davis  <bdavis9659@comcast.net>
157
158         PR fortran/18778
159         * io/transfer.c (us_read): no bytes available is not a
160         runtime error.
161
162 2005-01-15  Bud Davis  <bdavis9659@comcast.net>
163
164         PR fortran/18983
165         * io/transfer.c (st_write_done): only truncate when it
166         is required.
167
168 2005-01-12  Toon Moene  <toon@moene.indiv.nluug.nl>
169
170         PR libfortran/19280
171         c99_protos.h: License changed to GPL+exception.
172         libgfortran.h: Ditto.
173         intrinsics/abort.c: Ditto.
174         intrinsics/args.c: Ditto.
175         intrinsics/associated.c: Ditto.
176         intrinsics/bessel.c: Ditto.
177         intrinsics/c99_functions.c: Ditto.
178         intrinsics/cpu_time.c: Ditto.
179         intrinsics/cshift0.c: Ditto.
180         intrinsics/date_and_time.c: Ditto.
181         intrinsics/env.c: Ditto.
182         intrinsics/eoshift0.c: Ditto.
183         intrinsics/eoshift2.c: Ditto.
184         intrinsics/erf.c: Ditto.
185         intrinsics/etime.c: Ditto.
186         intrinsics/exit.c: Ditto.
187         intrinsics/flush.c: Ditto.
188         intrinsics/fnum.c: Ditto.
189         intrinsics/getXid.c: Ditto.
190         intrinsics/getcwd.c: Ditto.
191         intrinsics/ishftc.c: Ditto.
192         intrinsics/mvbits.c: Ditto.
193         intrinsics/pack_generic.c: Ditto.
194         intrinsics/rand.c: Ditto.
195         intrinsics/random.c: Ditto.
196         intrinsics/reshape_generic.c: Ditto.
197         intrinsics/reshape_packed.c: Ditto.
198         intrinsics/size.c: Ditto.
199         intrinsics/spread_generic.c: Ditto.
200         intrinsics/stat.c: Ditto.
201         intrinsics/string_intrinsics.c: Ditto.
202         intrinsics/system.c: Ditto.
203         intrinsics/system_clock.c: Ditto.
204         intrinsics/transpose_generic.c: Ditto.
205         intrinsics/umask.c: Ditto.
206         intrinsics/unlink.c: Ditto.
207         intrinsics/unpack_generic.c: Ditto.
208         io/backspace.c: Ditto.
209         io/close.c: Ditto.
210         io/endfile.c: Ditto.
211         io/format.c: Ditto.
212         io/inquire.c: Ditto.
213         io/io.h: Ditto.
214         io/list_read.c: Ditto.
215         io/lock.c: Ditto.
216         io/open.c: Ditto.
217         io/read.c: Ditto.
218         io/rewind.c: Ditto.
219         io/transfer.c: Ditto.
220         io/unit.c: Ditto.
221         io/unix.c: Ditto.
222         io/write.c: Ditto.
223         m4/all.m4: Ditto.
224         m4/any.m4: Ditto.
225         m4/cexp.m4: Ditto.
226         m4/chyp.m4: Ditto.
227         m4/count.m4: Ditto.
228         m4/cshift1.m4: Ditto.
229         m4/ctrig.m4: Ditto.
230         m4/dotprod.m4: Ditto.
231         m4/dotprodc.m4: Ditto.
232         m4/dotprodl.m4: Ditto.
233         m4/eoshift1.m4: Ditto.
234         m4/eoshift3.m4: Ditto.
235         m4/exponent.m4: Ditto.
236         m4/fraction.m4: Ditto.
237         m4/head.m4: Ditto.
238         m4/iforeach.m4: Ditto.
239         m4/ifunction.m4: Ditto.
240         m4/in_pack.m4: Ditto.
241         m4/in_unpack.m4: Ditto.
242         m4/iparm.m4: Ditto.
243         m4/matmul.m4: Ditto.
244         m4/matmull.m4: Ditto.
245         m4/maxloc0.m4: Ditto.
246         m4/maxloc1.m4: Ditto.
247         m4/maxval.m4: Ditto.
248         m4/minloc0.m4: Ditto.
249         m4/minloc1.m4: Ditto.
250         m4/minval.m4: Ditto.
251         m4/mtype.m4: Ditto.
252         m4/nearest.m4: Ditto.
253         m4/pow.m4: Ditto.
254         m4/product.m4: Ditto.
255         m4/reshape.m4: Ditto.
256         m4/set_exponent.m4: Ditto.
257         m4/shape.m4: Ditto.
258         m4/specific.m4: Ditto.
259         m4/specific2.m4: Ditto.
260         m4/sum.m4: Ditto.
261         m4/transpose.m4: Ditto.
262         m4/types.m4: Ditto.
263         runtime/environ.c: Ditto.
264         runtime/error.c: Ditto.
265         runtime/in_pack_generic.c: Ditto.
266         runtime/in_unpack_generic.c: Ditto.
267         runtime/main.c: Ditto.
268         runtime/memory.c: Ditto.
269         runtime/normalize.c: Ditto.
270         runtime/pause.c: Ditto.
271         runtime/select.c: Ditto.
272         runtime/stop.c: Ditto.
273         runtime/string.c: Ditto.
274         generated/_abs_c4.f90: Regenerated.
275         generated/_abs_c8.f90: Regenerated.
276         generated/_abs_i4.f90: Regenerated.
277         generated/_abs_i8.f90: Regenerated.
278         generated/_abs_r4.f90: Regenerated.
279         generated/_abs_r8.f90: Regenerated.
280         generated/_acos_r4.f90: Regenerated.
281         generated/_acos_r8.f90: Regenerated.
282         generated/_aint_r4.f90: Regenerated.
283         generated/_aint_r8.f90: Regenerated.
284         generated/_anint_r4.f90: Regenerated.
285         generated/_anint_r8.f90: Regenerated.
286         generated/_asin_r4.f90: Regenerated.
287         generated/_asin_r8.f90: Regenerated.
288         generated/_atan2_r4.f90: Regenerated.
289         generated/_atan2_r8.f90: Regenerated.
290         generated/_atan_r4.f90: Regenerated.
291         generated/_atan_r8.f90: Regenerated.
292         generated/_conjg_c4.f90: Regenerated.
293         generated/_conjg_c8.f90: Regenerated.
294         generated/_cos_c4.f90: Regenerated.
295         generated/_cos_c8.f90: Regenerated.
296         generated/_cos_r4.f90: Regenerated.
297         generated/_cos_r8.f90: Regenerated.
298         generated/_cosh_r4.f90: Regenerated.
299         generated/_cosh_r8.f90: Regenerated.
300         generated/_dim_i4.f90: Regenerated.
301         generated/_dim_i8.f90: Regenerated.
302         generated/_dim_r4.f90: Regenerated.
303         generated/_dim_r8.f90: Regenerated.
304         generated/_exp_c4.f90: Regenerated.
305         generated/_exp_c8.f90: Regenerated.
306         generated/_exp_r4.f90: Regenerated.
307         generated/_exp_r8.f90: Regenerated.
308         generated/_log10_r4.f90: Regenerated.
309         generated/_log10_r8.f90: Regenerated.
310         generated/_log_c4.f90: Regenerated.
311         generated/_log_c8.f90: Regenerated.
312         generated/_log_r4.f90: Regenerated.
313         generated/_log_r8.f90: Regenerated.
314         generated/_mod_i4.f90: Regenerated.
315         generated/_mod_i8.f90: Regenerated.
316         generated/_mod_r4.f90: Regenerated.
317         generated/_mod_r8.f90: Regenerated.
318         generated/_sign_i4.f90: Regenerated.
319         generated/_sign_i8.f90: Regenerated.
320         generated/_sign_r4.f90: Regenerated.
321         generated/_sign_r8.f90: Regenerated.
322         generated/_sin_c4.f90: Regenerated.
323         generated/_sin_c8.f90: Regenerated.
324         generated/_sin_r4.f90: Regenerated.
325         generated/_sin_r8.f90: Regenerated.
326         generated/_sinh_r4.f90: Regenerated.
327         generated/_sinh_r8.f90: Regenerated.
328         generated/_sqrt_c4.f90: Regenerated.
329         generated/_sqrt_c8.f90: Regenerated.
330         generated/_sqrt_r4.f90: Regenerated.
331         generated/_sqrt_r8.f90: Regenerated.
332         generated/_tan_r4.f90: Regenerated.
333         generated/_tan_r8.f90: Regenerated.
334         generated/_tanh_r4.f90: Regenerated.
335         generated/_tanh_r8.f90: Regenerated.
336         generated/all_l4.c: Regenerated.
337         generated/all_l8.c: Regenerated.
338         generated/any_l4.c: Regenerated.
339         generated/any_l8.c: Regenerated.
340         generated/count_4_l4.c: Regenerated.
341         generated/count_4_l8.c: Regenerated.
342         generated/count_8_l4.c: Regenerated.
343         generated/count_8_l8.c: Regenerated.
344         generated/cshift1_4.c: Regenerated.
345         generated/cshift1_8.c: Regenerated.
346         generated/dotprod_c4.c: Regenerated.
347         generated/dotprod_c8.c: Regenerated.
348         generated/dotprod_i4.c: Regenerated.
349         generated/dotprod_i8.c: Regenerated.
350         generated/dotprod_l4.c: Regenerated.
351         generated/dotprod_l8.c: Regenerated.
352         generated/dotprod_r4.c: Regenerated.
353         generated/dotprod_r8.c: Regenerated.
354         generated/eoshift1_4.c: Regenerated.
355         generated/eoshift1_8.c: Regenerated.
356         generated/eoshift3_4.c: Regenerated.
357         generated/eoshift3_8.c: Regenerated.
358         generated/exp_c4.c: Regenerated.
359         generated/exp_c8.c: Regenerated.
360         generated/exponent_r4.c: Regenerated.
361         generated/exponent_r8.c: Regenerated.
362         generated/fraction_r4.c: Regenerated.
363         generated/fraction_r8.c: Regenerated.
364         generated/hyp_c4.c: Regenerated.
365         generated/hyp_c8.c: Regenerated.
366         generated/in_pack_i4.c: Regenerated.
367         generated/in_pack_i8.c: Regenerated.
368         generated/in_unpack_i4.c: Regenerated.
369         generated/in_unpack_i8.c: Regenerated.
370         generated/matmul_c4.c: Regenerated.
371         generated/matmul_c8.c: Regenerated.
372         generated/matmul_i4.c: Regenerated.
373         generated/matmul_i8.c: Regenerated.
374         generated/matmul_l4.c: Regenerated.
375         generated/matmul_l8.c: Regenerated.
376         generated/matmul_r4.c: Regenerated.
377         generated/matmul_r8.c: Regenerated.
378         generated/maxloc0_4_i4.c: Regenerated.
379         generated/maxloc0_4_i8.c: Regenerated.
380         generated/maxloc0_4_r4.c: Regenerated.
381         generated/maxloc0_4_r8.c: Regenerated.
382         generated/maxloc0_8_i4.c: Regenerated.
383         generated/maxloc0_8_i8.c: Regenerated.
384         generated/maxloc0_8_r4.c: Regenerated.
385         generated/maxloc0_8_r8.c: Regenerated.
386         generated/maxloc1_4_i4.c: Regenerated.
387         generated/maxloc1_4_i8.c: Regenerated.
388         generated/maxloc1_4_r4.c: Regenerated.
389         generated/maxloc1_4_r8.c: Regenerated.
390         generated/maxloc1_8_i4.c: Regenerated.
391         generated/maxloc1_8_i8.c: Regenerated.
392         generated/maxloc1_8_r4.c: Regenerated.
393         generated/maxloc1_8_r8.c: Regenerated.
394         generated/maxval_i4.c: Regenerated.
395         generated/maxval_i8.c: Regenerated.
396         generated/maxval_r4.c: Regenerated.
397         generated/maxval_r8.c: Regenerated.
398         generated/minloc0_4_i4.c: Regenerated.
399         generated/minloc0_4_i8.c: Regenerated.
400         generated/minloc0_4_r4.c: Regenerated.
401         generated/minloc0_4_r8.c: Regenerated.
402         generated/minloc0_8_i4.c: Regenerated.
403         generated/minloc0_8_i8.c: Regenerated.
404         generated/minloc0_8_r4.c: Regenerated.
405         generated/minloc0_8_r8.c: Regenerated.
406         generated/minloc1_4_i4.c: Regenerated.
407         generated/minloc1_4_i8.c: Regenerated.
408         generated/minloc1_4_r4.c: Regenerated.
409         generated/minloc1_4_r8.c: Regenerated.
410         generated/minloc1_8_i4.c: Regenerated.
411         generated/minloc1_8_i8.c: Regenerated.
412         generated/minloc1_8_r4.c: Regenerated.
413         generated/minloc1_8_r8.c: Regenerated.
414         generated/minval_i4.c: Regenerated.
415         generated/minval_i8.c: Regenerated.
416         generated/minval_r4.c: Regenerated.
417         generated/minval_r8.c: Regenerated.
418         generated/nearest_r4.c: Regenerated.
419         generated/nearest_r8.c: Regenerated.
420         generated/pow_c4_i4.c: Regenerated.
421         generated/pow_c4_i8.c: Regenerated.
422         generated/pow_c8_i4.c: Regenerated.
423         generated/pow_c8_i8.c: Regenerated.
424         generated/pow_i4_i4.c: Regenerated.
425         generated/pow_i4_i8.c: Regenerated.
426         generated/pow_i8_i4.c: Regenerated.
427         generated/pow_i8_i8.c: Regenerated.
428         generated/pow_r4_i4.c: Regenerated.
429         generated/pow_r4_i8.c: Regenerated.
430         generated/pow_r8_i4.c: Regenerated.
431         generated/pow_r8_i8.c: Regenerated.
432         generated/product_c4.c: Regenerated.
433         generated/product_c8.c: Regenerated.
434         generated/product_i4.c: Regenerated.
435         generated/product_i8.c: Regenerated.
436         generated/product_r4.c: Regenerated.
437         generated/product_r8.c: Regenerated.
438         generated/reshape_i4.c: Regenerated.
439         generated/reshape_i8.c: Regenerated.
440         generated/set_exponent_r4.c: Regenerated.
441         generated/set_exponent_r8.c: Regenerated.
442         generated/shape_i4.c: Regenerated.
443         generated/shape_i8.c: Regenerated.
444         generated/sum_c4.c: Regenerated.
445         generated/sum_c8.c: Regenerated.
446         generated/sum_i4.c: Regenerated.
447         generated/sum_i8.c: Regenerated.
448         generated/sum_r4.c: Regenerated.
449         generated/sum_r8.c: Regenerated.
450         generated/transpose_i4.c: Regenerated.
451         generated/transpose_i8.c: Regenerated.
452         generated/trig_c4.c: Regenerated.
453         generated/trig_c8.c: Regenerated.
454
455 2005-01-07  Bud Davis  <bdavis9659@comcast.net>
456
457         PR fortran/18398
458         * transfer.c (next_record_r): always skip the
459         eol search if it was found during sf_read.
460
461 2004-12-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
462
463         * libgfortran/libgfortran.h (GFC_UINTEGER_1, GFC_UINTEGER_2): 
464         Define.
465         * intrinsics/ishftc.c: Update copyright years.
466         (ishftc8): Change 'shift' and 'size' to GFC_INTEGER_4.
467         * intrinsics/mvbits.c: Correct non-ASCII character in my name.
468         Add implementations for GFC_INTEGER_1 and GFC_INTEGER_2.
469
470 2004-12-23  Bud Davis  <bdavis9659@comcast.net>
471
472         PR fortran/19071
473         * io/tranfer.c (formatted_transfer): moved check for 
474         format reversion inside the processing loop.
475
476 2004-12-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
477
478         PR libfortran/19074
479         * libgfortran.h (itoa): Rename to gfc_itoa.
480         * io/write.c (itoa): Same.
481         * runtime/environ.c (itoa): Same.
482         * runtime/error.c (itoa): Same.
483
484 2004-12-15  Bud Davis  <bdavis9659@comcast.net>
485             Steven G. Kargl  <kargls@comcast.net>
486
487         PR fortran/17597
488         * io/list_read.c (read_real): do not push back a comma when
489         it delimits a real value without a decimal point
490
491 2004-12-14  Steve Ellcey  <sje@cup.hp.com>
492
493         * libgfortran/io/transfer.c (us_read): Use memcpy/memset
494         instead of assignment to fill unaligned buffer.
495         (us_write): Ditto.
496         (next_record_w): Ditto.
497
498 2004-12-14  Steven G. Kargl  <kargls@comcast.net>
499
500         PR libfortran/18966
501         * gfortran.h: typedef GFC_INTEGER_1 and GFC_INTEGER_2
502         * intrinsics/cshift0.c (cshift0_1,cshift0_2): New functions.
503         * intrinsics/eoshift0.c (eoshift0_1,eoshift0_2): New functions.
504         * intrinsics/eoshift2.c (eoshift2_1,eoshift2_2): New functions.
505
506 2004-12-13  David Edelsohn  <edelsohn@gnu.org>
507
508         * io/transfer.c (read_sf): Change bitwise "and" to logical "and".
509
510 2004-12-12  Richard Henderson  <rth@redhat.com>
511
512         * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
513         intrinsics/pack_generic.c, intrinsics/reshape_generic.c,
514         intrinsics/spread_generic.c, intrinsics/transpose_generic.c,
515         intrinsics/unpack_generic.c, m4/cshift1.m4, m4/dotprod.m4,
516         m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
517         m4/iforeach.m4, m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4,
518         m4/reshape.m4, m4/shape.m4, m4/transpose.m4: Use standard prefix
519         instead of "__".
520         * generated/*: Rebuild.
521
522 2004-12-12  Richard Henderson  <rth@redhat.com>
523
524         * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY): New.
525         (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT): New.
526         (LIBGFOR_CHECK_ATTRIBUTE_ALIAS): New.
527         * configure.ac: Use them.
528         * configure, config.h.in, aclocal.m4: Rebuild.
529         * libgfortran.h (prefix): Remove.
530         (PREFIX, IPREFIX): New.
531         (sym_rename, sym_rename1, sym_rename2): New.
532         (internal_proto, export_proto, export_proto_np): New.
533         (iexport_proto, iexport): New.
534         (iexport_data_proto, iexport_data): New.
535         * intrinsics/abort.c, intrinsics/args.c, intrinsics/associated.c,
536         intrinsics/cpu_time.c, intrinsics/cshift0.c,
537         intrinsics/date_and_time.c, intrinsics/env.c, intrinsics/eoshift0.c,
538         intrinsics/eoshift2.c, intrinsics/etime.c, intrinsics/exit.c,
539         intrinsics/flush.c, intrinsics/fnum.c, intrinsics/getXid.c,
540         intrinsics/getcwd.c, intrinsics/ishftc.c, intrinsics/mvbits.c,
541         intrinsics/pack_generic.c, intrinsics/rand.c, intrinsics/random.c,
542         intrinsics/reshape_generic.c, intrinsics/size.c,
543         intrinsics/spread_generic.c, intrinsics/stat.c,
544         intrinsics/string_intrinsics.c, intrinsics/system.c,
545         intrinsics/system_clock.c, intrinsics/transpose_generic.c,
546         intrinsics/umask.c, intrinsics/unlink.c, intrinsics/unpack_generic.c,
547         io/backspace.c, io/close.c, io/endfile.c, io/inquire.c, io/io.h,
548         io/open.c, io/rewind.c, io/transfer.c, libgfortran.h, m4/cshift1.m4,
549         m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4,
550         m4/eoshift3.m4, m4/exponent.m4, m4/fraction.m4, m4/iforeach.m4,
551         m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/nearest.m4,
552         m4/pow.m4, m4/reshape.m4, m4/set_exponent.m4, m4/shape.m4,
553         m4/transpose.m4, runtime/environ.c, runtime/error.c,
554         runtime/in_pack_generic.c, runtime/in_unpack_generic.c,
555         runtime/main.c, runtime/memory.c, runtime/pause.c, runtime/select.c,
556         runtime/stop.c: Use them to mark symbols internal or external.
557         * generated/*: Rebuild.
558
559 2004-12-09  David Edelsohn  <edelsohn@gnu.org>
560
561         PR bootstrap/18895
562         Revert 2004-12-07 change.
563         * Makefile.am (AM_MAKEFLAGS): Delete.
564         * Makefile.in: Regenerate.
565
566 2004-12-07  Steve Ellcey  <sje@cup.hp.com>
567
568         * libgfortran/Makefile.am (AM_MAKEFLAGS): New.
569         * libgfortran/Makefile.in: Regenerate
570
571 2004-12-07  Steve Ellcey  <sje@cup.hp.com>
572
573         * io/io.h (open_external): Change prototype.
574         * io/unix.c (regular_file): Change prototype and set flags->action if
575         needed.
576         (open_external): Ditto.
577         * io/open.c (new_unit): Let open_external set flags->action.
578
579 2004-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
580
581         * configure.ac: Check for ieeefp.h.  Check for fabsf in libm.
582         * configure: Regenerate.
583         * config.h.in: Likewise.
584         * c99_protos.h: New file.
585         * libgfortran.h: Include c99_protos.h and conditionally ieeefp.h.
586         * intrinsics/c99_functions.c (fabsf): New function.
587
588 2004-12-06  Richard Henderson  <rth@redhat.com>
589
590         * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
591         intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
592         intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
593         m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
594         of internal_malloc.
595         * generated/*: Rebuild.
596
597 2004-12-06  Richard Henderson  <rth@redhat.com>
598
599         * intrinsics/c99_functions.c, intrinsics/eoshift0.c,
600         intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
601         intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
602         intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
603         intrinsics/spread_generic.c, intrinsics/stat.c,
604         intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
605         intrinsics/transpose_generic.c, intrinsics/unlink.c,
606         intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
607         io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
608         io/write.c, runtime/environ.c, runtime/error.c,
609         runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
610         runtime/memory.c, runtime/pause.c, runtime/stop.c,
611         runtime/string.c: Whitespace fixes.
612
613 2004-12-06  Richard Henderson  <rth@redhat.com>
614
615         * Makefile.am: Generate all m4 output under $(srcdir).
616         * Makefile.in: Regenerate.
617
618 2004-12-02  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
619
620         PR fortran/18710
621         * io/transfer.c (unformatted_read, unformatted_write): width of
622         a COMPLEX is twice its kind.
623
624 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
625
626         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
627         * configure, aclocal.m4, Makefile.in: Regenerate.
628
629 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
630
631         PR libfortran/18284
632         * io/unix.c (fd_alloc_w_at): Update file_length when extending.
633         * io/backspace.c (formatted_backspace): Reset endfile after backspace.
634
635 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
636
637         * io/inquire.c (inquire_via_unit): do not allow a direct access
638         file to be opened for sequential I/O.
639
640 2004-12-02  Steven G. Kargl  <kargls@comcast.net>
641         Paul Brook  <paul@codesourcery.com>
642
643         * intrinsics/flush.c: New file.
644         * intrinsics/fnum.c: ditto
645         * intrinsics/stat.c: ditto
646         * io/io.h (unit_to_fd): Add prototype.
647         * io/unix.c (unit_to_fd): New function.
648         * configure.ac: Add test for members of struct stat.  Check for
649         sys/types.h and sys/stat.h
650         * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
651         * configure.in: Regenerate.
652         * config.h.in: Regenerate.
653         * Makefile.in: Regenerate.
654
655 2004-12-01  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
656
657         * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
658
659 2004-11-28  Bud Davis  <bdavis9659@comcast.net>
660
661         * io/unix.c (mmap_alloc_w_a): check for a write to a location
662         less than the mapped area.
663
664 2004-11-27  Bud Davis  <bdavis9659@comcast.net>
665
666         PR fortran/18364
667         *  io/endfile.c (st_endfile): flush the stream before truncating.
668
669 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
670
671         * configure: Regenerate for libtool change.
672
673 2004-11-22  Steven Bosscher  <stevenb@suse.de>
674
675         PR libfortran/15960
676         * configure.ac: Check for finite in libm.
677         * libgfortran.h: Define isfinite macro if not defined.
678         * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
679         HAVE_FPCLASSIFY.
680         * io/write.c (write_float): Use isfinite instead of finite.
681         * configure, config.h.in: Rebuilt.
682
683 2004-11-20  Roger Sayle  <roger@eyesopen.com>
684
685         * io/write.c (write_float, list_formatted_write): Fix indentation.
686
687 2004-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
688
689         PR target/16135
690         * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
691         * configure.ac: Include LIBGFOR_TARGET_ILP32.
692         * configure: Regenerate.
693         * config.h.in: Likewise.
694         * libgfortran.h: Provide default definitions for C99 types
695         on ILP32 targets that don't have them.
696
697         PR target/17999
698         * configure.ac: Check for snprintf.
699         * configure: Regenerate.
700         * config.h.in: Likewise.
701         * intrinsics/date_and_time.c (date_and_time): Do not
702         use snprinf if it is not available.
703         * io/write.c (output_float): Likewise.
704
705 2004-11-20  Steven G. Kargl  <kargls@comcast.net>
706
707         * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
708         * Makefile.in: Regenerated
709         * intrinsics/umask.c: New file
710         * intrinsics/unlink.c: ditto
711         * intrinsics/exit.c: ditto
712
713 2004-11-18  Victor Leikehman  <lei@il.ibm.com>
714
715         * m4/matmul.m4: Loops reordered to improve cache behavior.
716         * generated/matmul_??.c: Regenerated.
717         
718 2004-11-10  Paul Brook  <paul@codesourcery.com>
719
720         PR fortran/18218
721         * configure.ac: Check for strtof.
722         * configure: Regenerate.
723         * config.h.in: Regenerate.
724         * io/read.c (convert_real): Use strtof if available.
725         (convert_precision_real): Remove.
726         (read_f): Avoid poor exponentiation algorithm.
727
728 2004-11-05  Andreas Schwab  <schwab@suse.de>
729
730         * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
731         AC_PROG_F77, F77 and FFLAGS.
732         * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
733         FCCOMPILE instead of F77COMPILE.
734         * configure, Makefile.in: Regenerate.
735
736 2004-11-05  Kelley Cook  <kcook@gcc.gnu.org>
737
738         * acinclude.m4: Properly quote AC_CACHE_CHECK.
739         * Makefile.am: Add in ACLOCAL_AMFLAGS.
740         * aclocal.m4, configure, Makefile.in: Regenerate.
741
742 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
743
744         * config.h.in: Regenerate.
745         * configure: Regenerate.
746         * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
747         * io/unix.c (S_IRGRP): Define if undefined.
748         (S_IWGRP): Same.
749         (S_IROTH): Same.
750         (S_IWOTH): Same.
751         (tempfile): Use mktemp if mkstemp missing, fix typos.
752
753 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
754
755         *  intrinsics/system.c ("libgfortran.h"): Move after system headers.
756
757 2004-10-30  Canqun Yang  <canqun@nudt.edu.cn>
758
759         * intrinsics/rand.c (irand): Handle NULL argument.
760
761 2004-10-07  Paul Brook  <paul@codesourcery.com>
762
763         * io/transfer.c (finalize_transfer): Free internal streams.
764         * io/unix.c (mem_close): Free stream object.
765
766 2004-10-07  Paul Brook  <paul@codesourcery.com>
767
768         * intrinsics/string_intrinsics.c (string_verify): Fix off by one
769         error.
770
771 2004-10-06  Paul Brook  <paul@codesourcery.com>
772
773         PR libfortran/17709
774         * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
775
776 2004-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
777
778         * intrinsics/mvbits.c: Commit the file.
779
780 2004-10-04  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
781
782         PR fortran/17283
783         * intrinsics/pack_generic.c (__pack): Allocate memory for return array
784         if not done by caller.
785         (__pack_s): New function.
786         * runtime/memory.c (internal_malloc, internal_malloc64): Allow
787         allocating zero memory.
788
789         PR fortran/17631
790         * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
791         * Makefile.in: Regenerate.
792         * intrinsics/mvbits.h: New file.
793
794         PR fortran/17776
795         * intrinsics/system.c: New file.
796         * Makefile.am: Add dependency for the new file.
797         * Makefile.in: Regenerate.
798
799 2004-10-04  Paul Brook  <paul@codesourcery.com>
800         Bud Davis  <bdavis9659@comcast.net>
801
802         PR fortran/17706
803         PR fortran/16434
804         * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
805         BN and BZ formats.
806         * io/write.c (output_float): Don't output minus zero.
807
808 2004-10-03  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
809
810         * intrinsics/abort.c ("libgfortran.h"): Move.
811         * intrinsics/date_and_time.c ("libgfortran.h"): Same.
812         * intrinsics/write.c ("libgfortran.h"): Same.
813
814 2004-09-26  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
815
816         PR libfortran/16137
817         * config.h.in (HAVE_POWF): Undefine.
818         * configure.ac: Check for 'powf' in library.
819         * configure: Regenerate.
820         * intrinsics/c99_functions.c (powf): New function.
821
822 2004-09-24  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
823
824         * intrinsics/etime.c (etime_): New function.
825
826 2004-09-21  Steven G. Kargl  <kargls@comcast.net>
827
828         * libgfortran.h: define gfc_alloca()
829         * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
830
831 2004-09-21  Bud Davis  <bdavis9659@comcast.net>
832
833         PR fortran/17286
834         * io/list_read.c (namelist_read): ignore spaces after 
835         the '=' for namelist reads.
836
837 2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
838
839         * config.h.in: Regenerate.
840         * configure: Regenerate.
841         * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
842         * unix.c: Include stdio.h.
843         (HAVE_SYS_MMAN_H): Check.
844         (PROT_READ, PROT_WRITE): Provide default definitions.
845
846 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
847
848         * intrincics/getcwd.c: New file.
849         * Makefile.am: Add getcwd.c.
850         * Makefile.in: Regenerated.
851
852 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
853         Paul Brook  <paul@codesourcery.com>
854
855         * intrinsics/env.c (getenv, get_environmental_variable): Remove
856         trailing white space.  Use alloca.  Honour trim_name.
857
858 2004-09-13  Bud Davis  <bdavis9659@comcast.net>
859
860         PR fortran/17090
861
862         * io/list_read.c (list_formatted_read): Handle trailing spaces
863         at end of line.
864
865 2004-09-06  Steven G. Kargl  <kargls@comcast.net>
866
867         * io/write.c (output_float): Typo in comment.  Remove debugging
868         printf.  Fix format for FP of form 1e10.
869
870 2004-09-03  Richard Henderson  <rth@redhat.com>
871
872         * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
873         copy_loop_double, copy_loop_ldouble): New.
874         (__cshift0): Make shift type ssize_t.  Use % operator instead of
875         div.  Use specialized versions of copy loop depending on the shape.
876
877 2004-09-02  Paul Brook  <paul@codesourcery.com>
878
879         * io/format.c (parse_format_list): Set repeat count for P descriptors.
880         * write.c (output_float): Fix condition.  Correctly handle nonzero
881         scale factor.
882
883 2004-09-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
884
885         * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
886         * mk-srk-inc.sh: Likewise.
887
888 2004-09-01  Paul Brook  <paul@codesourcery.com>
889
890         * runtime/error.c (generate_error): Set both iostat and
891         library_return.
892
893 2004-08-31  Paul Brook  <paul@codesourcery.com>
894
895         PR libfortran/16805
896         * io/list_read.c (next_char): Don't signal EOF for internal files.
897         * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
898
899 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
900
901         * io/unit.c: Separate copyright years by ','.
902         (compare, insert_unit, delete_unit, is_internal_unit, close_units):
903         Remove blank line in beginning of function.
904         (get_unit): Simplify code.
905
906 2004-08-31  Paul Brook  <paul@codesourcery.com>
907
908         * io/unit.c (get_unit): Remove superfluous if.
909
910 2004-08-31  Paul Brook  <paul@codesourcery.com>
911
912         * io/transfer.c (read_sf): Rename uinty to readlen.  Detect EOF.
913         (finalize_transfer): Move setjmp after namlist IO.
914         * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
915
916 2004-08-31  Paul Brook  <paul@codesourcery.com>
917
918         * list_read.c (eat_separator): Set at_eo when a '/' is seen.
919
920 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
921
922         * libgfortran.h: Replace 'gfc_strlen_type' by
923         'gfc_charlen_type'. Update comment accordingly.
924         * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
925         Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
926
927 2004-08-31  Paul Brook  <paul@codesourcery.com>
928
929         * libgfortran.h: Add comments.
930
931 2004-08-30  Richard Henderson  <rth@redhat.com>
932
933         * Makefile.am (gfor_helper_src): Split selected_kind.f90.
934         (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
935         (selected_int_kind.inc selected_real_kind.inc): New rules.
936         * Makefile.in: Regenerate.
937         * mk-sik-inc.sh, mk-srk-inc.sh: New files.
938         * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
939         include table of detected kinds.
940         * intrinsics/selected_real_kind.f90: Similarly.
941
942 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
943         Paul Brook  <paul@codesourcery.com>
944
945         * intrinsics/bessel.c: New file.
946         * intrinsics/erf.c: New file.
947         * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
948         * configure.ac: Test for C99 Bessel and Error functions.
949         * Makefile.in: Regenerate.
950         * config.h.in: Regenerate.
951         * configure: Regenerate.
952
953 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
954         Paul Brook  <paul@codesourcery.com>
955
956         * Makefile.am: Add intrinsics/getXid.c.
957         * configure.ac: Add tests for get{g,p,u}id.
958         * config.h.in: Regenerate.
959         * Makefile.in: Regenerate.
960         * configure: Regenerate.
961
962 2004-08-28  Paul Brook  <paul@codesourcery.com>
963
964         PR libfortran/17195
965         * libgfortran.h (rtoa): Remove prototype.
966         * runtime/error.c (rtoa): Remove.
967         * io/write.c (calculate_G_format): Don't add blanks if E format is
968         used.  Add correct number of blanks when exponent width is specified.
969         (output_float): Rewrite.
970
971 2004-08-27  Paul Brook  <paul@codesourcery.com>
972
973         * io/rewind.c (st_rewind): Reset unit to read mode.
974
975 2004-08-27  Bud Davis  <bdavis9659@comcast.net>
976
977         PR fortran/16597
978         * io/io.h: created typedef for unit_mode.
979         * io/io.h (gfc_unit): added mode to unit structure.
980         * io/transfer.c (data_transfer_init): flush if a write then
981         read is done on a unit (direct access files).
982         * io/rewind.c (st_rewind): Used unit mode instead of global.
983
984 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
985
986         PR fortran/17143        
987         * runtime/error.c (itoa): keep from overflowing during
988         mod operation by using unsigned variable.
989
990 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
991
992         PR fortran/17164
993         * runtime/string_intrinsics.c (string_index):check for
994         substring longer than string.
995
996 2004-08-24  David Edelsohn  <edelsohn@gnu.org>
997
998         * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
999         * Makefile.in: Rebuilt.
1000
1001 2004-08-23  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1002
1003         * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
1004         Fix formatting issues, update copyright years.
1005
1006 2004-08-21  Bud Davis  <bdavis9659@comcast.net>
1007
1008         PR 16908
1009         * io/transfer.c (next_record_w): Do not blank pad.
1010         * io/transfer.c (next_record): Take into account partial records.
1011
1012 2004-08-18  Victor Leikehman  <lei@il.ibm.com>
1013
1014         PR fortran/13278
1015         * io/transfer.c (st_set_nml_var)
1016         * io/write.c (namelist_write): Allow var_name and var_name_len to be
1017         null. For strings, use string_length field instead of len.
1018         * io/io.h (struct namelist_type): New field string_length.
1019         (st_set_nml_var_char): New argument string_length.
1020
1021 2004-08-13  Bud Davis  <bdavis9659@comcast.net>
1022
1023         PR gfortran/16935
1024         * io/open.c (st_open): use flags instead of the unit structure.
1025
1026 2004-08-10  Victor Leikehman  <lei@il.ibm.com>
1027
1028         * io/list_read.c (namelist_read): Convert variable names
1029         to lower case, so that mixed-case names are recognized.
1030         Don't read beyond terminating slash.
1031
1032 2004-08-09  Richard Henderson  <rth@redhat.com>
1033             Roger Sayle  <roger@eyesopen.com>
1034
1035         * intrinsics/c99_functions.c (nextafterf): New implementation that
1036         works correctly with denormalized numbers.
1037
1038 2004-08-09  Victor Leikehman  <lei@il.ibm.com>
1039
1040         * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
1041         intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
1042         Allocate space if return value has NULL in its data field.
1043         * generated/*.c: Regenerate.
1044
1045 2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1046
1047         * intrinsics/env.c: New file.
1048         * Makefile.am: Add env.c to build.
1049         * Makefile.in: Regenerate.
1050
1051 2004-08-05  Victor Leikehman  <lei@il.ibm.com>
1052
1053         PR libgfortran/16704
1054         * io/read.c (read_radix): Understand letters f and F as hex digits.
1055
1056 2004-08-04  Victor Leikehman  <lei@il.ibm.com>
1057
1058         * libgfortran.h (array_t, size0) New declarations.
1059         * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
1060         space if return value descriptor has NULL in its data field,
1061         and initialize bounds and stride.
1062         * intrinsics/size.c (array_t, size0): Declarations moved to
1063         libgfortran.h.
1064         * generated/*.c: Regenerate.
1065
1066 2004-08-03  Roger Sayle  <roger@eyesopen.com>
1067
1068         PR libgfortran/16137
1069         * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
1070         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
1071         scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
1072         * config.h.in: Regenerate.
1073         * configure: Regenerate.
1074
1075         * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
1076         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
1077         nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
1078         implementations for targets that don't support C99 float functions.
1079
1080 2004-08-01  Roger Sayle  <roger@eyesopen.com>
1081
1082         * io/write.c (write_float): Use the slightly more portable isnan
1083         in preference to isinf.
1084
1085 2004-07-18  Bud Davis  <bdavis9659@comcast.net>
1086
1087         * configure.ac: Add check for LFS support. 
1088         * configure: Regenerate
1089
1090 2004-07-11  Paul Brook  <paul@codesourcery.com>
1091
1092         PR fortran/16303
1093         * m4/cexp.m4 (carg): Return -pi to pi.
1094         * generated/exp_c?.c: Regenerate.
1095
1096 2004-07-08  Andreas Krebbel  <krebbel1@de.ibm.com>
1097
1098         PR fortran/16291
1099         * libgfortran/io/write.c: (write_float): Added length check.
1100         Remove pointless memset calls.
1101
1102 2004-07-04  Bud Davis  <bdavis9659@comcast.net>
1103             Paul Brook  <paul@codesourcery.com>
1104
1105         PR fortran/15472
1106         * io/transfer.c(us_write): set recl for seq unform writes to max size.
1107         * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
1108         * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at 
1109         right time.
1110         * io/unix.c(is_seekable): set based upon the file/device, not the
1111         method being used to access it (fd or mmap).
1112         * io/unix.c(fd_flush): don't set file_size if !seekable.
1113         * io/unix.c(fd_truncate: ditto.
1114
1115 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1116         Paul Brook  <paul@codesourcery.com>
1117
1118         PR fortran/15280
1119         PR fortran/15665
1120         * libgfortran.h (gfc_strlen_type): Define.
1121         * intrinsics/args.c (getarg): Rename ...
1122         (getarg_i4): ... to this.
1123         (getarg_i8, get_command_argument_i4, get_command_argument_i8,
1124         get_command_i4, get_command_i8): New functions.
1125
1126 2004-07-04  Matthias Klose  <doko@debian.org>
1127
1128         * libtool-version: New.
1129         * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
1130         * Makefile.in: Regenerate.
1131         * configure.ac: Remove libtool_VERSION macro
1132         * configure: Regenerate
1133
1134 2004-06-30  Steve Kargl  <sgk@troutmask.apl.washington.edu>
1135             Steven Bosscher  <stevenb@suse.de>
1136
1137         * intrinsics/rand.c (rand): Wrap the irand() call from the previous
1138         commit in prefix.
1139
1140 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1141         Paul Brook  <paul@codesourcery.com>
1142
1143         * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
1144         comments.
1145         * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
1146
1147 2004-06-27  Bud Davis  <bdavis9659@comcast.net>
1148
1149         PR gfortran/12839
1150         * io/write.c (write_float): check signbit for Infinity.
1151
1152 2004-06-26  Bud Davis  <bdavis9659@comcast.net>
1153
1154         PR gfortran/16196
1155         * unix.c(regular_file): create file if it does not exist.
1156
1157 2004-06-24  Andrew Pinski  <apinski@apple.com>
1158
1159         * configure.ac: Remove check for libmx.
1160         * configure: Regenerate.
1161
1162 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1163
1164         PR fortran/15750
1165         * inquire.c (st_inquire): Add comment
1166         * io.h (st_parameter): Add iolength.
1167         (st_iolength, st_iolength_done): Declare.
1168         * transfer.c (iolength_transfer, iolength_transfer_init,
1169         st_iolength, st_iolength_done): New functions.
1170
1171 2004-06-21  Steven G. Kargl  <kargls@comcast.net>
1172
1173         * etime.c (etime_sub): Remove array rank check;
1174         Add check for sufficient space.
1175
1176 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
1177
1178         PR gfortran/16080
1179         * io/list_read.c(set_value): fixed spelling.
1180
1181 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
1182
1183         PR gfortran/16080
1184         * io/list_read.c(set_value): don't copy if the string is null.
1185
1186 2004-06-14  Bud Davis  <bdavis9659@comcast.net>
1187
1188         PR gfortran/15292
1189         * intrinsics/c99_functions.c: Use fpclassify if it exists.
1190
1191 2004-06-13  Paul Brook  <paul@codesourcery.com>
1192
1193         * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
1194         * configure.ac: Add checks for nextafter and nextafterf.
1195         * Makefile.in, config.h.in, configure: Regenerate.
1196         * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
1197         * intrinsics/rand.c (rand): Use normalize_r4_i4.
1198         * intrinsics/random.c (random_r4): Use normalize_r4_i4.
1199         (random_r8): Use normalize_r8_i8.
1200         * runtime/normalize.c: New file.
1201
1202 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
1203             Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1204
1205         * random.c: Fix several spelling and formatting mistakes in 
1206         comments.
1207         (random_r8): Fix loop to make random numbers range in [0,1(.
1208         
1209
1210 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
1211
1212         * random.c (random_r4): Burn a random number.
1213         (random_r8): fix infinite loop.
1214         
1215 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
1216       Steve Kargl  <sgk@troutmask.apl.washington.edu>
1217
1218         PR gfortran/15292
1219         * intrinsics/c99_functions.c: New file.
1220         * Makefile.am: Add new file.
1221         * configure.ac: Added test for round/roundf.
1222         * Makefile.in: Regenerate.
1223         * configure: Regenerate.
1224         * configure.h.in: Regenerate.
1225
1226 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
1227
1228         * Makefile.am: Add rand.c and etime.c
1229         * Makefile.in: Regenerated.
1230         * aclocal.in: Regenerated.
1231         * cpu_time.c (second_sub, second): New functions.
1232         * rand.c (irand, rand, srand): New file.
1233         * etime.c (etime_sub, etime): New file.
1234
1235 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1236             Steven Bosscher  <stevenb@suse.de>
1237
1238         PR fortran/14923
1239         * intrinsics/date_and_time.c: New file.
1240         * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
1241         * Makefile.in, aclocal.m4: Regenerate.
1242         * libgfortran.h: Prototype date_and_time().
1243
1244 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
1245
1246         PR fortran/15665
1247         * intrinsics/args.c: Implement GETARG and IARGC.
1248         * Makefile.am: Add it.
1249         * Makefile.in: Regenerate.
1250
1251 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
1252
1253         PR gfortran/12839
1254         * io/write.c(write_float): Format inf and nan IAW F2003.
1255
1256 2004-06-09  Bud Davis  <bdavis9659@comcaste.net>
1257
1258         PR gfortran/14897
1259         * io/transfer.c (formatted_transfer): position is unique
1260          for T and TL edit descriptors.
1261         (data_transfer_init): set record length to size of internal
1262          file.
1263
1264 2004-06-09  Bud Davis  <bdavis9659@comcast.net>
1265
1266         PR gfortran/15755
1267         * io/backspace.c(st_backspace): call correct routine for
1268         formatted and un-formatted units.
1269
1270 2004-05-30  Andreas Jaeger  <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
1271
1272         PR gfortran/11800
1273         * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
1274         (lib_LTLIBRARIES): Rename to ...
1275         (toolexeclib_LTLIBRARIES): this for multilib support.
1276         * configure.in: Rename to ...
1277         * configure.ac: this.  Update to modern autoconf style, enable
1278         multilibs, support --enable-version-specific-runtime-libs.
1279         * Makefile.in: Regenerated.
1280         * configure: Regenerated.
1281         * aclocal.m4: Regenerated.
1282
1283 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
1284
1285         * libgfortran.h (random_seed): Update prototype.
1286         * intrinsics/random.c: Disable old implementation and add new one.
1287
1288 2004-05-30  Andreas Jaeger  <aj@suse.de>
1289
1290         * intrinsics/random.c: Include unistd.h for close and read
1291         prototypes, remove unneeded inclusion of assert.h.
1292
1293         * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
1294         unneeded inclusion of assert.h.
1295
1296 2004-05-27  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
1297
1298         PR fortran/15234
1299         * intrinsics/associated.c: Remove enum.
1300         (associated): Replace TRUE/FALSE by 1/0.
1301
1302 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
1303
1304         * random.c (random_seed): Use correct variable.
1305
1306 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
1307
1308         * intrinsics/system_clock: New file.
1309         * Makefile.am: Add intrinsics/system_clock.c.
1310         * Makefile.in: Regenerate.
1311
1312 2004-05-21  Roger Sayle  <roger@eyesopen.com>
1313
1314         * io/format.c (parse_format_list): Allow the comma after a string
1315         literal to be optional.
1316
1317 2004-05-18  Paul Brook  <paul@codesourcery.com>
1318         Feng Wang  <fengwang@nudt.edu.cn>
1319
1320         * Makefile.am (i_pow_c): Set it. Add build rule.
1321         (gfor_built_src): Use it.
1322         (m4_files): add m4/pow.m4.
1323         * Makefile.in: Regenerate.
1324         * m4/pow.m4: New file.
1325         * generated/pow_*.c: Regenerate.
1326
1327 2004-05-18  Paul Brook  <paul@codesourcery.com>
1328
1329         * Makefile.am: Remove references to types.m4.
1330         * m4/iparm.m4: Merge with types.m4.
1331         * m4/types.m4: Remove.
1332         * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
1333         m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
1334         m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
1335         m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
1336         m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
1337         m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
1338         Update to use new iparm.m4.
1339         * generated/*.c: Regenerate.
1340
1341 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1342
1343         PR fortran/15235
1344         * gfortran.h (offset_t): Rename to ...
1345         (gfc_offset): ... this.
1346         * io/backspace.c (formatted_backspace, unformatted_backspace),
1347         io/io.h (stream, gfc_unit, global_t, file_length, file_position),
1348         transfer.c (us_read, us_write, next_record_r, next_record_w),
1349         io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
1350         fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
1351         mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
1352         mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
1353         occurences of offset_t by gfc_offset.
1354
1355 2004-05-16  Paul Brook  <paul@codesourcery.com>
1356
1357         * io/format.c (write_real): Don't include padding in format.
1358
1359 2004-05-16  Paul Brook  <paul@codesourcery.com>
1360
1361         * io/format.c (format_lex): Make c an int.
1362
1363 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1364         Paul Brook  <paul@codesourcery.com>
1365
1366         * io/write.c (write_logical): Don't print extra blank.
1367         (write_integer): Base field width on kind.
1368         (list_formatted_write): Output initial blank.
1369
1370 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1371
1372         * io/io.h (flush): Add prototype.
1373         * io/transfer.c (finalize_transfer): Flush partial records.
1374         * io/unix.c (flush): New function.
1375
1376 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1377
1378         PR fortran/15234
1379         * io/io.h (unit_t): Rename to ...
1380         (gfc_unit) ... this.
1381         (unit_root, current_unit, find_file, find_unit, get_unit): Now
1382         of type gfc_unit.
1383         (delete_file, insert_unit, close_unit): Argument now of type
1384         gfc_unit.
1385         * backspace.c (st_backspace), close.c (st_close), endfile.c
1386         (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
1387         (test_endfile, edit_modes, new_unit, already_open, st_open),
1388         rewind.c (st_rewind), transfer.c (current_unit), unit.c
1389         (internal_unit, unit_cache, rotate_left, rotate_right, insert,
1390         insert_unit, delete_root, delete_treap, delete_unit, find_unit,
1391         get_unit, init_units, close_unit), unix.c (find_file0,
1392         find_file, delete_file): Replace all occurences of unit_t by
1393         gfc_unit.
1394
1395 2004-05-15  Bud Davis  <bdavis9659@comcast.net>
1396
1397         PR fortran/15311
1398         * io/write.c (write_a): right justify A edit output.
1399
1400 2004-05-14  Bud Davis  <bdavis9659@comcast.net>
1401
1402         PR fortran/15149
1403         * libgfortan.h,intrinsics/random.c: Made random_seed visible.
1404         * runtime/main.c(init): Call random_seed as part of MAIN init.
1405
1406 2004-05-13  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
1407
1408         * io/format.c: (parse_format_list): No comma is required after
1409         P descriptor.
1410
1411 2004-05-13  Bud Davis  <bdavis9659@comcast.net>
1412
1413         PR fortran/15204
1414         * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
1415
1416 2004-05-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1417             Steven Bosscher  <stevenb@suse.de>
1418
1419         PR libfortran/15234
1420         * libgfortran.h: Include <inttypes.h> if available.
1421
1422 2004-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1423
1424         * io/unix.c (MAP_FAILED): Define if missing.
1425         (mmap_alloc): Cast MAP_FAILED to char *.
1426         (mmap_open): Likewise.
1427
1428 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
1429
1430         * generated/_abs_i8.f90: New file.
1431         * generated/_abs_c4.f90: New file.
1432         * generated/_abs_c8.f90: New file.
1433         * Makefile.am: Add them.
1434         * Makefile.in: Regenerate.
1435 `
1436 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
1437
1438         PR fortran/14056
1439         * generated/_abs_i4.f90: New file.
1440         * Makefile.am: Add it.
1441         * Makefile.in: Regenerate.
1442
1443 2004-04-25  Bud Davis  <bdavis9659@comcast.net>
1444
1445         PR fortran/14942
1446         * io/list_read.c(list_formatted_read): finish consuming the
1447         spaces and seperators at eoln to get ready for next item.
1448
1449 2004-04-23  Bud Davis  <bdavis9659@comcast.net>
1450
1451         PR fortran/15113
1452         * io/read.c(read_a): Handle field width > destination and no field width.
1453
1454 2004-04-22  Bud Davis  <bdavis9659@comcast.net>
1455
1456         PR fortran/14906
1457         * io/format.c (format_item): gracefully handle a ')'
1458         when it is the first character encountered in the string.
1459
1460 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
1461
1462         PR fortran/14904
1463         * io/transfer.c (next_record): Update last_record when
1464         more than one record is written to a direct access file
1465         with one write statement.
1466
1467 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
1468
1469         PR fortran/14901
1470         * io/transfer.c (next_record_w) : No '\n' if internal.
1471         * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
1472
1473 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
1474
1475         * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
1476         Will need to change this later to support direct access files > 2gb.
1477
1478 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
1479
1480         PR gfortran/14762
1481         * io/transfer.c (next_record_r) : Skip to next record.
1482
1483 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
1484
1485         PR gfortran/14836
1486         * io/transfer.c (next_record): Update last_record for DIRECT
1487
1488 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
1489
1490         PR gfortran/14837
1491         * io/unix.c (find_file0): Use fd field of struct
1492
1493 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
1494
1495         PR 14831
1496         * io/inquire.c (inquire_via_unit): Changed return string for
1497         BLANK=NULL. Use correct variable for ACTION.
1498
1499 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
1500
1501         PR 14746
1502         * io/read.c (read_f): Allow a decimal without a leading digit.
1503         * io/write.c (output_float): remove a leading '0' to keep from
1504         overflowing the field (F edit descriptor).
1505
1506 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
1507
1508         PR gfortran/14565
1509         * io/open.c (new_unit),
1510         * io/io.h : new_unit is now visible
1511         * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
1512         * io/transfer.c (data_transfer_init): remove compile warnings.
1513         * io/rewind.c (st_rewind): ftruncate if writing.
1514
1515 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
1516
1517         * write.c (write_l): Use extract_int for 'L' edit descriptor.
1518
1519 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
1520
1521         PR 13919
1522         * io/io.h (global_t):
1523         * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
1524           Move eof_jmp to a global structure.
1525         * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
1526
1527 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
1528
1529         * m4/cexp.m4 (csqrt): Actually use the passed value.
1530         * generated/exp_c?.c: Regenerate.
1531
1532 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
1533
1534         PR 12921
1535         * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
1536         * open.c (new_unit): Moved test for positioned direct access error.
1537         (init_units): Corrected calculation of max records.
1538
1539 2004-02-06  Feng Wang  <fengwang@nudt.edu.cn>
1540
1541         * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
1542         * Makefile.in: Regenerate.
1543         * m4/dotprodc.m4: New file. Implement complex dot_product.
1544         * m4/dotprod.m4: Delete the complex implementation.
1545         * generated/dotprod_*: Update.
1546
1547 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
1548
1549         * transfer.c (write_constant_string): Do not delete H's in hollerith
1550         formats.
1551
1552 2004-01-05  Andrew Pinski  <apinski@apple.com>
1553
1554         * configure.in: Check for csin in -lmx also.
1555         * configure: Regenerate.
1556
1557 2004-01-01  Paul Brook  <paul@codesourcery.com>
1558
1559         * io/list_read.c (find_nml_node): Make static.
1560         (match_namelist_name): Ditto.
1561         * io/read.c (convert_precision_real): Make static, fix spelling.
1562         * io/transfer.c (extract_real): Remove unused prototype.
1563         (st_set_nml_var): Make static.
1564         * io/write.c (extract_real): Make static.
1565
1566 2003-12-12  Huang Chun <chunhuang73@hotmal.com>
1567
1568         * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
1569
1570 2003-12-05  Melvin Hadasht  <melvin.hadasht@free.fr>
1571
1572         * io/transfer.c (data_transfer_init): Give a runtime error for list
1573         formatted reads and writes from/to files opened for unformatted IO.
1574
1575 2003-11-30  Paul Brook  <paul@nowt.org>
1576
1577         * runtime/memory.c (push_context): Remove.
1578         (pop_context): Remove.
1579         * libgfortran.h: Remove prototypes.
1580
1581 2003-11-27  Paul Brook  <paul@nowt.org>
1582
1583         * runtime/memory.c (deallocate): Nullify pointer after freeing.
1584
1585 2003-11-27  Paul Brook  <paul@nowt.org>
1586
1587         * intrinsics/string_intrinsics.c: Use new memory allocation interface.
1588         * libgfortran.h: Ditto.
1589         * m4/in_pack.m4: Ditto.
1590         * runtime/in_pack_generic.c: Ditto.
1591         * runtime/memory.c: Ditto.
1592
1593 2003-11-26  Richard Henderson  <rth@redhat.com>
1594
1595         * m4/exponent.m4, m4/fraction.m4: New.
1596         * m4/nearest.m4, m4/set_exponent.m4: New.
1597         * generated/*: Update.
1598         * Makefile.am: Add them.
1599         (AM_CFLAGS): New.  Use -std=gnu99.
1600         * Makefile.in: Regenerate.
1601
1602 2003-11-08  Paul Brook  <paul@nowt.org>
1603
1604         PR fortran/12704
1605         * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
1606         * m4/maxloc1.m4: Ditto.
1607         * m4/minloc0.m4: Ditto.
1608         * m4/minloc1.m4: Ditto.
1609         * m4/ifunction.m4: Set return value for zero sized arrays.
1610         * m4/iforeach.m4: Ditto.
1611         * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
1612         m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
1613         * generated/*: Update.
1614
1615 2003-10-30  Toon Moene  <toon@moene.indiv.nluug.nl>
1616
1617         PR fortran/12702
1618         * io/list_read.c (eat_spaces): Treat tab as space.
1619
1620 2003-10-30  Lars Segerlund  <Lars.Segerlund@comsys.se>
1621
1622         * intrinsics/random.c: Add reference to paper containing algorithm.
1623         (random_seed): Extra error checking and proper handling of arrays.
1624         (arandom_r4, arandom_r8): Implement.
1625
1626 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
1627
1628         PR fortran/12703
1629         * runtime/memory.c (allocate_size): Allow allocation
1630         of zero-sized objects.
1631
1632 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
1633
1634         PR fortran/12701
1635         * open.c (new_unit): Open without a file name opens
1636         a file with name fort.<unit>.
1637
1638 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
1639
1640         * intrinsics/cshift0.c: New file.
1641         * m4/cshift1.m4: New file
1642         * generated/cshift*.c: New files.
1643         * Makefile.am: Add them.
1644         * Makefile.in: Regenerate.
1645
1646 2003-10-12  XiaoQiang Zhang  <zhangapache@yahoo.com>
1647
1648         * io/list_read.c (read_character): Remove unwanted call to free_saved.
1649
1650 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
1651
1652         * intrinsics/string_intrinsics.c (string_trim): New function.
1653         (string_repeat): New function.
1654
1655 2003-10-11  Paul Brook  <paul@nowt.org>
1656
1657         * intrinsics/dprod_r8.f90: New file.
1658         * Makefile.am (gfor_specific_src): Add it.
1659         (gfor_built_specific_src): Rename from gfor_build_specific_c.
1660         Add new intrinsics.
1661         (gfor_specific2_src): Rename from gfor_built_specific2_c.
1662         Add new intrinsics.
1663         * Makefile.in: Regenerate.
1664         * generated/_aint_*.f90: New files.
1665         * generated/_anint*.f90: New files.
1666         * generated/_atan2*.f90: New files.
1667         * generated/_mod*.f90: New files.
1668
1669 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1670
1671         * intrinsics/selected_kind.f90: New file.
1672         * Makefile.am: Add it.
1673         * Makefile.in: regenerate.
1674
1675 2003-09-19  Lars Segerlund  <Lars.Segerlund@comsys.se>
1676         Paul Brook  <paul@nowt.org>
1677
1678         * intrinsics/random.c: New file.
1679         * Makefile.am (gfor_hemper_src): Add it.
1680         (gfor_specific_c): Fix typo.
1681
1682 2003-09-19  Paul Brook  <paul@nowt.org>
1683
1684         * All: rename g95->gfc.
1685
1686 2003-09-18  XiaoQiang Zhang  <zhangapache@yahoo.com>
1687
1688         * io/write.c (output_float): Fix bug of FMT_E, Add comments.
1689
1690 2003-09-09  XiaoQiang Zhang  <zhangapache@yahoo.com>
1691
1692         * io/write.c (write_float): Dectection of positive infinite number,
1693         Not a Number(NaN) and negative infinite number.
1694         (ioutput_float): Bug fix for FMT_E and FMT_D processing to
1695         output a very_very small number ( < 0.1e-100 ).
1696
1697 2003-09-07  XiaoQiang Zhang  <zhangapache@yahoo.com>
1698
1699         * libgfortran.h (xtoa, itoa): Parameter modified.
1700         * io/io.h (namelist_info): Declaration to support namelist I/O
1701         (st_parameter): Add namelist related component
1702         (ionml, empty_internal_buffer, st_set_nml_var_int,
1703         st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
1704         st_set_nml_var_log): Declaration
1705         (set_integer, set_integer): Parameter changed
1706         * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
1707          fnodes
1708         (parse_format_list): Fix bug about FMT_SLASH
1709         * io/list_read.c (push_char): Totally clear old saved_string, zeroize
1710         newly allocated saved_string
1711         (next_char): Add detection of End_Of_Line support
1712         (convert_integer): Now can process 64 bits interger
1713         (read_real): Bug fixed
1714         (init_at_eol, find_nml_node, match_namelist_name): Add new functions
1715         (match_namelist_name): New implemention
1716         * io/lock.c (ionml): New global variable
1717         (library_end): Free memory in ionml
1718         * io/open.c (st_open): Variable initializtion
1719         * io/read.c (max_value): 64 bits interger support
1720         (convert_precsion_real): New procedure to replace "strtod" with more
1721          features
1722         (read_f, read_radix): Input bug fix
1723         * io/transfer.c: (sf_seen_eor): New static variable
1724         (read_sf): Zeroize base buffer; fix bugs: single read statement can
1725         not get input in mutli line when read from stdin
1726         (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
1727          request
1728         (data_transfer_init): Clear internal buffer for Internel File I/O.
1729         Internal File now worked. Detect some error condition for namelist.
1730         Some minor bug fix
1731         (next_record_w): Internal file and Namelist I/O support.
1732         (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
1733         st_set_nml_var_complex, st_set_nml_var_log): Implemention.
1734         * io/unit.c (implicit_unit): Deletion
1735         (get_unit): Now cannot open a unit implicitly.
1736         * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
1737         mapped buffer.
1738         (mem_alloc_r_at): Internal file I/O support added
1739         (empty_internal_buffer): New function
1740         * io/write.c (extract_int): Support 64 bits interger processing
1741         (output_float): Varibale initialization
1742         (write_float): Infinite real number detection.
1743         (write_int): 64 bits integer I/O support
1744         (write_decimal): New function to output decimal number
1745         (otoa, btoa): Better implemention and 64 bits interger support
1746         (namelist_write): New function
1747         * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
1748         interger support
1749
1750 2003-08-15  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1751
1752         * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
1753         get_mem ): Add attribute.
1754         * intrinsics/spread_generic.c (__spread): Fix spelling.
1755         * io/inquire.c (inquire_via_filename): Add const.
1756         * io/io.h (sys_exit): Add attribute.
1757         * io/io.h (move_pos_offset): Add move_pos_offset.
1758         * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
1759         inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
1760         inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
1761         write_en, write_es, write_f, write_i, write_l, write_o, write_x,
1762         write_z): Add const.
1763         * io/read.c (convert_real): Add const.
1764         * io/transfer.c (type_name): Add const.
1765         * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
1766         inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
1767         inquire_read, inquire_write, inquire_readwrite): Add const.
1768         * io/write.c (output_float): Remove unused variable.
1769         * io/write.c (write_a, extract_int, extract_real, output_float,
1770         write_float, write_int, write_i, write_b, write_o, write_z, write_d,
1771         write_e, write_f, write_en, write_es, write_logical, write_integer,
1772         write_character, write_real, write_complex): Add const.
1773         * runtime/error.c (rtoa): Remove unused variable.
1774         * runtime/select.c (select_string): Add const.
1775         * runtime/stop.c (stop_string): Add const.
1776
1777 2003-08-10  Paul Brook  <paul@nowt.org>
1778
1779         * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
1780         (FFLAGS): Add -fno-underscoring.
1781         * Makefile.in: Regenerate.
1782         * intrinsics/abort.c: New file.
1783
1784 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
1785
1786         * fmain.c (main): Do not call init and cleanup; call set_args instead.
1787         * libgfortran.h (init, cleanup): Remove declarations.
1788         (set_args): Add declaration.
1789         * runtime/main.c (init, cleanup): Make them static, and give them
1790         the constructor and destructor attributes.
1791         (set_args): New function.
1792
1793 2003-08-10  Paul Brook  <paul@nowt.org>
1794
1795         * intrinsics/strinf_intrinsics.c (compare_string): Return value based
1796         on which string is longest.
1797
1798 2003-08-10  Paul Brook  <paul@nowt.org>
1799
1800         * Makefile.am (EXTRA_DIST): Remove old files.
1801         * Makefile.in: Regenerate.
1802
1803 2003-07-26  Paul Brook  <paul@nowt.org>
1804
1805         Rename library to libgfortran.
1806         * libgfortran.h: Change prefix to _libgfortran_.
1807
1808 2003-07-24  Paul Brook  <paul@nowt.org>
1809
1810         * configure.in: Don't pull in system libtool.  Use toplevel
1811         auxiliary files.
1812
1813 2003-07-22  Paul Brook  <paul@nowt.org>
1814
1815         Regenerate all configury files.
1816
1817 2003-07-09  Chun Huang  <compiler@sohu.com>
1818
1819         * intrinsics/string_intrinsic.c (string_scan): New function.
1820         (string_verify): New function.
1821
1822 2003-06-25  Paul Brook  <paul@nowt.org>
1823
1824         * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
1825         (mem_seek): Don't bother setting physical_offset.
1826
1827 2003-06-20  Paul Brook  <paul@nowt.org>
1828
1829         * libgfor.h (stop_numeric): Declare.
1830         * runtime/pause.c: New file.
1831         * Makefile.am: Add it.
1832
1833 2003-06-08  Paul Brook  <paul@nowt.org>
1834
1835         * m4/cexp.m4 (cabs): Use correct typed version.
1836         (csqrt): New function.
1837
1838 2003-06-07  Canqun Yang  <canqun@yahoo.com.cn>
1839
1840         Spotted by Benjamin and Tobias:
1841         * io/list_read.c: Add Separator '\t'.
1842         (parse_real, read_real): Accept real values starting with an optional
1843         sign follows a decimal point.
1844
1845 2003-06-06  Steven Bosscher  <steven@gcc.gnu.org>
1846
1847         * Makefile.am: Don't put cmath objects in subdir.
1848         * configure.in: Rename MATHOBJ to MATH_OBJ.
1849
1850 2003-06-02  Kejia Zhao  <Kejia_zh@yahoo.com.cn>
1851
1852         * intrinsics/associated.c: New file.
1853         * Makefile.am: Add it. Regenerate Makefile.in.
1854         * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
1855         G95_DESCRIPTOR_DTYPE.
1856
1857 2003-06-01  Canqun Yang  <canqun@yahoo.com.cn>
1858
1859         * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
1860         (calculate_G_format): Rewrite it to eliminate an infinte loop and set
1861         the scale_factor to 0 for F editing.
1862
1863 2003-05-11  Tobias Schlüter  <innenminister@gmx.de>
1864
1865         * libgfor.h: Only include stdint.h if it exists.
1866
1867 2003-05-07  Paul Brook  <paul@nowt.org>
1868
1869         * libgfor.h: Use stdint.h types.
1870         * intrinsics/ishift.c: Ditto.
1871         * runtime/memory.c (malloc_t): Reorder fields for better alignment.
1872
1873 2003-05-05  Steven Bosscher  <steven@gcc.gnu.org>
1874
1875         * libgfor.h (offsetof): Define if nobody else does.
1876         * runtime/memory.c (HEADER_SIZE): Use it.
1877
1878 2003-05-01  Tobias Schlüter  <innenminister@gmx.de>
1879
1880         * configure.in: Require autoconf 2.54.
1881
1882 2003-04-28  Tobias Schlüter  <innenminister@gmx.de>
1883         Paul Brook  <paul@nowt.org>
1884
1885         * intrinsics/reshape_generic.c: Copy the whole element, not just the
1886         first byte.
1887         * m4/transpose.m4: New file.
1888         * Makefile.am: Add them.
1889         Regenerate generated files.
1890
1891 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1892
1893         * io/format.c (parse_format_list): Allow 'X' without integer
1894         prefix.  This is an extension.  Interpretation is '1X'.
1895
1896 2003-04-18  Tobias Schlüter  <Tobias.Schlueter@physik.uni-muenchen.de>
1897
1898         * io/format.c (parse_format_list): Allow '0P'.
1899
1900 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1901
1902         * Makefile.in: Re-regenerate for automake 1.7.3.
1903
1904 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
1905
1906         Port implementation for CHARACTER SELECT from Andy's tree.
1907         * runtime/select.c: New file
1908         * Makefile.am: Add it.
1909         * Makefile.in: Regenerate.
1910
1911 2003-04-17  Xiaoqiang Zhang <zhangapache@yahoo.com>
1912
1913         * io/transfer.c (formatted_transfer): Modified
1914         * io/unix.c (move_pos_offset): New Function.
1915         * io/format.c (parse_format_list): Modified.
1916
1917 2003-04-15  Xiaoqiang Zhang <zhangapache@yahoo.com>
1918
1919         * io/write.c (write_float,write_real): New implemention of
1920         FMT_G and default float editing.
1921         (calculate_exp,calculate_G_format,output_float): New Function.
1922         (write_float,write_real,write_logical): Modified
1923         * libgfor.h (default_rtoa): Remove Declaration.
1924         * runtime/error.c (default_rtoa): Remove Function.
1925
1926 2003-04-15  Steven Bosscher  <steven@gcc.gnu.org>
1927
1928         Spotted by Yang:
1929         * io/write.c (extract_real): Add missing break statement.
1930
1931 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
1932
1933         * cpu_time.c: Make sure we have a definition of HZ.  Don't
1934         rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
1935
1936 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
1937             Paul Brook  <paul@nowt.org>
1938
1939         * configure.in: Check for process time headers and GETTIMEOFDAY.
1940         * makefile.am: Add intrinsics/cpu_time.c.
1941         * acinclude.m4: New file.
1942         * intrinsics/cpu_time.c: New file.
1943         * m4/dotprodl.m4: Fix typo.
1944         Regenerate generated files.
1945
1946 2003-04-11  Xiaoqiang Zhang <zhangapache@yahoo.com>
1947
1948         * io/write.c (extract_real): Ouput floating point value.
1949         (write_float): New Function.
1950         (write_e, write_f, write_en, write_es): Modified
1951         * io/transfer.c (formatted_transfer): Modified.
1952         * libgfor.h (default_rtoa): Declaration.
1953         (rtoa): Declaration.
1954         * runtime/error.c (default_rtoa): New Function.
1955         (rtoa): New Function.
1956
1957 2003-04-05  Paul Brook  <paul@nowt.org>
1958
1959         * intrinsics/spread_generic.c: New file.
1960         * Makefile.am: Add it. Regenerate Makefile.in.
1961
1962 2003-03-29  Paul Brook  <paul@nowt.org>
1963
1964         * intrinsics/pack_generic.c: New file.
1965         * intrinsics/unpack_generic.c: New file.
1966         * Makefile.am: Add them. Regenerate Makefile.in.
1967
1968 2003-03-25  Paul Brook  <paul@nowt.org>
1969
1970         * intrinsics/eoshift0.c: New file.
1971         * intrinsics/eoshift2.c: New file.
1972         * m4/eoshift1.m4: New file.
1973         * m4/eoshift3.m4: New file.
1974         * Makefile.am: Add them.
1975         * in_unpack_generic.c: Initialize src.
1976         Regenerate generated files.
1977
1978 2003-03-14  Paul Brook  <paul@nowt.org>
1979
1980         * m4/shape.m4: Work properly with array temporaries.
1981         * m4/in_pack.m4: Skip redundant checks for array temporaries.
1982         * runtime/in_pack_generic.c: Ditto.
1983
1984 2003-03-12  Paul Brook  <paul@nowt.org>
1985
1986         * m4/shape.m4: Work properly with noncontiguous arrays.
1987
1988 2003-03-08  Paul Brook  <paul@nowt.org>
1989
1990         * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1991         * runtime/in_pack_generic.c: Ditto.
1992
1993 2003-02-08  Paul Brook  <paul@nowt.org>
1994
1995         * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1996         * io/close.c (st_close): Return void.
1997         * io/open.c (st_open): Return void.
1998         * libgfor.h (g95_array_char): Declare.
1999         (internal_malloc_size): Ditto.
2000         (internal_pack*, internal_unpack*): Ditto.
2001         * m4/in_pack.m4: Allocate storage if neccessary.  Fix logic for packed
2002         arrays.
2003         * m4/in_unpack.m4: Include file fixes.
2004         * m4/reshape.m4: Increment the correct source pointer.
2005         * Makefile.am (maxloc): Fix typo.
2006         * runtime/in_pack_generic.c: Call optimized functions. Allocate
2007         storage if neccessary. Fix logic for packed arrays.
2008         * runtime/in_unpack_generic.c: Call optimized functions.
2009         * runtime/main.c: Use runtime_error to report errors.
2010         * memory.c (internal_malloc_size): Make non-static.
2011
2012 2003-02-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2013
2014         * reshape_packed.c, lock.c: Add #include <string.h>.
2015         * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
2016         environ.c, error.c, memory.c, string.c: Add const.
2017         * error.c (show_locus): Add void.
2018
2019 2003-02-21  Paul Brook  <paul@nowt.org>
2020
2021         * m4/in_pack.m4: Avoid returning const * parameter.
2022         * Makefile.am: Only regenerate files in maintainer mode.
2023
2024 2003-02-20  Paul Brook  <paul@nowt.org>
2025
2026         Add array repacking support functions.
2027         * m4/in_pack.m4, m4/in_unpack.m4: New files.
2028         * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
2029         * Makefile.am: Build them.  Regenerate configury files.
2030         * generated/: New directory for generated files (need to move
2031         everything else there).
2032
2033 2003-02-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2034
2035         * m4/cexp.m4: Fix typo.
2036
2037 2003-01-26  Paul Brook  <paul@nowt.org>
2038
2039         * intrinsics/: Add missing generated files.
2040
2041 2003-01-26  Paul Brook  <paul@nowt.org>
2042
2043         * Makefile.am: Put -I before the filename.
2044
2045 2003-01-24  Paul Brook  <paul@nowt.org>
2046
2047         * configure.in: Add AM_MAINTAINER_MODE.
2048
2049 2003-01-23  Paul Brook  <paul@nowt.org>
2050
2051         * configure.in, Makefile.am: Modify to work with unmodified autoconf
2052         and auotmake.
2053         Also regenerate other configury files.
2054
2055 2003-01-21  Paul Brook  <paul@nowt.org>
2056
2057         * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
2058
2059 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2060
2061         * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
2062         Don't include "alloca.h".
2063
2064 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2065
2066         * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
2067         * Makefile.am: Adjust file name.
2068         * Makefile.in: Regenerate.
2069         * gfortypes.h: Kill, include everything in...
2070         * libgfor.h: ...here.  Include config.h
2071         * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
2072         intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
2073         intrinsics/reshape_packed.c, intrinsics/size.c,
2074         m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
2075         for prefix for all functions instead of hardcoded.
2076
2077 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2078
2079         * io/lock.c (library_end): Propagate library return
2080         code.
2081
2082 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2083
2084         Port fixes from Andy's tree:
2085         * io/read.c (read_decimal): Reverse sense of overflow
2086         comparison during integer reads.
2087         * io/format.c (revert): Fix comment.
2088         (next_format): Fix format revision.
2089         * io/unix.c: Fix and simplify mmap version of stream
2090         functions.
2091
2092 2003-01-11  Paul Brook  <paul@nowt.org>
2093
2094         * configure, Makefile.in: Regenerate.
2095
2096 2003-01-11  Paul Brook  <paul@nowt.org>
2097
2098         * runtime/stop.c: Rewrite.
2099
2100 2003-01-08  Paul Brook  <paul@nowt.org>
2101
2102         * configure, Makefile.in: Regenerate.
2103
2104 2003-01-05  Paul Brook  <paul@nowt.org>
2105
2106         * (*.m4) Move to m4/.
2107         * intrinsics/string.c (_gfor_string_index): New Function.
2108
2109 2002-12-29  Paul Brook  <paul@nowt.org>
2110
2111         * intrinsics/reshape.*: New files.
2112         * gcc_config.patch: Update to new GCC configure system.
2113
2114 2002-10-10  Paul Brook  <paul@nowt.org>
2115
2116         * intrinsics/size.c: New file.
2117         * intrinsics/shape.m4: New file.
2118         * Makefile.am: Add above files.
2119
2120 2002-10-02  Paul Brook  <paul@nowt.org>
2121
2122         * fmain.c (main): Move here.
2123         * libgfor.c: From here.
2124         * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
2125         * Makefile.am: Build libgforbegin.
2126         * gcc_config.patch: Remove stray -march=athlon.
2127         * dotprodl.m4: Fix use of L8_TO_L4 macro.
2128         * ifunction.m4: Move variable declarations to allow compilation with
2129         gcc < 3.0
2130         * specific.m4, specific4.m4: Fix typo typecode->type_code.
2131         * README: Document use of patch -p1.
2132
2133 2002-09-12  Paul Brook  <paul@nowt.org>
2134
2135         * math/*: Add complex math library functions.
2136         * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
2137         * Makefile.am: Add details for above.
2138         * configure.in: Use AC_PROG_F95.  Test for the presence of csin.
2139
2140 2002-09-09  Paul Brook  <paul@nowt.org>
2141
2142         * libgfor.c (determine_endianness): Use an array rather than a struct.
2143         * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
2144
2145 2002-09-09  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2146
2147         * libgfor.c: Add fatal signal handler.
2148         Romove superfluous abort() calls.
2149
2150 2002-09-07  Paul Brook <paul@nowt.org>
2151
2152         * Makefile.am, intrinsics: Major rewrite.
2153
2154 2002-09-02  Paul Brook <paul@nowt.org>
2155
2156         * Makefile.am: Added -I$(srcdir) to m4 rule.
2157
2158 2002-08-30  Paul Brook <paul@nowt.org>
2159
2160         * io/*: Integrated libgforio.
2161         * Makefile.am, configure.in: Make compatable with GCC. Build code for
2162         intrinsics in the intrisics directory.
2163         * intrinsics/intrinsics.m4: Move here. Strip directories from the
2164         filename. Add 'and' and 'all' intrinsics.
2165
2166 2002-08-17  Paul Brook <paul@nowt.org>
2167
2168         * ALL: First release as more than just a single file