OSDN Git Service

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