OSDN Git Service

2006-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2006-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2
3         PR libgfortran/26509
4         * libgfortran.h: Add ERROR_DIRECT_EOR.
5         * runtime/error.c (translate_error): Add translation for new error.
6         * io/transfer.c (write_buf): Add check for EOR when mode is 
7         direct access.
8
9 2006-03-13  Paul Thomas  <pault@gcc.gnu.org>
10
11         PR fortran/25378
12         * libgfortran/m4/minloc1.m4: Set the initial position to zero and
13         modify the condition for updating it, to implement the F2003
14         requirement for all(mask).eq.false.
15         * libgfortran/m4/maxloc1.m4: The same.
16         * libgfortran/m4/iforeach.m4: The same.
17         * libgfortran/m4/minloc0.m4: The same.
18         * libgfortran/m4/maxloc0.m4: The same.
19         * libgfortran/generated/maxloc0_16_i16.c: Regenerated, together
20         with 41 others.
21         * libgfortran/generated/minloc0_16_i16.c: Regenerated, together
22         with 41 others.
23
24 2006-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
25
26         PR libgfortran/26499
27         * io/file_pos (st_rewind): Flush always.
28         * io/unix.c (fd_truncate): Return SUCCESS rather than FAILURE for
29         special files like /dev/null.
30         * io/transfer.c (st_write_done): Remove broken logic that
31         prevented calling fd_truncate.
32
33 2006-03-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
34
35         PR libgfortran/26554
36         * io/list_read.c (read_logical): Return the value if not in namelist
37         mode.
38
39 2006-03-03  Thomas Koenig  <Thomas.Koenig@online.de>
40
41         PR fortran/25031
42         * runtime/memory.c:  Adjust copyright years.
43         (allocate_array):  New function.
44         (allocate64_array):  New function.
45         * libgfortran.h (error_codes):  Add ERROR_ALLOCATION.
46
47 2006-02-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
48
49         PR libgfortran/26136
50         * io/io.h: Add flag for reading from line_buffer.
51         * io/list_read.c (l_push_char): New function to save namelist
52         input when reading logicals.
53         (free_line): New function to free line_buffer memory.
54         (next_char): Added feature to read from line_buffer.
55         (read_logical): Use new functions to test for '=' after reading a
56         logical value, checking for possible variable name.
57         (namelist_read): Use free_line when all done.
58
59 2006-02-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
60
61         PR libgfortran/26464
62         * io/file_pos.c (st_backspace): Flush and truncate file
63         when in AFTER_ENDFILE condition.
64         * io/transfer.c (st_read_done): Remove flush, no longer needed.
65
66 2006-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
67
68         PR libgfortran/26423
69         * io/unix.c (fd_seek): Revert change from 25949.
70         (fd_read): Same.
71         (fd_write): Same.
72
73 2006-02-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
74
75         * io/open.c (edit_modes): Correct abusive copy-pasting.
76
77 2006-02-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
78
79         PR libfortran/24903
80         * m4/dotprodc.m4: Use __builtin_conj instead of assigning real
81         and imaginary parts separately.
82         * generated/dotprod_c4.c: Regenerated.
83         * generated/dotprod_c8.c: Regenerated.
84         * generated/dotprod_c10.c: Regenerated.
85         * generated/dotprod_c16.c: Regenerated.
86
87 2006-02-12  Janne Blomqvist  <jb@gcc.gnu.org>
88
89         PR libgfortran/25949
90         * io/io.h: Add set function pointer to struct stream.  
91         * io/unix.c (fd_seek): Only update offset, don't seek.
92         (fd_sset): New function.
93         (fd_read): Call lseek directly if necessary.
94         (fd_write): Likewise.
95         (fd_open): Set pointer to fd_sset.
96         (mem_set): New function.
97         (open_internal): Set pointer to mem_set.
98         * io/transfer.c (write_block_direct): Rename to write_buf, add
99         error return, non-pointer length argument.
100         (unformatted_write): Update to use write_buf.
101         (us_write): Simplify by using swrite instead of salloc_w.
102         (write_us_marker): New function.
103         (new_record_w): Use sset instead of memset, use write_us_marker,
104         simplify by using swrite instead of salloc_w.
105
106 2006-02-08  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
107
108         PR libfortran/25425
109         * libgfortran.h: Add pedantic field to compile_options struct.
110         * io/write.c (calculate_G_format): Depending on the standard,
111         choose E or F format for list-directed output of 0.0.
112         * runtime/error.c (notify_std): Make warning and error dependent
113         on pedanticity.
114         * runtime/compile_options.c (set_std): Use new pedantic argument.
115
116 2006-02-07  Dale Ranta  <dir@lanl.gov>
117
118         PR fortran/25577
119         * intrinsics/mvbits.c: Shift '(TYPE)1' type when building 'lenmask'.
120
121 2006-02-07  Rainer Emrich <r.emrich@de.tecosim.com>
122
123         * intrinsics/c99_functions.c: Work around incompatible
124         declarations of cabs{,f,l} on pre-C99 IRIX systems.
125
126 2005-02-06  Thomas Koenig  <Thomas.Koenig@online.de>
127
128         PR libfortran/23815
129         * runtime/environ.c (init_unformatted):  Add GFORTRAN_CONVERT_UNIT
130         environment variable.
131         (top level):  Add defines, type and static variables for
132         GFORTRAN_CONVERT_UNIT handling.
133         (search_unit):  New function.
134         (match_word): New function.
135         (match_integer): New function.
136         (next_token): New function.
137         (push_token): New function.
138         (mark_single): New function.
139         (mark_range): New funciton.
140         (do_parse): New function.
141         (init_unformatted): New function.
142         (get_unformatted_convert): New function.
143         * runtime/compile_options.c:  Add set_convert().
144         * libgfortran.h:  Add convert to compile_options_t.
145         * io/open.c (st_open): Call get_unformatted_convert to get
146         unit default; if CONVERT_NONE is returned, check for
147         the presence of a CONVERT specifier and use it.
148         As default, use compile_options.convert.
149         * io/io.h (top level): Add CONVERT_NONE to unit_convert, to signal
150         "nothing has been set".
151         (top level): Add prototype for get_unformatted_convert.
152
153 2006-02-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
154
155         PR libfortran/24685
156         * io/write.c (write_real): Widen the default format for real(10)
157         variables output.
158
159 2006-01-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
160
161         PR libgfortran/25835
162         * io/transfer.c (st_read_done): Flush buffers when read is done.
163
164 2006-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
165
166         PR libgfortran/25697
167         * io/transfer.c (us_read): Detect end of file condition from previous
168         operations and bail out (no need to pre-position).
169
170 2006-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
171
172         PR libgfortran/25631
173         * io/transfer.c (formatted_transfer_scalar): Adjust pending_spaces and
174         skips so that TL works correctly when no bytes_used yet.  
175
176 2006-01-16  Roger Sayle  <roger@eyesopen.com>
177
178         * configure.ac (CFLAGS): Update to include -std=gnu99 so that
179         the configure tests will be run with the same environment as
180         used to compile the libgfortran source code.
181         * configure: Regenerate.
182
183 2006-01-12  Roger Sayle  <roger@eyesopen.com>
184
185         * intrinsics/c99_functions.c: Add function prototypes to avoid
186         warnings from -Wstrict-prototypes -Wmissing-prototypes.  On Tru64
187         work around a brain-dead libm by redirecting calls to cabs{,f,l}
188         to a local __gfc_cabs{,f,l}.
189
190 2006-01-07  Janne Blomqvist  <jb@gcc.gnu.org>
191
192         * configure.ac: Remove check for sys/mman.h.
193         * configure: Regenerated.
194         * Makefile.in: Regenerated.
195         * config.h.in: Regenerated.
196         * aclocal.m4: Regenerated.
197         
198 2006-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
199
200         PR libgfortran/25598
201         * io/file_pos.c (unformatted_backspace): Assure the new file position
202         to seek is not less than zero.
203         (st_backspace): Set unit bytes_left to zero.
204         * io/transfer.c (next_record_r): Fix line lengths, no functional change.
205
206 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
207
208         PR target/25259
209         * configure.ac: Use GCC_HEADER_STDINT.
210         * libgfortran.h: Include gstdint.h.
211         * aclocal.m4: Regenerate.
212         * configure: Regenerate.
213
214 2006-01-01  Steven G. Kargl  <kargls@comcast.net>
215
216         * ChangeLog: Split into years ...
217         * ChangeLog-2002: here.
218         * ChangeLog-2003: here.
219         * ChangeLog-2004: here.
220         * ChangeLog-2005: here.