OSDN Git Service

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