OSDN Git Service

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