OSDN Git Service

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