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