OSDN Git Service

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