OSDN Git Service

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