OSDN Git Service

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