OSDN Git Service

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