OSDN Git Service

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