OSDN Git Service

edba622c70bc837c2b154f32f06adb3dd8703898
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2006-09-10  Paul Thomas  <pault@gcc.gnu.org>
2
3         PR libfortran/28947
4         * m4/matmul.m4: For the case where the second input argument is
5         transposed, ensure that the case with rank (a) == 1 is
6         correctly calculated.
7         * generated/matmul_r4.c: Regenerate.
8         * generated/matmul_r8.c: Regenerate.
9         * generated/matmul_r10.c: Regenerate.
10         * generated/matmul_r16.c: Regenerate.
11         * generated/matmul_c4.c: Regenerate.
12         * generated/matmul_c8.c: Regenerate.
13         * generated/matmul_c10.c: Regenerate.
14         * generated/matmul_c16.c: Regenerate.
15         * generated/matmul_i4.c: Regenerate.
16         * generated/matmul_i8.c: Regenerate.
17         * generated/matmul_i16.c: Regenerate.
18
19 2006-08-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
20
21         PR libgfortran/28354
22         * io/write.c: Check for special case of zero precision in format
23         and pre-round the real value.
24
25 2006-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
26
27         PR libgfortran/25828
28         * libgfortran.h: Rename GFC_LARGE_IO_INT to GFC_IO_INT.
29         * io/file_pos.c (st_backspace): Ignore if access=STREAM.
30         (st_rewind): Handle case of access=STREAM.
31         * io/open.c (access_opt): Add STREAM_ACCESS.
32         (edit_modes): Set current_record to zero only if not STREAM.
33         (new_unit): Initialize maxrec, recl, and last_record for STREAM.
34         * io/read.c (read_x): Advance file position for STREAM.
35         * io/io.h (enum unit_access): Align IOPARM flags with frontend.
36         Add ACCESS_STREAM. Add prototype for is_stream_io () function.
37         Use GFC_IO_INT.
38         * io/inquire.c (inquire_via_unit): Add text for access = "STREAM".
39         * io/unit.c (is_stream_io): New function to return true if access =
40         STREAM.
41         * io/transfer.c (file_mode): Add modes for unformatted stream and
42         formatted stream. (current_mode): Return appropriate file mode based
43         on access flags.
44         (read_block): Handle formatted stream reads.
45         (read_block_direct): Handle unformatted stream reads.
46         (write_block): Handle formatted stream writes.
47         (write_buf): Handle unformatted stream writes.
48         (unformatted_read): Fix up, use temporary for size.
49         (pre_position): Position file for STREAM access.
50         (data_transfer_init): Initialize for stream access, skip irrelevent
51         error checks.
52         (next_record_r),(next_record_w), and (next_record): Do nothing for
53         stream I/O.
54         (finalize_transfer): Flush when all done if stream I/O.
55
56 2006-08-12  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
57
58         * intrinsics/bessel.c: Add prototypes for all functions.
59
60 2006-08-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
61
62         * intrinsics/access.c (access_func): Remove export directive.
63
64 2006-08-02  Thomas Koenig  <Thomas.Koenig@online.de>
65
66         * Makefile.in:  Regenerate using automake 1.9.6.
67         * aclocal.m4:  Revert to previous version.
68
69 2006-08-01  Thomas Koenig  <Thomas.Koenig@online.de>
70
71         PR libfortran/28452
72         * Makefile.am:  Remove normalize.c.
73         * aclocal.m4:  Regenerate using aclocal 1.9.3.
74         * Makefile.in:  Regenerate using automake 1.9.3.
75         * libgfortran.h:  #include <float.h>.
76         Define GFC_REAL_*_DIGITS and GFC_REAL_*_RADIX.
77         Remove prototypes for normalize_r4_i4 and normalize_r8_i8.
78         * intrinsics/random.c (top level): Add prototypes for
79         random_r10, arandom_r10, random_r16 and arandom_r16.
80         (rnumber_4):  New static function.
81         (rnumber_8):  New static function.
82         (rnumber_10): New static function.
83         (rnumber_16): New static function.
84         (top level):  Set to kiss_size to 12 if we have
85         REAL(KIND=16), to 8 otherwise.
86         Define KISS_DEFAULT_SEED_1, KISS_DEFAULT_SEED_2 and
87         KISS_DEFAULT_SEED_3.
88         (kiss_random_kernel):  Take argument to differentiate
89         between different random number generators.
90         (random_r4):  Add argument to call to kiss_random_kernel,
91         use rnumber_*.
92         (random_r8):  Likewise.
93         (random_r10):  New function.
94         (random_r16):  New function.
95         (arandom_r4):  Add argument to call to kiss_random_kernel,
96         use_rnumber_*.
97         (arandom_r8):  Likewise.
98         (arandom_r10):  New function.
99         (arandom_r16):  New function.
100         * intrinsics/rand.c (rand):  Use shift and mask.
101         * runtime/normalize.c:  Remove.
102
103 2006-07-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
104
105         PR libgfortran/28335
106         * file_position.c (st_flush): Add clearer error when UNIT does not
107         exist. Add reference to standard in comment.
108
109 2006-07-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
110
111         PR libgfortran/28335
112         * close.c (st_close): Revert previous patch and add comment.
113         * file_position.c (st_flush): Revert previous patch and add comment.
114
115 2006-07-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
116
117         * intrinsics/date_and_time.c: Add functions for GMTIME and LTIME.
118         * intrinsics/access.c: New file.
119         * intrinsics/chmod.c: New file.
120         * configure.ac: Add checks for <sys/wait.h>, access, fork,execl
121         and wait.
122         * Makefile.am: Add new files intrinsics/access.c and
123         intrinsics/chmod.c.
124         * configure: Regenerate.
125         * config.h.in: Regenerate.
126         * Makefile.in: Regenerate.
127
128 2006-07-30  Janne Blomqvist  <jb@gcc.gnu.org>
129
130         * io/transfer.c (transfer_array): Remove stride0 fix.
131         
132 2006-07-26  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
133
134         * configure.ac: Check for function clock.
135         * Makefile.am: Compile new file intrinsics/clock.c.
136         * intrinsics/clock.c: New file.
137         * Makefile.in: Regenerate.
138         * configure: Regenerate.
139         * config.h.in: Regenerate.
140         * intrinsics/stat.c: Rename the old stat_i?_sub functions to
141         helper functions stat_i?_sub_0, and use them for both STAT and
142         LSTAT.
143
144 2006-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
145
146         PR libgfortran/28335
147         * close.c (st_close): Add error when UNIT does not exist.
148         * file_position.c (st_flush): Add error when UNIT does not exist.
149
150 2006-07-25  Paolo Bonzini  <bonzini@gnu.org>
151
152         PR build/26188
153         * configure: Regenerate.
154
155 2006-07-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
156
157         PR libgfortran/25289
158         * libgfortran.h: Add conditional definition of GFC_LARGE_IO_INT type.
159         * io/io.h (st_parameter_dt): Define rec as type GFC_LARGE_IO_INT.
160
161 2006-07-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
162
163         PR libgfortran/28339
164         * io/transfer.c (next_record_w): Use next_array_record result to set
165         END_FILE. (write_block): Test for END_FILE before the next write occurs.
166         * io/unit.c (get_internal_unit): Initialize iunit->endfile for internal
167         unit.
168
169 2006-07-19  Janne Blomqvist  <jb@gcc.gnu.org>
170
171         PR fortran/27919
172         * m4/dotprodc.m4: Remove.
173         * m4/dotprodl.m4: Remove.
174         * m4/dotprod.m4: Remove.
175         * generated/dotprod_*.c: Remove.
176         * Makefile.am: Remove any references to dot_product
177         implementation.
178         * Makefile.in: Regenerated.
179         
180 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
181
182         * configure: Regenerate.
183
184 2006-07-15  Steven G. Kargl  <kargls@comcast.net>
185
186         * intrinsics/etime.c: Remove etime_
187         * libtool-version: Bump from libgfortran.so.1 to libgfortran.so.2
188
189 2006-07-12  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
190
191         PR fortran/28163
192         * intrinsics/string_intrinsics.c (copy_string): Remove function.
193
194 2006-07-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
195
196         * intrinsics/date_and_time.c (itime0,idate0,itime_i4,itime_i8,
197         idate_i4,idate_i8): New functions.
198
199 2006-07-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
200
201         PR libgfortran/27704
202         * runtime/error.c (notify_std): Pass common flags into function. Use
203         flags to show locus of error or warning.
204         * libgfortran.h: Add enum try.  Add prototype for notify_std.
205         * io/open.c (edit_modes): Allow status="old" and add extension to
206         allow status="scratch"
207         *io/list_read.c (nml_read_obj): Update call to notify_std.
208         *io/io.h: Remove enum try and prototype for notify_std.
209         *io/transfer.c (read_sf): Update call to notify_std.
210         *io/format.c (parse_format_list): Update call to notify_std.
211
212 2006-06-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
213
214         * io/io.h: Move proto for unit_to_fd...
215         * libgfortran.h: ...here.
216
217 2006-06-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
218
219         * intrinsics/ierrno.c: Don't include "io/io.h".
220         * intrinsics/sleep.c: Likewise.
221         * intrinsics/perror.c: Likewise.
222         * intrinsics/stat.c: Likewise.
223         * intrinsics/kill.c: Likewise.
224         * intrinsics/time.c: Likewise.
225         * intrinsics/fnum.c: Likewise.
226         * intrinsics/rename.c: Likewise.
227         * intrinsics/symlnk.c: Likewise.
228         * intrinsics/chdir.c: Likewise.
229         * intrinsics/link.c: Likewise.
230         * intrinsics/random.c: Don't include "io/io.h". Include <gthr.h>.
231         * intrinsics/rand.c: Likewise.
232
233 2006-06-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
234
235         PR fortran/28094
236         * Makefile.am: Add _mod_r10.F90 and _mod_r16.F90.
237         * Makefile.in: Regenerate.
238         * generated/_mod_r10.F90: New file.
239         * generated/_mod_r16.F90: New file.
240
241 2006-06-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
242
243         PR libfortran/26769
244         * Makefile.am: Add r4 and r8 versions of reshape and transpose.
245         * Makefile.in: Regenerate.
246         * generated/reshape_r4.c: New file.
247         * generated/reshape_r8.c: New file.
248         * generated/transpose_r4.c: New file.
249         * generated/transpose_r8.c: New file.
250
251 2006-06-20  Paul Thomas  <pault@gcc.gnu.org>
252
253         PR libfortran/28005
254         * m4/matmul.m4: aystride = 1 does not uniquely detect the
255         presence of a temporary transpose; an array element in the
256         first dimension produces the same signature.  Detect this
257         using the rank of a and add specific code.
258         * generated/matmul_r4.c: Regenerate.
259         * generated/matmul_r8.c: Regenerate.
260         * generated/matmul_r10.c: Regenerate.
261         * generated/matmul_r16.c: Regenerate.
262         * generated/matmul_c4.c: Regenerate.
263         * generated/matmul_c8.c: Regenerate.
264         * generated/matmul_c10.c: Regenerate.
265         * generated/matmul_c16.c: Regenerate.
266         * generated/matmul_i4.c: Regenerate.
267         * generated/matmul_i8.c: Regenerate.
268         * generated/matmul_i16.c: Regenerate.
269
270 2006-06-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
271
272         PR libgomp/27254
273         * io/unit.c (get_internal_unit): Initialize and lock thread mutex
274         for internal units.
275
276 2006-06-06  Janne Blomqvist  <jb@gcc.gnu.org>
277
278         * m4/in_pack.m4: Add TODO comment about detecting temporaries,
279         remove test for stride 0, update copyright year.
280         * m4/transpose.m4: Remove test for stride 0, update copyright
281         year.
282         * m4/iforeach.m4: Likewise.
283         * m4/shape.m4: Likewise.
284         * m4/in_unpack.m4: Likewise.
285         * m4/reshape.m4: Likewise.
286         * m4/ifunction.m4: Likewise.
287         * m4/matmul.m4: Likewise.
288         * m4/matmull.m4: Likewise.
289         * intrinsics/etime.c: Likewise.
290         * intrinsics/transpose_generic.c: Likewise.
291         * intrinsics/spread_generic.c: Likewise.
292         * intrinsics/stat.c: Likewise.
293         * intrinsics/reshape_generic.c: Likewise.
294         * intrinsics/random.c: Likewise.
295         * generated/*: Regenerated from above changed m4 files.
296         
297 2006-05-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
298
299         PR libgfortran/27757
300         * io/unix.c (fd_seek): Set active to zero.
301
302 2006-05-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
303
304         PR libgfortran/27634
305         * io/format.c (parse_format_list): Allow missing period in format only
306         if -std=legacy.
307
308 2006-05-28  Thomas Koenig  <Thomas.Koenig@online.de>
309
310         * intrinsics/string_intrinsics.c (compare_string):
311         Use memcmp instead of strncmp to avoid tripping over
312         CHAR(0) in a string.
313
314 2006-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
315
316         * io/io.h (find_or_create_unit): Correct export declaration.
317         
318 2006-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
319
320         * intrinsics/abort.c (abort_): Remove.
321
322 2006-05-26  Janne Blomqvist  <jb@gcc.gnu.org>
323
324         * configure.ac: Remove AC_FUNC_MMAP.
325         * configure: Regenerated.
326         * Makefile.in: Regenerated.
327         * config.h.in: Regenerated.
328         * aclocal.m4: Regenerated.
329
330 2006-05-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
331
332         * intrinsics/associated.c (associated): Zero-sized arrays should
333         not be reported as ASSOCIATED.
334
335 2006-05-24  Carlos O'Donell  <carlos@codesourcery.com>
336
337         * Makefile.am: Add install-html target. Add install-html to .PHONY
338         * Makefile.in: Regenerate.
339         * aclocal.m4: Regenerate.
340         
341 2006-05-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
342
343         PR libgfortran/24459
344         * io/list_read.c (nml_parse_qualifier): Leave loop spec end value
345         at default value unless -std=f95 or if an array section
346         is specified in namelist input.  Warn if -pedantic.
347         * io/io.h (st_parameter_dt): Add expanded_read flag.
348
349 2006-05-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
350
351         PR libgfortran/22423
352         * io/transfer.c (read_block): Return NULL instead of nothing.
353         
354 2006-05-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
355
356         PR libgfortran/27575
357         * io/transfer.c (read_block):  Add check for end file condition.
358         (read_block_direct): Add check for end file condition.
359
360 2006-05-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
361
362         PR libfortran/26985
363         * m4/matmul.m4: Correct the condition for the memset call,
364         and remove the unneeded call to size0.
365         * generated/matmul_r4.c: Regenerate.
366         * generated/matmul_r8.c: Regenerate.
367         * generated/matmul_r10.c: Regenerate.
368         * generated/matmul_r16.c: Regenerate.
369         * generated/matmul_c4.c: Regenerate.
370         * generated/matmul_c8.c: Regenerate.
371         * generated/matmul_c10.c: Regenerate.
372         * generated/matmul_c16.c: Regenerate.
373         * generated/matmul_i4.c: Regenerate.
374         * generated/matmul_i8.c: Regenerate.
375         * generated/matmul_i16.c: Regenerate.
376
377 2006-04-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
378
379         PR libgfortran/27360
380         * io/list_read.c (read_logical):  Free line_buffer and free saved.
381
382 2006-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
383
384         PR libgfortran/27304
385         * io/transfer.c (formatted_transfer_scalar):  Generate error if data
386         descriptors are exhausted.
387         * io/format.c (next_format0): Fix comment.
388
389 2006-04-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
390
391         PR libgfortran/20257
392         * io/io.h: Add prototypes for get_internal_unit and free_internal_unit.
393         * io/unit.c (get_internal_unit): Initialize unit number, not zero.
394         (free_internal_unit): New function to consolidate freeing memory.
395         (get_unit): Initialize internal_unit_desc to NULL when unit is
396         external.
397         * io/unix.c (mem_close): Check for not NULL before freeing memory.
398         * io/transfer.c (read_block): Reset bytes_left and skip error if unit
399         is preconnected and default record length is reached.
400         (read_block_direct): Ditto.
401         (write_block): Ditto.
402         (write_buf): Ditto.
403         (data_transfer_init): Only flush if not internal unit.
404         (finalize_transfer): Ditto and delete code to free memory used by
405         internal units.
406         (st_read_done): Use new function - free_internal_unit.
407         (st_write_done): Use new function - free_internal unit.
408
409 2006-04-22  Jakub Jelinek  <jakub@redhat.com>
410
411         PR fortran/26769
412         * Makefile.am (i_transpose_c): Add generated/transpose_r16.c.
413         (i_reshape_c): Add generated/reshape_r16.c.
414         * Makefile.in: Regenerated.
415         * generated/transpose_r16.c: Generated new file.
416         * generated/redhape_r16.c: Generated new file.
417
418 2006-04-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
419
420         PR libgfortran/27138
421         * io/list_read.c (eat_line): New function.
422         (parse_repeat): Use new function and free_saved.
423         (read_logical): Same.
424         (read_integer): Use new function.
425         (parse_real): Use nml_bad_return and new function.
426         (read_complex): Use new function and free_saved.
427         (read_real): Same.
428
429 2006-04-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
430
431         PR libgfortran/26766
432         * io/io.h: Add bit to identify associated unit as internal.
433         * io/unit.c (get_external_unit): Renamed the find_unit_1 function to
434         reflect the external unit functionality vs internal unit.
435         (get_internal_unit): New function to allocate and initialize an internal
436         unit structure.
437         (get_unit): Use get_internal_unit and get_external_unit.
438         (is_internal_unit): Revised to use new bit added in io.h.
439         * io/transfer.c (data_transfer_init): Fix line width.
440         (st_read_done): Free memory allocated for internal unit.
441         (st_write_done): Add test to only flush and truncate when not an
442         internal unit.  Free memory allocated for internal unit.
443
444 2006-04-11  Jakub Jelinek  <jakub@redhat.com>
445
446         * io/io.h (st_parameter_dt): Revert 2005-12-10 change to
447         u.pad, fix comment.
448         (check_st_parameter_dt): New compile time assert.
449
450 2006-04-10  Jakub Jelinek  <jakub@redhat.com>
451
452         PR libgfortran/24685
453         * io/write.c (MIN_FIELD_WIDTH, STR, STR1): Define.
454         (output_float): Increase buffer sizes for IEEE quad and IBM extended
455         long double.
456         (write_real): Output REAL(16) as 1PG43.34E4 rather than 1PG40.31E4.
457
458 2006-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
459
460         PR libgfortran/26890
461         * io/io.h: Revert change to pad size made on 2006-03-30.
462         Add comment explaining dependency with fortran/trans-io.c.
463         
464 2006-04-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
465
466         * io/write.c (output_float): Update condition to not error when
467         decimal precision in format specifier is zero.
468
469 2006-04-01  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
470
471         * config/fpu-387.h: Use previously added SSE code in all
472         cases, as it really is the right thing to do.
473
474 2006-03-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
475
476         PR libgfortran/26890
477         * io/io.h: Add size_used to st_parameter_dt, adjust pad size.
478         *io/transfer.c (data_transfer_init): Initialize size_used to zero.
479         (read_sf): Use size_used.
480         (read_block): Likewise.
481         (read_block_direct): Likewise.
482         (write_block): Likewise.
483         (write_buf): Likewise and eliminate erroneous FAILURE return.
484         (finalize_transfer): Assign value of size_used to *dtp->size.
485
486 2006-03-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
487
488         PR libfortran/26712
489         * config/fpu-387.h: Add special case for handling of SSE
490         control bit on i386-darwin.
491
492 2006-03-30  Thomas Koenig  <Thomas.Koenig@online.de>
493
494         PR fortran/25031
495         * runtime/memory.c (allocate_array):  If stat is present and
496         the variable is already allocated, free the variable, do
497         the allocation and set stat.
498         (allocate_array_64):  Likewise.  Whitespace fix.
499
500 2006-03-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
501
502         PR libgfortran/26880
503         * io/file_pos.c (st_rewind): Clear read_bad flag.
504
505 2006-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
506
507         PR libgfortran/26661
508         * io/io.h: Add read_sf so it can be used by read_x.
509         * io/transfer.c (read_sf): Pass no_error flag to read_sf.  Use it to
510         break out rather than error on EOF or EOR conditions.
511         (read_block): Update call to read_sf.
512         (read_block_direct): Ditto.
513         * io/read.c (read_x): Use the modified read_sf instead of read_block.
514
515 2006-03-25  Thomas Koenig  <Thomas.Koenig@online.de>
516
517         PR libfortran/26735
518         * io/transfer.c (data_transfer_init):  Set u_flags.convert
519         on an unopened unit if specified by environment variable
520         (via get_unformatted_convert) or by compile-time option.
521
522 2006-03-25  Thomas Koenig  <Thomas.Koenig@online.de>
523
524         PR fortran/26769
525         * Makefile.am:  Add transpose_r10.c and reshape_r10.c.
526         * aclocal.m4:  Regenerate using aclocal 1.9.3.
527         * Makefile.in:  Regenerate using automake 1.9.3.
528         * m4/iparm.m4 (rtype_ccode):  If rtype_letter is `i',
529         evaluate to rtype_kind, otherwise to rtype_code.
530         * generated/transpose_r10.c:  Add.
531         * generated/reshape_r10.c:  Add.
532
533 2006-03-22  Thomas Koenig  <Thomas.Koenig@online.de>
534
535         PR fortran/19303
536         * libgfortran.h (compile_options_t):  Add record_marker.
537         * runtime/compile_options.c (set_record_marker):
538         New function.
539         * io/open.c:  If we have four-byte record markers, use
540         GFC_INTEGER_4_HUGE as default record length.
541         * io/file_pos.c (unformatted_backspace):  Handle
542         different size record markers.
543         * io/transfer.c (us_read):  Likewise.
544         (us_write):  Likewise.
545         (next_record_r):  Likewise.
546         (write_us_marker):  Likewise.
547         (next_record_w):  Likewise.
548
549 2006-03-20  Thomas Koenig  <Thomas.Koenig@online.de>
550
551         PR fortran/20935
552         * m4/iforeach.m4:  Add SCALAR_FOREACH_FUNCTION macro.
553         * m4/ifunction.m4:  Add SCALAR_ARRAY_FUNCTION macro.
554         * m4/minloc0.m4:  Use SCALAR_FOREACH_FUNCTION.
555         * m4/minloc1.m4:  Use SCALAR_ARRAY_FUNCTION.
556         * m4/maxloc0.m4:  Use SCALAR_FOREACH_FUNCTION.
557         * m4/maxloc1.m4:  Use SCALAR_ARRAY_FUNCTION.
558         * m4/minval.m4:  Likewise.
559         * m4/maxval.m4:  Likewise.
560         * m4/product.m4:  Likewise.
561         * m4/sum.m4:  Likewise.
562         * minloc0_16_i16.c : Regenerated.
563         * minloc0_16_i4.c : Regenerated.
564         * minloc0_16_i8.c : Regenerated.
565         * minloc0_16_r10.c : Regenerated.
566         * minloc0_16_r16.c : Regenerated.
567         * minloc0_16_r4.c : Regenerated.
568         * minloc0_16_r8.c : Regenerated.
569         * minloc0_4_i16.c : Regenerated.
570         * minloc0_4_i4.c : Regenerated.
571         * minloc0_4_i8.c : Regenerated.
572         * minloc0_4_r10.c : Regenerated.
573         * minloc0_4_r16.c : Regenerated.
574         * minloc0_4_r4.c : Regenerated.
575         * minloc0_4_r8.c : Regenerated.
576         * minloc0_8_i16.c : Regenerated.
577         * minloc0_8_i4.c : Regenerated.
578         * minloc0_8_i8.c : Regenerated.
579         * minloc0_8_r10.c : Regenerated.
580         * minloc0_8_r16.c : Regenerated.
581         * minloc0_8_r4.c : Regenerated.
582         * minloc0_8_r8.c : Regenerated.
583         * minloc1_16_i16.c : Regenerated.
584         * minloc1_16_i4.c : Regenerated.
585         * minloc1_16_i8.c : Regenerated.
586         * minloc1_16_r10.c : Regenerated.
587         * minloc1_16_r16.c : Regenerated.
588         * minloc1_16_r4.c : Regenerated.
589         * minloc1_16_r8.c : Regenerated.
590         * minloc1_4_i16.c : Regenerated.
591         * minloc1_4_i4.c : Regenerated.
592         * minloc1_4_i8.c : Regenerated.
593         * minloc1_4_r10.c : Regenerated.
594         * minloc1_4_r16.c : Regenerated.
595         * minloc1_4_r4.c : Regenerated.
596         * minloc1_4_r8.c : Regenerated.
597         * minloc1_8_i16.c : Regenerated.
598         * minloc1_8_i4.c : Regenerated.
599         * minloc1_8_i8.c : Regenerated.
600         * minloc1_8_r10.c : Regenerated.
601         * minloc1_8_r16.c : Regenerated.
602         * minloc1_8_r4.c : Regenerated.
603         * minloc1_8_r8.c : Regenerated.
604         * maxloc0_16_i16.c : Regenerated.
605         * maxloc0_16_i4.c : Regenerated.
606         * maxloc0_16_i8.c : Regenerated.
607         * maxloc0_16_r10.c : Regenerated.
608         * maxloc0_16_r16.c : Regenerated.
609         * maxloc0_16_r4.c : Regenerated.
610         * maxloc0_16_r8.c : Regenerated.
611         * maxloc0_4_i16.c : Regenerated.
612         * maxloc0_4_i4.c : Regenerated.
613         * maxloc0_4_i8.c : Regenerated.
614         * maxloc0_4_r10.c : Regenerated.
615         * maxloc0_4_r16.c : Regenerated.
616         * maxloc0_4_r4.c : Regenerated.
617         * maxloc0_4_r8.c : Regenerated.
618         * maxloc0_8_i16.c : Regenerated.
619         * maxloc0_8_i4.c : Regenerated.
620         * maxloc0_8_i8.c : Regenerated.
621         * maxloc0_8_r10.c : Regenerated.
622         * maxloc0_8_r16.c : Regenerated.
623         * maxloc0_8_r4.c : Regenerated.
624         * maxloc0_8_r8.c : Regenerated.
625         * maxloc1_16_i16.c : Regenerated.
626         * maxloc1_16_i4.c : Regenerated.
627         * maxloc1_16_i8.c : Regenerated.
628         * maxloc1_16_r10.c : Regenerated.
629         * maxloc1_16_r16.c : Regenerated.
630         * maxloc1_16_r4.c : Regenerated.
631         * maxloc1_16_r8.c : Regenerated.
632         * maxloc1_4_i16.c : Regenerated.
633         * maxloc1_4_i4.c : Regenerated.
634         * maxloc1_4_i8.c : Regenerated.
635         * maxloc1_4_r10.c : Regenerated.
636         * maxloc1_4_r16.c : Regenerated.
637         * maxloc1_4_r4.c : Regenerated.
638         * maxloc1_4_r8.c : Regenerated.
639         * maxloc1_8_i16.c : Regenerated.
640         * maxloc1_8_i4.c : Regenerated.
641         * maxloc1_8_i8.c : Regenerated.
642         * maxloc1_8_r10.c : Regenerated.
643         * maxloc1_8_r16.c : Regenerated.
644         * maxloc1_8_r4.c : Regenerated.
645         * maxloc1_8_r8.c : Regenerated.
646         * maxval_i16.c : Regenerated.
647         * maxval_i4.c : Regenerated.
648         * maxval_i8.c : Regenerated.
649         * maxval_r10.c : Regenerated.
650         * maxval_r16.c : Regenerated.
651         * maxval_r4.c : Regenerated.
652         * maxval_r8.c : Regenerated.
653         * minval_i16.c : Regenerated.
654         * minval_i4.c : Regenerated.
655         * minval_i8.c : Regenerated.
656         * minval_r10.c : Regenerated.
657         * minval_r16.c : Regenerated.
658         * minval_r4.c : Regenerated.
659         * minval_r8.c : Regenerated.
660         * sum_c10.c : Regenerated.
661         * sum_c16.c : Regenerated.
662         * sum_c4.c : Regenerated.
663         * sum_c8.c : Regenerated.
664         * sum_i16.c : Regenerated.
665         * sum_i4.c : Regenerated.
666         * sum_i8.c : Regenerated.
667         * sum_r10.c : Regenerated.
668         * sum_r16.c : Regenerated.
669         * sum_r4.c : Regenerated.
670         * sum_r8.c : Regenerated.
671         * product_c10.c : Regenerated.
672         * product_c16.c : Regenerated.
673         * product_c4.c : Regenerated.
674         * product_c8.c : Regenerated.
675         * product_i16.c : Regenerated.
676         * product_i4.c : Regenerated.
677         * product_i8.c : Regenerated.
678         * product_r10.c : Regenerated.
679         * product_r16.c : Regenerated.
680         * product_r4.c : Regenerated.
681         * product_r8.c : Regenerated.
682
683 2006-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
684
685         PR libgfortran/26509
686         * libgfortran.h: Add ERROR_DIRECT_EOR.
687         * runtime/error.c (translate_error): Add translation for new error.
688         * io/transfer.c (write_buf): Add check for EOR when mode is 
689         direct access.
690
691 2006-03-13  Paul Thomas  <pault@gcc.gnu.org>
692
693         PR fortran/25378
694         * libgfortran/m4/minloc1.m4: Set the initial position to zero and
695         modify the condition for updating it, to implement the F2003
696         requirement for all(mask).eq.false.
697         * libgfortran/m4/maxloc1.m4: The same.
698         * libgfortran/m4/iforeach.m4: The same.
699         * libgfortran/m4/minloc0.m4: The same.
700         * libgfortran/m4/maxloc0.m4: The same.
701         * libgfortran/generated/maxloc0_16_i16.c: Regenerated, together
702         with 41 others.
703         * libgfortran/generated/minloc0_16_i16.c: Regenerated, together
704         with 41 others.
705
706 2006-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
707
708         PR libgfortran/26499
709         * io/file_pos (st_rewind): Flush always.
710         * io/unix.c (fd_truncate): Return SUCCESS rather than FAILURE for
711         special files like /dev/null.
712         * io/transfer.c (st_write_done): Remove broken logic that
713         prevented calling fd_truncate.
714
715 2006-03-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
716
717         PR libgfortran/26554
718         * io/list_read.c (read_logical): Return the value if not in namelist
719         mode.
720
721 2006-03-03  Thomas Koenig  <Thomas.Koenig@online.de>
722
723         PR fortran/25031
724         * runtime/memory.c:  Adjust copyright years.
725         (allocate_array):  New function.
726         (allocate64_array):  New function.
727         * libgfortran.h (error_codes):  Add ERROR_ALLOCATION.
728
729 2006-02-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
730
731         PR libgfortran/26136
732         * io/io.h: Add flag for reading from line_buffer.
733         * io/list_read.c (l_push_char): New function to save namelist
734         input when reading logicals.
735         (free_line): New function to free line_buffer memory.
736         (next_char): Added feature to read from line_buffer.
737         (read_logical): Use new functions to test for '=' after reading a
738         logical value, checking for possible variable name.
739         (namelist_read): Use free_line when all done.
740
741 2006-02-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
742
743         PR libgfortran/26464
744         * io/file_pos.c (st_backspace): Flush and truncate file
745         when in AFTER_ENDFILE condition.
746         * io/transfer.c (st_read_done): Remove flush, no longer needed.
747
748 2006-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
749
750         PR libgfortran/26423
751         * io/unix.c (fd_seek): Revert change from 25949.
752         (fd_read): Same.
753         (fd_write): Same.
754
755 2006-02-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
756
757         * io/open.c (edit_modes): Correct abusive copy-pasting.
758
759 2006-02-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
760
761         PR libfortran/24903
762         * m4/dotprodc.m4: Use __builtin_conj instead of assigning real
763         and imaginary parts separately.
764         * generated/dotprod_c4.c: Regenerated.
765         * generated/dotprod_c8.c: Regenerated.
766         * generated/dotprod_c10.c: Regenerated.
767         * generated/dotprod_c16.c: Regenerated.
768
769 2006-02-12  Janne Blomqvist  <jb@gcc.gnu.org>
770
771         PR libgfortran/25949
772         * io/io.h: Add set function pointer to struct stream.  
773         * io/unix.c (fd_seek): Only update offset, don't seek.
774         (fd_sset): New function.
775         (fd_read): Call lseek directly if necessary.
776         (fd_write): Likewise.
777         (fd_open): Set pointer to fd_sset.
778         (mem_set): New function.
779         (open_internal): Set pointer to mem_set.
780         * io/transfer.c (write_block_direct): Rename to write_buf, add
781         error return, non-pointer length argument.
782         (unformatted_write): Update to use write_buf.
783         (us_write): Simplify by using swrite instead of salloc_w.
784         (write_us_marker): New function.
785         (new_record_w): Use sset instead of memset, use write_us_marker,
786         simplify by using swrite instead of salloc_w.
787
788 2006-02-08  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
789
790         PR libfortran/25425
791         * libgfortran.h: Add pedantic field to compile_options struct.
792         * io/write.c (calculate_G_format): Depending on the standard,
793         choose E or F format for list-directed output of 0.0.
794         * runtime/error.c (notify_std): Make warning and error dependent
795         on pedanticity.
796         * runtime/compile_options.c (set_std): Use new pedantic argument.
797
798 2006-02-07  Dale Ranta  <dir@lanl.gov>
799
800         PR fortran/25577
801         * intrinsics/mvbits.c: Shift '(TYPE)1' type when building 'lenmask'.
802
803 2006-02-07  Rainer Emrich <r.emrich@de.tecosim.com>
804
805         * intrinsics/c99_functions.c: Work around incompatible
806         declarations of cabs{,f,l} on pre-C99 IRIX systems.
807
808 2005-02-06  Thomas Koenig  <Thomas.Koenig@online.de>
809
810         PR libfortran/23815
811         * runtime/environ.c (init_unformatted):  Add GFORTRAN_CONVERT_UNIT
812         environment variable.
813         (top level):  Add defines, type and static variables for
814         GFORTRAN_CONVERT_UNIT handling.
815         (search_unit):  New function.
816         (match_word): New function.
817         (match_integer): New function.
818         (next_token): New function.
819         (push_token): New function.
820         (mark_single): New function.
821         (mark_range): New funciton.
822         (do_parse): New function.
823         (init_unformatted): New function.
824         (get_unformatted_convert): New function.
825         * runtime/compile_options.c:  Add set_convert().
826         * libgfortran.h:  Add convert to compile_options_t.
827         * io/open.c (st_open): Call get_unformatted_convert to get
828         unit default; if CONVERT_NONE is returned, check for
829         the presence of a CONVERT specifier and use it.
830         As default, use compile_options.convert.
831         * io/io.h (top level): Add CONVERT_NONE to unit_convert, to signal
832         "nothing has been set".
833         (top level): Add prototype for get_unformatted_convert.
834
835 2006-02-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
836
837         PR libfortran/24685
838         * io/write.c (write_real): Widen the default format for real(10)
839         variables output.
840
841 2006-01-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
842
843         PR libgfortran/25835
844         * io/transfer.c (st_read_done): Flush buffers when read is done.
845
846 2006-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
847
848         PR libgfortran/25697
849         * io/transfer.c (us_read): Detect end of file condition from previous
850         operations and bail out (no need to pre-position).
851
852 2006-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
853
854         PR libgfortran/25631
855         * io/transfer.c (formatted_transfer_scalar): Adjust pending_spaces and
856         skips so that TL works correctly when no bytes_used yet.  
857
858 2006-01-16  Roger Sayle  <roger@eyesopen.com>
859
860         * configure.ac (CFLAGS): Update to include -std=gnu99 so that
861         the configure tests will be run with the same environment as
862         used to compile the libgfortran source code.
863         * configure: Regenerate.
864
865 2006-01-12  Roger Sayle  <roger@eyesopen.com>
866
867         * intrinsics/c99_functions.c: Add function prototypes to avoid
868         warnings from -Wstrict-prototypes -Wmissing-prototypes.  On Tru64
869         work around a brain-dead libm by redirecting calls to cabs{,f,l}
870         to a local __gfc_cabs{,f,l}.
871
872 2006-01-07  Janne Blomqvist  <jb@gcc.gnu.org>
873
874         * configure.ac: Remove check for sys/mman.h.
875         * configure: Regenerated.
876         * Makefile.in: Regenerated.
877         * config.h.in: Regenerated.
878         * aclocal.m4: Regenerated.
879         
880 2006-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
881
882         PR libgfortran/25598
883         * io/file_pos.c (unformatted_backspace): Assure the new file position
884         to seek is not less than zero.
885         (st_backspace): Set unit bytes_left to zero.
886         * io/transfer.c (next_record_r): Fix line lengths, no functional change.
887
888 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
889
890         PR target/25259
891         * configure.ac: Use GCC_HEADER_STDINT.
892         * libgfortran.h: Include gstdint.h.
893         * aclocal.m4: Regenerate.
894         * configure: Regenerate.
895
896 2006-01-01  Steven G. Kargl  <kargls@comcast.net>
897
898         * ChangeLog: Split into years ...
899         * ChangeLog-2002: here.
900         * ChangeLog-2003: here.
901         * ChangeLog-2004: here.
902         * ChangeLog-2005: here.