OSDN Git Service

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