OSDN Git Service

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