1 2006-10-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3 * configure: Regenerate.
4 * Makefile.in: Regenerate.
5 * aclocal.m4: Regenerate.
7 2006-10-28 Tobias Burnus <burnus@net-b.de>
10 * io/transfer.c (formatted_transfer_scalar): Allow binary edit
11 descriptors for real variables; give error for BOZ edit
12 descriptor for non-integers when using -std=f*.
14 2006-10-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
17 * io/list_read.c (next_char): Fix an error in previous commit.
19 2006-10-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
22 * io/io.h (st_parameter_dt): Add new flag at_eof.
23 * io/list_read.c (next_char): Set flag when EOF and return '\n' to
24 signal EOR. Check flag on next call and jump out.
25 * io/unit.c (get_internal_unit): Initialize new flag.
27 2006-10-22 Francois-Xavier Coudert <coudert@clipper.ens.fr>
30 * m4/matmul.m4: Add possible call to gemm routine.
31 * generated/matmul_r8.c: Regenerate.
32 * generated/matmul_r16.c: Regenerate.
33 * generated/matmul_c8.c: Regenerate.
34 * generated/matmul_i8.c: Regenerate.
35 * generated/matmul_c16.c: Regenerate.
36 * generated/matmul_r10.c: Regenerate.
37 * generated/matmul_r4.c: Regenerate.
38 * generated/matmul_c10.c: Regenerate.
39 * generated/matmul_c4.c: Regenerate.
40 * generated/matmul_i4.c: Regenerate.
41 * generated/matmul_i16.c: Regenerate.
43 2006-10-21 Steven G. Kargl <kargl@gcc.gnu.org>
45 * runtime/error.c: Add errno.h
46 (generate_error): Set iostat to errno on OS error.
47 * libgfortran.h: Set ERROR_OS to 5000
49 2006-10-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
51 * generated/minval_r8.c: Regenerate.
52 * generated/maxloc1_4_r8.c: Regenerate.
53 * generated/minloc1_16_r16.c: Regenerate.
54 * generated/sum_i8.c: Regenerate.
55 * generated/eoshift3_4.c: Regenerate.
56 * generated/any_l16.c: Regenerate.
57 * generated/eoshift1_8.c: Regenerate.
58 * generated/reshape_r16.c: Regenerate.
59 * generated/product_r4.c: Regenerate.
60 * generated/maxloc1_8_i4.c: Regenerate.
61 * generated/maxloc0_4_r4.c: Regenerate.
62 * generated/in_unpack_i8.c: Regenerate.
63 * generated/minloc0_4_r16.c: Regenerate.
64 * generated/reshape_c4.c: Regenerate.
65 * generated/maxloc0_4_r16.c: Regenerate.
66 * generated/minloc1_8_r16.c: Regenerate.
67 * generated/maxloc1_8_r16.c: Regenerate.
68 * generated/in_unpack_i16.c: Regenerate.
69 * generated/maxloc0_8_i8.c: Regenerate.
70 * generated/sum_r16.c: Regenerate.
71 * generated/minloc1_4_r8.c: Regenerate.
72 * generated/maxloc1_16_r16.c: Regenerate.
73 * generated/minloc1_16_i4.c: Regenerate.
74 * generated/maxloc1_16_i4.c: Regenerate.
75 * generated/minloc0_16_i8.c: Regenerate.
76 * generated/maxloc0_16_i8.c: Regenerate.
77 * generated/maxval_r16.c: Regenerate.
78 * generated/count_16_l16.c: Regenerate.
79 * generated/count_8_l8.c: Regenerate.
80 * generated/product_c10.c: Regenerate.
81 * generated/minloc1_8_i4.c: Regenerate.
82 * generated/minloc0_16_i16.c: Regenerate.
83 * generated/eoshift1_16.c: Regenerate.
84 * generated/minloc0_4_r4.c: Regenerate.
85 * generated/product_c4.c: Regenerate.
86 * generated/sum_r4.c: Regenerate.
87 * generated/in_pack_c16.c: Regenerate.
88 * generated/reshape_i4.c: Regenerate.
89 * generated/minloc0_8_i8.c: Regenerate.
90 * generated/minloc1_16_r10.c: Regenerate.
91 * generated/in_pack_c4.c: Regenerate.
92 * generated/all_l16.c: Regenerate.
93 * generated/reshape_c16.c: Regenerate.
94 * generated/maxloc1_8_r8.c: Regenerate.
95 * generated/minval_i16.c: Regenerate.
96 * generated/reshape_r10.c: Regenerate.
97 * generated/maxval_i4.c: Regenerate.
98 * generated/any_l4.c: Regenerate.
99 * generated/minval_i8.c: Regenerate.
100 * generated/maxloc1_4_i8.c: Regenerate.
101 * generated/maxloc0_16_i16.c: Regenerate.
102 * generated/maxloc0_8_r4.c: Regenerate.
103 * generated/minloc1_4_i16.c: Regenerate.
104 * generated/minloc0_4_r10.c: Regenerate.
105 * generated/maxloc1_4_i16.c: Regenerate.
106 * generated/minloc0_8_i16.c: Regenerate.
107 * generated/maxloc0_4_r10.c: Regenerate.
108 * generated/maxloc0_8_i16.c: Regenerate.
109 * generated/minloc1_8_r10.c: Regenerate.
110 * generated/product_i4.c: Regenerate.
111 * generated/minloc0_16_r4.c: Regenerate.
112 * generated/sum_c16.c: Regenerate.
113 * generated/maxloc1_8_r10.c: Regenerate.
114 * generated/maxloc0_16_r4.c: Regenerate.
115 * generated/minloc1_16_r8.c: Regenerate.
116 * generated/maxloc0_4_i4.c: Regenerate.
117 * generated/maxloc1_16_r8.c: Regenerate.
118 * generated/cshift1_4.c: Regenerate.
119 * generated/sum_r10.c: Regenerate.
120 * generated/sum_c4.c: Regenerate.
121 * generated/maxloc1_16_r10.c: Regenerate.
122 * generated/count_4_l16.c: Regenerate.
123 * generated/in_pack_i4.c: Regenerate.
124 * generated/minloc1_8_r8.c: Regenerate.
125 * generated/count_4_l4.c: Regenerate.
126 * generated/maxval_r10.c: Regenerate.
127 * generated/minloc1_4_i8.c: Regenerate.
128 * generated/in_unpack_c4.c: Regenerate.
129 * generated/minloc0_8_r4.c: Regenerate.
130 * generated/product_i16.c: Regenerate.
131 * generated/minloc0_16_r16.c: Regenerate.
132 * generated/reshape_r8.c: Regenerate.
133 * generated/all_l4.c: Regenerate.
134 * generated/in_pack_c10.c: Regenerate.
135 * generated/minloc0_4_i4.c: Regenerate.
136 * generated/reshape_c10.c: Regenerate.
137 * generated/minval_r4.c: Regenerate.
138 * generated/maxloc1_4_r4.c: Regenerate.
139 * generated/sum_i4.c: Regenerate.
140 * generated/count_16_l8.c: Regenerate.
141 * generated/maxval_r8.c: Regenerate.
142 * generated/eoshift1_4.c: Regenerate.
143 * generated/eoshift3_8.c: Regenerate.
144 * generated/minval_r16.c: Regenerate.
145 * generated/product_r8.c: Regenerate.
146 * generated/maxloc1_8_i8.c: Regenerate.
147 * generated/maxloc0_4_r8.c: Regenerate.
148 * generated/maxloc0_16_r16.c: Regenerate.
149 * generated/in_unpack_i4.c: Regenerate.
150 * generated/sum_c10.c: Regenerate.
151 * generated/minloc1_4_r16.c: Regenerate.
152 * generated/maxloc1_4_r16.c: Regenerate.
153 * generated/in_unpack_c16.c: Regenerate.
154 * generated/minloc0_8_r16.c: Regenerate.
155 * generated/reshape_c8.c: Regenerate.
156 * generated/maxloc0_8_r16.c: Regenerate.
157 * generated/maxloc0_8_i4.c: Regenerate.
158 * generated/minloc1_4_r4.c: Regenerate.
159 * generated/minloc0_16_i4.c: Regenerate.
160 * generated/maxloc0_16_i4.c: Regenerate.
161 * generated/minloc1_16_i8.c: Regenerate.
162 * generated/maxloc1_16_i8.c: Regenerate.
163 * generated/count_8_l4.c: Regenerate.
164 * generated/minloc0_16_r10.c: Regenerate.
165 * generated/minloc1_8_i8.c: Regenerate.
166 * generated/minloc0_4_r8.c: Regenerate.
167 * generated/product_r16.c: Regenerate.
168 * generated/product_c8.c: Regenerate.
169 * generated/sum_r8.c: Regenerate.
170 * generated/in_pack_i16.c: Regenerate.
171 * generated/minloc0_8_i4.c: Regenerate.
172 * generated/minloc1_16_i16.c: Regenerate.
173 * generated/reshape_i8.c: Regenerate.
174 * generated/in_pack_c8.c: Regenerate.
175 * generated/maxloc1_8_r4.c: Regenerate.
176 * generated/reshape_i16.c: Regenerate.
177 * generated/minval_r10.c: Regenerate.
178 * generated/minval_i4.c: Regenerate.
179 * generated/maxloc1_4_i4.c: Regenerate.
180 * generated/maxval_i8.c: Regenerate.
181 * generated/eoshift3_16.c: Regenerate.
182 * generated/any_l8.c: Regenerate.
183 * generated/maxloc0_16_r10.c: Regenerate.
184 * generated/minloc0_4_i16.c: Regenerate.
185 * generated/maxloc0_8_r8.c: Regenerate.
186 * generated/maxloc0_4_i16.c: Regenerate.
187 * generated/minloc1_4_r10.c: Regenerate.
188 * generated/minloc1_8_i16.c: Regenerate.
189 * generated/maxloc1_4_r10.c: Regenerate.
190 * generated/minloc0_8_r10.c: Regenerate.
191 * generated/maxloc1_8_i16.c: Regenerate.
192 * generated/in_unpack_c10.c: Regenerate.
193 * generated/maxloc0_8_r10.c: Regenerate.
194 * generated/minloc1_16_r4.c: Regenerate.
195 * generated/maxloc1_16_r4.c: Regenerate.
196 * generated/minloc0_16_r8.c: Regenerate.
197 * generated/product_i8.c: Regenerate.
198 * generated/maxloc0_16_r8.c: Regenerate.
199 * generated/sum_i16.c: Regenerate.
200 * generated/maxloc0_4_i8.c: Regenerate.
201 * generated/cshift1_8.c: Regenerate.
202 * generated/maxloc1_16_i16.c: Regenerate.
203 * generated/minloc1_8_r4.c: Regenerate.
204 * generated/sum_c8.c: Regenerate.
205 * generated/count_8_l16.c: Regenerate.
206 * generated/in_pack_i8.c: Regenerate.
207 * generated/maxval_i16.c: Regenerate.
208 * generated/count_4_l8.c: Regenerate.
209 * generated/minloc1_4_i4.c: Regenerate.
210 * generated/product_c16.c: Regenerate.
211 * generated/reshape_r4.c: Regenerate.
212 * generated/minloc0_8_r8.c: Regenerate.
213 * generated/in_unpack_c8.c: Regenerate.
214 * generated/product_r10.c: Regenerate.
215 * generated/cshift1_16.c: Regenerate.
216 * generated/all_l8.c: Regenerate.
217 * generated/minloc0_4_i8.c: Regenerate.
218 * generated/maxval_r4.c: Regenerate.
219 * generated/count_16_l4.c: Regenerate.
221 2006-10-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
224 * intrinsics/cshift0.c: Special cases for zero-sized arrays.
225 * intrinsics/pack_generic.c: Likewise.
226 * intrinsics/spread_generic.c: Likewise.
228 2006-10-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
231 * io/write.c (write_a): Add conversion of LF to CR-LF for systems with
234 2006-10-18 Tobias Burnus <burnus@net-b.de>
236 * m4/in_pack.m4: Fixed a typo.
237 * m4/iforeach.m4: Fixed a typo.
238 * m4/eoshift1.m4: Fixed a typo.
239 * m4/eoshift3.m4: Fixed a typo.
240 * m4/cshift1.m4: Fixed a typo.
241 * m4/in_unpack.m4: Fixed a typo.
242 * m4/reshape.m4: Fixed a typo.
243 * m4/ifunction.m4: Fixed a typo.
244 * runtime/environ.c: Fixed a typo.
245 * runtime/in_pack_generic.c: Fixed a typo.
246 * runtime/in_unpack_generic.c: Fixed a typo.
247 * runtime/memory.c: Fixed a typo.
248 * intrinsics/cshift0.c: Fixed a typo.
249 * intrinsics/cpu_time.c: Fixed a typo.
250 * intrinsics/pack_generic.c: Fixed a typo.
251 * intrinsics/unpack_generic.c: Fixed a typo.
252 * intrinsics/eoshift0.c: Fixed a typo.
253 * intrinsics/eoshift2.c: Fixed a typo.
254 * intrinsics/reshape_generic.c: Fixed a typo.
255 * io/open.c: Fixed a typo.
256 * io/list_read.c: Fixed a typo.
257 * io/io.h: Fixed a typo.
258 * io/transfer.c: Fixed a typo.
259 * io/write.c: Fixed a typo.
261 2006-10-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
264 * io/list_read.c (next_char): Update strm_pos.
265 (eat_separator): Delete extra call to unget_char.
266 * io/transfer.c (read_block): Use read_sf for formatted stream I/O.
267 (next_record_r): Update strm_pos for formatted stream I/O and handle
268 end-of-record correctly.
269 (next_record_w): Ditto.
270 (next_record): Enable next record (r/w) functions and update strm_pos.
271 (finalize_transfer): Call next_record to finish the record.
273 2006-10-13 Steven G. Kargl <kargl@gcc.gnu.org>
275 * m4/spacing.m4: Use scalbn[f,l] if ldexp[f,l] is unavailable.
276 * m4/rrspacing.m4: Ditto.
277 * generated/spacing_r4.c: Regenerated.
278 * generated/spacing_r8.c: Ditto.
279 * generated/spacing_r10.c: Ditto.
280 * generated/spacing_r16.c: Ditto.
281 * generated/rrspacing_r4.c: Ditto.
282 * generated/rrspacing_r8.c: Ditto.
283 * generated/rrspacing_r10.c: Ditto.
284 * generated/rrspacing_r16.c: Ditto.
286 2006-10-06 Steven G. Kargl <kargl@gcc.gnu.org>
290 * configure.ac: Add HAVE_LDEXPF, HAVE_LDEXP, and HAVE_LDEXPL
291 * m4/spacing.m4: New file. Use new HAVE_* defines.
292 * m4/rrspacing.m4: Ditto.
293 * Makefile.am: Handle new files.
294 * configure: Regenerated.
295 * Makefile.in: Ditto.
296 * config.h.in: Ditto.
297 * generated/spacing_r4.c: Generated.
298 * generated/spacing_r8.c: Ditto.
299 * generated/spacing_r10.c: Ditto.
300 * generated/spacing_r16.c: Ditto.
301 * generated/rrspacing_r4.c: Ditto.
302 * generated/rrspacing_r8.c: Ditto.
303 * generated/rrspacing_r10.c: Ditto.
304 * generated/rrspacing_r16.c: Ditto.
306 2006-10-08 Francois-Xavier Coudert <coudert@clipper.ens.fr>
308 * intrinsics/hyper.c: Remove file.
309 * intrinsics/c99_functions.c: Add fallback functions asinhf,
311 * Makefile.am: Remove file intrinsics/hyper.c.
312 * Makefile.in: Regenerate.
314 2006-10-08 Francois-Xavier Coudert <coudert@clipper.ens.fr>
316 * c99_protos.h: Correctly protect definitions of prototypes for
317 asinhf, acoshf and atanhf to be the same as in intrinsics/hyper.c.
319 2006-10-08 Paul Thomas <pault@gcc.gnu.org>
320 Erik Edelmann <edelmann@gcc.gnu.org>
323 * Makefile.in : Add move_alloc.
324 * intrinsics/move_alloc.c: New function.
325 * Makefile.am : Add move_alloc.
327 2006-10-08 Francois-Xavier Coudert <coudert@clipper.ens.fr>
330 * intrinsics/signal.c (signal_sub, signal_sub_int): Use intptr_t
331 if available to cast function pointers to int and back.
332 * configure.ac: Check for intptr_t.
333 * config.h.in: Regenerate.
334 * configure: Regenerate.
336 2006-10-01 Francois-Xavier Coudert <coudert@clipper.ens.fr>
340 * libgfortran/Makefile.am: Add the new files to the build
341 process, and rules to build them.
342 * libgfortran/Makefile.in: Regenerate.
343 * libgfortran/m4/misc_specifics.m4: New file.
344 * libgfortran/m4/specific.m4: Add new special cases for function
345 with complex argument and real result, like abs_c* and aimag_c*.
346 * libgfortran/intrinsics/f2c_specifics.F90: Add specifics for
347 AIMAG, ASINH, ACOSH and ATANH.
348 * libgfortran/generated/_aimag_c4.F90: New file.
349 * libgfortran/generated/_aimag_c8.F90: New file.
350 * libgfortran/generated/_asinh_r10.F90: New file.
351 * libgfortran/generated/_acosh_r16.F90: New file.
352 * libgfortran/generated/_aimag_c10.F90: New file.
353 * libgfortran/generated/_atanh_r16.F90: New file.
354 * libgfortran/generated/_acosh_r4.F90: New file.
355 * libgfortran/generated/_acosh_r8.F90: New file.
356 * libgfortran/generated/_asinh_r4.F90: New file.
357 * libgfortran/generated/_asinh_r8.F90: New file.
358 * libgfortran/generated/_asinh_r16.F90: New file.
359 * libgfortran/generated/_atanh_r4.F90: New file.
360 * libgfortran/generated/_atanh_r8.F90: New file.
361 * libgfortran/generated/_acosh_r10.F90: New file.
362 * libgfortran/generated/misc_specifics.F90: New file.
363 * libgfortran/generated/_aimag_c16.F90: New file.
364 * libgfortran/generated/_atanh_r10.F90: New file.
366 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
368 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__
370 * configure: Regenerate.
372 2006-10-05 Steven G. Kargl <kargl@gcc.gnu.org>
374 * Makefile.am: Use $(M4) instead of m4.
375 * Makefile.in: Regenerated.
377 2006-10-01 Francois-Xavier Coudert <coudert@clipper.ens.fr>
379 * libgfortran.h: Add prototype for internal_unpack_c16.
381 2006-09-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
384 * m4/specific.m4: Special-case cabs so that its return type is
385 real. Special-case conjg so that their suffices are _4, _8, _10 and
386 _16 instead of _c4, _c8, _c10 and _c16.
387 * intrinsics/f2c_specifics.F90: Special-case conjg functions so
388 that their suffices are _4 and _8 instead of _c4 and _c8.
389 * generated/_conjg_c4.F90: Regenerate.
390 * generated/_conjg_c8.F90: Regenerate.
391 * generated/_conjg_c10.F90: Regenerate.
392 * generated/_conjg_c16.F90: Regenerate.
393 * generated/_abs_c4.F90: Regenerate.
394 * generated/_abs_c8.F90: Regenerate.
395 * generated/_abs_c10.F90: Regenerate.
396 * generated/_abs_c16.F90: Regenerate.
398 2006-09-29 Steven G. Kargl <kargl@gcc.gnu.org>
400 * intrinsics/cpu_time.c: Add cpu_time_10 and cpu_time_16 routines.
402 2006-09-28 Francois-Xavier Coudert <coudert@clipper.ens.fr>
404 * Makefile.am: Install libgfortranbegin inside compiler libraries
405 directory instead of system libraries directory.
406 * Makefile.in: Regenerate.
408 2006-09-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
410 * Makefile.am: Remove dependency on gfortypes.h.
411 * Makefile.in: Regenerate.
413 2006-09-22 Danny Smith <dannysmith@users.sourceforge.net>
416 * configure.ac: Check for setmode() function.
417 * configure: Regenerate.
418 * config.h.in: Regenerate.
419 * io/unix.c (output_stream): Force stdout to binary mode.
420 (error_stream): Force stderr to binary mode.
422 2006-09-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
425 * intrinsics/date_and_time.c (secnds): Fix case of zero time.
427 2006-09-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
430 * io.h (gfc_unit): Add variable, strm_pos, to track
431 STREAM I/O file position.
432 * file_pos.c (st_rewind): Set strm_pos to beginning.
433 * open.c (new_unit): Initialize strm_pos.
434 * read.c (read_x): Bump strm_pos.
435 * inquire.c (inquire_via_unit): Return strm_pos value.
436 * transfer.c (read_block),(read_block_direct),(write_block)
437 (write_buf): Seek to strm_pos - 1. Update strm_pos when done.
438 (pre_position): Initialize strm_pos.
439 (data_transfer_init): Set strm_pos if DT_HAS_REC.
440 (finalize_transfer): Flush file, no need to update strm_pos.
442 2006-09-10 Paul Thomas <pault@gcc.gnu.org>
445 * m4/matmul.m4: For the case where the second input argument is
446 transposed, ensure that the case with rank (a) == 1 is
447 correctly calculated.
448 * generated/matmul_r4.c: Regenerate.
449 * generated/matmul_r8.c: Regenerate.
450 * generated/matmul_r10.c: Regenerate.
451 * generated/matmul_r16.c: Regenerate.
452 * generated/matmul_c4.c: Regenerate.
453 * generated/matmul_c8.c: Regenerate.
454 * generated/matmul_c10.c: Regenerate.
455 * generated/matmul_c16.c: Regenerate.
456 * generated/matmul_i4.c: Regenerate.
457 * generated/matmul_i8.c: Regenerate.
458 * generated/matmul_i16.c: Regenerate.
460 2006-08-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
463 * io/write.c: Check for special case of zero precision in format
464 and pre-round the real value.
466 2006-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
469 * libgfortran.h: Rename GFC_LARGE_IO_INT to GFC_IO_INT.
470 * io/file_pos.c (st_backspace): Ignore if access=STREAM.
471 (st_rewind): Handle case of access=STREAM.
472 * io/open.c (access_opt): Add STREAM_ACCESS.
473 (edit_modes): Set current_record to zero only if not STREAM.
474 (new_unit): Initialize maxrec, recl, and last_record for STREAM.
475 * io/read.c (read_x): Advance file position for STREAM.
476 * io/io.h (enum unit_access): Align IOPARM flags with frontend.
477 Add ACCESS_STREAM. Add prototype for is_stream_io () function.
479 * io/inquire.c (inquire_via_unit): Add text for access = "STREAM".
480 * io/unit.c (is_stream_io): New function to return true if access =
482 * io/transfer.c (file_mode): Add modes for unformatted stream and
483 formatted stream. (current_mode): Return appropriate file mode based
485 (read_block): Handle formatted stream reads.
486 (read_block_direct): Handle unformatted stream reads.
487 (write_block): Handle formatted stream writes.
488 (write_buf): Handle unformatted stream writes.
489 (unformatted_read): Fix up, use temporary for size.
490 (pre_position): Position file for STREAM access.
491 (data_transfer_init): Initialize for stream access, skip irrelevent
493 (next_record_r),(next_record_w), and (next_record): Do nothing for
495 (finalize_transfer): Flush when all done if stream I/O.
497 2006-08-12 Francois-Xavier Coudert <coudert@clipper.ens.fr>
499 * intrinsics/bessel.c: Add prototypes for all functions.
501 2006-08-05 Francois-Xavier Coudert <coudert@clipper.ens.fr>
503 * intrinsics/access.c (access_func): Remove export directive.
505 2006-08-02 Thomas Koenig <Thomas.Koenig@online.de>
507 * Makefile.in: Regenerate using automake 1.9.6.
508 * aclocal.m4: Revert to previous version.
510 2006-08-01 Thomas Koenig <Thomas.Koenig@online.de>
513 * Makefile.am: Remove normalize.c.
514 * aclocal.m4: Regenerate using aclocal 1.9.3.
515 * Makefile.in: Regenerate using automake 1.9.3.
516 * libgfortran.h: #include <float.h>.
517 Define GFC_REAL_*_DIGITS and GFC_REAL_*_RADIX.
518 Remove prototypes for normalize_r4_i4 and normalize_r8_i8.
519 * intrinsics/random.c (top level): Add prototypes for
520 random_r10, arandom_r10, random_r16 and arandom_r16.
521 (rnumber_4): New static function.
522 (rnumber_8): New static function.
523 (rnumber_10): New static function.
524 (rnumber_16): New static function.
525 (top level): Set to kiss_size to 12 if we have
526 REAL(KIND=16), to 8 otherwise.
527 Define KISS_DEFAULT_SEED_1, KISS_DEFAULT_SEED_2 and
529 (kiss_random_kernel): Take argument to differentiate
530 between different random number generators.
531 (random_r4): Add argument to call to kiss_random_kernel,
533 (random_r8): Likewise.
534 (random_r10): New function.
535 (random_r16): New function.
536 (arandom_r4): Add argument to call to kiss_random_kernel,
538 (arandom_r8): Likewise.
539 (arandom_r10): New function.
540 (arandom_r16): New function.
541 * intrinsics/rand.c (rand): Use shift and mask.
542 * runtime/normalize.c: Remove.
544 2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
547 * file_position.c (st_flush): Add clearer error when UNIT does not
548 exist. Add reference to standard in comment.
550 2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
553 * close.c (st_close): Revert previous patch and add comment.
554 * file_position.c (st_flush): Revert previous patch and add comment.
556 2006-07-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
558 * intrinsics/date_and_time.c: Add functions for GMTIME and LTIME.
559 * intrinsics/access.c: New file.
560 * intrinsics/chmod.c: New file.
561 * configure.ac: Add checks for <sys/wait.h>, access, fork,execl
563 * Makefile.am: Add new files intrinsics/access.c and
565 * configure: Regenerate.
566 * config.h.in: Regenerate.
567 * Makefile.in: Regenerate.
569 2006-07-30 Janne Blomqvist <jb@gcc.gnu.org>
571 * io/transfer.c (transfer_array): Remove stride0 fix.
573 2006-07-26 Francois-Xavier Coudert <coudert@clipper.ens.fr>
575 * configure.ac: Check for function clock.
576 * Makefile.am: Compile new file intrinsics/clock.c.
577 * intrinsics/clock.c: New file.
578 * Makefile.in: Regenerate.
579 * configure: Regenerate.
580 * config.h.in: Regenerate.
581 * intrinsics/stat.c: Rename the old stat_i?_sub functions to
582 helper functions stat_i?_sub_0, and use them for both STAT and
585 2006-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
588 * close.c (st_close): Add error when UNIT does not exist.
589 * file_position.c (st_flush): Add error when UNIT does not exist.
591 2006-07-25 Paolo Bonzini <bonzini@gnu.org>
594 * configure: Regenerate.
596 2006-07-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
599 * libgfortran.h: Add conditional definition of GFC_LARGE_IO_INT type.
600 * io/io.h (st_parameter_dt): Define rec as type GFC_LARGE_IO_INT.
602 2006-07-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
605 * io/transfer.c (next_record_w): Use next_array_record result to set
606 END_FILE. (write_block): Test for END_FILE before the next write occurs.
607 * io/unit.c (get_internal_unit): Initialize iunit->endfile for internal
610 2006-07-19 Janne Blomqvist <jb@gcc.gnu.org>
613 * m4/dotprodc.m4: Remove.
614 * m4/dotprodl.m4: Remove.
615 * m4/dotprod.m4: Remove.
616 * generated/dotprod_*.c: Remove.
617 * Makefile.am: Remove any references to dot_product
619 * Makefile.in: Regenerated.
621 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
623 * configure: Regenerate.
625 2006-07-15 Steven G. Kargl <kargls@comcast.net>
627 * intrinsics/etime.c: Remove etime_
628 * libtool-version: Bump from libgfortran.so.1 to libgfortran.so.2
630 2006-07-12 Francois-Xavier Coudert <coudert@clipper.ens.fr>
633 * intrinsics/string_intrinsics.c (copy_string): Remove function.
635 2006-07-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
637 * intrinsics/date_and_time.c (itime0,idate0,itime_i4,itime_i8,
638 idate_i4,idate_i8): New functions.
640 2006-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
643 * runtime/error.c (notify_std): Pass common flags into function. Use
644 flags to show locus of error or warning.
645 * libgfortran.h: Add enum try. Add prototype for notify_std.
646 * io/open.c (edit_modes): Allow status="old" and add extension to
647 allow status="scratch"
648 *io/list_read.c (nml_read_obj): Update call to notify_std.
649 *io/io.h: Remove enum try and prototype for notify_std.
650 *io/transfer.c (read_sf): Update call to notify_std.
651 *io/format.c (parse_format_list): Update call to notify_std.
653 2006-06-25 Francois-Xavier Coudert <coudert@clipper.ens.fr>
655 * io/io.h: Move proto for unit_to_fd...
656 * libgfortran.h: ...here.
658 2006-06-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
660 * intrinsics/ierrno.c: Don't include "io/io.h".
661 * intrinsics/sleep.c: Likewise.
662 * intrinsics/perror.c: Likewise.
663 * intrinsics/stat.c: Likewise.
664 * intrinsics/kill.c: Likewise.
665 * intrinsics/time.c: Likewise.
666 * intrinsics/fnum.c: Likewise.
667 * intrinsics/rename.c: Likewise.
668 * intrinsics/symlnk.c: Likewise.
669 * intrinsics/chdir.c: Likewise.
670 * intrinsics/link.c: Likewise.
671 * intrinsics/random.c: Don't include "io/io.h". Include <gthr.h>.
672 * intrinsics/rand.c: Likewise.
674 2006-06-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
677 * Makefile.am: Add _mod_r10.F90 and _mod_r16.F90.
678 * Makefile.in: Regenerate.
679 * generated/_mod_r10.F90: New file.
680 * generated/_mod_r16.F90: New file.
682 2006-06-22 Francois-Xavier Coudert <coudert@clipper.ens.fr>
685 * Makefile.am: Add r4 and r8 versions of reshape and transpose.
686 * Makefile.in: Regenerate.
687 * generated/reshape_r4.c: New file.
688 * generated/reshape_r8.c: New file.
689 * generated/transpose_r4.c: New file.
690 * generated/transpose_r8.c: New file.
692 2006-06-20 Paul Thomas <pault@gcc.gnu.org>
695 * m4/matmul.m4: aystride = 1 does not uniquely detect the
696 presence of a temporary transpose; an array element in the
697 first dimension produces the same signature. Detect this
698 using the rank of a and add specific code.
699 * generated/matmul_r4.c: Regenerate.
700 * generated/matmul_r8.c: Regenerate.
701 * generated/matmul_r10.c: Regenerate.
702 * generated/matmul_r16.c: Regenerate.
703 * generated/matmul_c4.c: Regenerate.
704 * generated/matmul_c8.c: Regenerate.
705 * generated/matmul_c10.c: Regenerate.
706 * generated/matmul_c16.c: Regenerate.
707 * generated/matmul_i4.c: Regenerate.
708 * generated/matmul_i8.c: Regenerate.
709 * generated/matmul_i16.c: Regenerate.
711 2006-06-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
714 * io/unit.c (get_internal_unit): Initialize and lock thread mutex
717 2006-06-06 Janne Blomqvist <jb@gcc.gnu.org>
719 * m4/in_pack.m4: Add TODO comment about detecting temporaries,
720 remove test for stride 0, update copyright year.
721 * m4/transpose.m4: Remove test for stride 0, update copyright
723 * m4/iforeach.m4: Likewise.
724 * m4/shape.m4: Likewise.
725 * m4/in_unpack.m4: Likewise.
726 * m4/reshape.m4: Likewise.
727 * m4/ifunction.m4: Likewise.
728 * m4/matmul.m4: Likewise.
729 * m4/matmull.m4: Likewise.
730 * intrinsics/etime.c: Likewise.
731 * intrinsics/transpose_generic.c: Likewise.
732 * intrinsics/spread_generic.c: Likewise.
733 * intrinsics/stat.c: Likewise.
734 * intrinsics/reshape_generic.c: Likewise.
735 * intrinsics/random.c: Likewise.
736 * generated/*: Regenerated from above changed m4 files.
738 2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
741 * io/unix.c (fd_seek): Set active to zero.
743 2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
746 * io/format.c (parse_format_list): Allow missing period in format only
749 2006-05-28 Thomas Koenig <Thomas.Koenig@online.de>
751 * intrinsics/string_intrinsics.c (compare_string):
752 Use memcmp instead of strncmp to avoid tripping over
755 2006-05-27 Janne Blomqvist <jb@gcc.gnu.org>
757 * io/io.h (find_or_create_unit): Correct export declaration.
759 2006-05-27 Janne Blomqvist <jb@gcc.gnu.org>
761 * intrinsics/abort.c (abort_): Remove.
763 2006-05-26 Janne Blomqvist <jb@gcc.gnu.org>
765 * configure.ac: Remove AC_FUNC_MMAP.
766 * configure: Regenerated.
767 * Makefile.in: Regenerated.
768 * config.h.in: Regenerated.
769 * aclocal.m4: Regenerated.
771 2006-05-25 Francois-Xavier Coudert <coudert@clipper.ens.fr>
773 * intrinsics/associated.c (associated): Zero-sized arrays should
774 not be reported as ASSOCIATED.
776 2006-05-24 Carlos O'Donell <carlos@codesourcery.com>
778 * Makefile.am: Add install-html target. Add install-html to .PHONY
779 * Makefile.in: Regenerate.
780 * aclocal.m4: Regenerate.
782 2006-05-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
785 * io/list_read.c (nml_parse_qualifier): Leave loop spec end value
786 at default value unless -std=f95 or if an array section
787 is specified in namelist input. Warn if -pedantic.
788 * io/io.h (st_parameter_dt): Add expanded_read flag.
790 2006-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
793 * io/transfer.c (read_block): Return NULL instead of nothing.
795 2006-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
798 * io/transfer.c (read_block): Add check for end file condition.
799 (read_block_direct): Add check for end file condition.
801 2006-05-05 Francois-Xavier Coudert <coudert@clipper.ens.fr>
804 * m4/matmul.m4: Correct the condition for the memset call,
805 and remove the unneeded call to size0.
806 * generated/matmul_r4.c: Regenerate.
807 * generated/matmul_r8.c: Regenerate.
808 * generated/matmul_r10.c: Regenerate.
809 * generated/matmul_r16.c: Regenerate.
810 * generated/matmul_c4.c: Regenerate.
811 * generated/matmul_c8.c: Regenerate.
812 * generated/matmul_c10.c: Regenerate.
813 * generated/matmul_c16.c: Regenerate.
814 * generated/matmul_i4.c: Regenerate.
815 * generated/matmul_i8.c: Regenerate.
816 * generated/matmul_i16.c: Regenerate.
818 2006-04-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
821 * io/list_read.c (read_logical): Free line_buffer and free saved.
823 2006-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
826 * io/transfer.c (formatted_transfer_scalar): Generate error if data
827 descriptors are exhausted.
828 * io/format.c (next_format0): Fix comment.
830 2006-04-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
833 * io/io.h: Add prototypes for get_internal_unit and free_internal_unit.
834 * io/unit.c (get_internal_unit): Initialize unit number, not zero.
835 (free_internal_unit): New function to consolidate freeing memory.
836 (get_unit): Initialize internal_unit_desc to NULL when unit is
838 * io/unix.c (mem_close): Check for not NULL before freeing memory.
839 * io/transfer.c (read_block): Reset bytes_left and skip error if unit
840 is preconnected and default record length is reached.
841 (read_block_direct): Ditto.
842 (write_block): Ditto.
844 (data_transfer_init): Only flush if not internal unit.
845 (finalize_transfer): Ditto and delete code to free memory used by
847 (st_read_done): Use new function - free_internal_unit.
848 (st_write_done): Use new function - free_internal unit.
850 2006-04-22 Jakub Jelinek <jakub@redhat.com>
853 * Makefile.am (i_transpose_c): Add generated/transpose_r16.c.
854 (i_reshape_c): Add generated/reshape_r16.c.
855 * Makefile.in: Regenerated.
856 * generated/transpose_r16.c: Generated new file.
857 * generated/redhape_r16.c: Generated new file.
859 2006-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
862 * io/list_read.c (eat_line): New function.
863 (parse_repeat): Use new function and free_saved.
864 (read_logical): Same.
865 (read_integer): Use new function.
866 (parse_real): Use nml_bad_return and new function.
867 (read_complex): Use new function and free_saved.
870 2006-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
873 * io/io.h: Add bit to identify associated unit as internal.
874 * io/unit.c (get_external_unit): Renamed the find_unit_1 function to
875 reflect the external unit functionality vs internal unit.
876 (get_internal_unit): New function to allocate and initialize an internal
878 (get_unit): Use get_internal_unit and get_external_unit.
879 (is_internal_unit): Revised to use new bit added in io.h.
880 * io/transfer.c (data_transfer_init): Fix line width.
881 (st_read_done): Free memory allocated for internal unit.
882 (st_write_done): Add test to only flush and truncate when not an
883 internal unit. Free memory allocated for internal unit.
885 2006-04-11 Jakub Jelinek <jakub@redhat.com>
887 * io/io.h (st_parameter_dt): Revert 2005-12-10 change to
889 (check_st_parameter_dt): New compile time assert.
891 2006-04-10 Jakub Jelinek <jakub@redhat.com>
894 * io/write.c (MIN_FIELD_WIDTH, STR, STR1): Define.
895 (output_float): Increase buffer sizes for IEEE quad and IBM extended
897 (write_real): Output REAL(16) as 1PG43.34E4 rather than 1PG40.31E4.
899 2006-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
902 * io/io.h: Revert change to pad size made on 2006-03-30.
903 Add comment explaining dependency with fortran/trans-io.c.
905 2006-04-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
907 * io/write.c (output_float): Update condition to not error when
908 decimal precision in format specifier is zero.
910 2006-04-01 Francois-Xavier Coudert <coudert@clipper.ens.fr>
912 * config/fpu-387.h: Use previously added SSE code in all
913 cases, as it really is the right thing to do.
915 2006-03-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
918 * io/io.h: Add size_used to st_parameter_dt, adjust pad size.
919 *io/transfer.c (data_transfer_init): Initialize size_used to zero.
920 (read_sf): Use size_used.
921 (read_block): Likewise.
922 (read_block_direct): Likewise.
923 (write_block): Likewise.
924 (write_buf): Likewise and eliminate erroneous FAILURE return.
925 (finalize_transfer): Assign value of size_used to *dtp->size.
927 2006-03-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
930 * config/fpu-387.h: Add special case for handling of SSE
931 control bit on i386-darwin.
933 2006-03-30 Thomas Koenig <Thomas.Koenig@online.de>
936 * runtime/memory.c (allocate_array): If stat is present and
937 the variable is already allocated, free the variable, do
938 the allocation and set stat.
939 (allocate_array_64): Likewise. Whitespace fix.
941 2006-03-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
944 * io/file_pos.c (st_rewind): Clear read_bad flag.
946 2006-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
949 * io/io.h: Add read_sf so it can be used by read_x.
950 * io/transfer.c (read_sf): Pass no_error flag to read_sf. Use it to
951 break out rather than error on EOF or EOR conditions.
952 (read_block): Update call to read_sf.
953 (read_block_direct): Ditto.
954 * io/read.c (read_x): Use the modified read_sf instead of read_block.
956 2006-03-25 Thomas Koenig <Thomas.Koenig@online.de>
959 * io/transfer.c (data_transfer_init): Set u_flags.convert
960 on an unopened unit if specified by environment variable
961 (via get_unformatted_convert) or by compile-time option.
963 2006-03-25 Thomas Koenig <Thomas.Koenig@online.de>
966 * Makefile.am: Add transpose_r10.c and reshape_r10.c.
967 * aclocal.m4: Regenerate using aclocal 1.9.3.
968 * Makefile.in: Regenerate using automake 1.9.3.
969 * m4/iparm.m4 (rtype_ccode): If rtype_letter is `i',
970 evaluate to rtype_kind, otherwise to rtype_code.
971 * generated/transpose_r10.c: Add.
972 * generated/reshape_r10.c: Add.
974 2006-03-22 Thomas Koenig <Thomas.Koenig@online.de>
977 * libgfortran.h (compile_options_t): Add record_marker.
978 * runtime/compile_options.c (set_record_marker):
980 * io/open.c: If we have four-byte record markers, use
981 GFC_INTEGER_4_HUGE as default record length.
982 * io/file_pos.c (unformatted_backspace): Handle
983 different size record markers.
984 * io/transfer.c (us_read): Likewise.
985 (us_write): Likewise.
986 (next_record_r): Likewise.
987 (write_us_marker): Likewise.
988 (next_record_w): Likewise.
990 2006-03-20 Thomas Koenig <Thomas.Koenig@online.de>
993 * m4/iforeach.m4: Add SCALAR_FOREACH_FUNCTION macro.
994 * m4/ifunction.m4: Add SCALAR_ARRAY_FUNCTION macro.
995 * m4/minloc0.m4: Use SCALAR_FOREACH_FUNCTION.
996 * m4/minloc1.m4: Use SCALAR_ARRAY_FUNCTION.
997 * m4/maxloc0.m4: Use SCALAR_FOREACH_FUNCTION.
998 * m4/maxloc1.m4: Use SCALAR_ARRAY_FUNCTION.
999 * m4/minval.m4: Likewise.
1000 * m4/maxval.m4: Likewise.
1001 * m4/product.m4: Likewise.
1002 * m4/sum.m4: Likewise.
1003 * minloc0_16_i16.c : Regenerated.
1004 * minloc0_16_i4.c : Regenerated.
1005 * minloc0_16_i8.c : Regenerated.
1006 * minloc0_16_r10.c : Regenerated.
1007 * minloc0_16_r16.c : Regenerated.
1008 * minloc0_16_r4.c : Regenerated.
1009 * minloc0_16_r8.c : Regenerated.
1010 * minloc0_4_i16.c : Regenerated.
1011 * minloc0_4_i4.c : Regenerated.
1012 * minloc0_4_i8.c : Regenerated.
1013 * minloc0_4_r10.c : Regenerated.
1014 * minloc0_4_r16.c : Regenerated.
1015 * minloc0_4_r4.c : Regenerated.
1016 * minloc0_4_r8.c : Regenerated.
1017 * minloc0_8_i16.c : Regenerated.
1018 * minloc0_8_i4.c : Regenerated.
1019 * minloc0_8_i8.c : Regenerated.
1020 * minloc0_8_r10.c : Regenerated.
1021 * minloc0_8_r16.c : Regenerated.
1022 * minloc0_8_r4.c : Regenerated.
1023 * minloc0_8_r8.c : Regenerated.
1024 * minloc1_16_i16.c : Regenerated.
1025 * minloc1_16_i4.c : Regenerated.
1026 * minloc1_16_i8.c : Regenerated.
1027 * minloc1_16_r10.c : Regenerated.
1028 * minloc1_16_r16.c : Regenerated.
1029 * minloc1_16_r4.c : Regenerated.
1030 * minloc1_16_r8.c : Regenerated.
1031 * minloc1_4_i16.c : Regenerated.
1032 * minloc1_4_i4.c : Regenerated.
1033 * minloc1_4_i8.c : Regenerated.
1034 * minloc1_4_r10.c : Regenerated.
1035 * minloc1_4_r16.c : Regenerated.
1036 * minloc1_4_r4.c : Regenerated.
1037 * minloc1_4_r8.c : Regenerated.
1038 * minloc1_8_i16.c : Regenerated.
1039 * minloc1_8_i4.c : Regenerated.
1040 * minloc1_8_i8.c : Regenerated.
1041 * minloc1_8_r10.c : Regenerated.
1042 * minloc1_8_r16.c : Regenerated.
1043 * minloc1_8_r4.c : Regenerated.
1044 * minloc1_8_r8.c : Regenerated.
1045 * maxloc0_16_i16.c : Regenerated.
1046 * maxloc0_16_i4.c : Regenerated.
1047 * maxloc0_16_i8.c : Regenerated.
1048 * maxloc0_16_r10.c : Regenerated.
1049 * maxloc0_16_r16.c : Regenerated.
1050 * maxloc0_16_r4.c : Regenerated.
1051 * maxloc0_16_r8.c : Regenerated.
1052 * maxloc0_4_i16.c : Regenerated.
1053 * maxloc0_4_i4.c : Regenerated.
1054 * maxloc0_4_i8.c : Regenerated.
1055 * maxloc0_4_r10.c : Regenerated.
1056 * maxloc0_4_r16.c : Regenerated.
1057 * maxloc0_4_r4.c : Regenerated.
1058 * maxloc0_4_r8.c : Regenerated.
1059 * maxloc0_8_i16.c : Regenerated.
1060 * maxloc0_8_i4.c : Regenerated.
1061 * maxloc0_8_i8.c : Regenerated.
1062 * maxloc0_8_r10.c : Regenerated.
1063 * maxloc0_8_r16.c : Regenerated.
1064 * maxloc0_8_r4.c : Regenerated.
1065 * maxloc0_8_r8.c : Regenerated.
1066 * maxloc1_16_i16.c : Regenerated.
1067 * maxloc1_16_i4.c : Regenerated.
1068 * maxloc1_16_i8.c : Regenerated.
1069 * maxloc1_16_r10.c : Regenerated.
1070 * maxloc1_16_r16.c : Regenerated.
1071 * maxloc1_16_r4.c : Regenerated.
1072 * maxloc1_16_r8.c : Regenerated.
1073 * maxloc1_4_i16.c : Regenerated.
1074 * maxloc1_4_i4.c : Regenerated.
1075 * maxloc1_4_i8.c : Regenerated.
1076 * maxloc1_4_r10.c : Regenerated.
1077 * maxloc1_4_r16.c : Regenerated.
1078 * maxloc1_4_r4.c : Regenerated.
1079 * maxloc1_4_r8.c : Regenerated.
1080 * maxloc1_8_i16.c : Regenerated.
1081 * maxloc1_8_i4.c : Regenerated.
1082 * maxloc1_8_i8.c : Regenerated.
1083 * maxloc1_8_r10.c : Regenerated.
1084 * maxloc1_8_r16.c : Regenerated.
1085 * maxloc1_8_r4.c : Regenerated.
1086 * maxloc1_8_r8.c : Regenerated.
1087 * maxval_i16.c : Regenerated.
1088 * maxval_i4.c : Regenerated.
1089 * maxval_i8.c : Regenerated.
1090 * maxval_r10.c : Regenerated.
1091 * maxval_r16.c : Regenerated.
1092 * maxval_r4.c : Regenerated.
1093 * maxval_r8.c : Regenerated.
1094 * minval_i16.c : Regenerated.
1095 * minval_i4.c : Regenerated.
1096 * minval_i8.c : Regenerated.
1097 * minval_r10.c : Regenerated.
1098 * minval_r16.c : Regenerated.
1099 * minval_r4.c : Regenerated.
1100 * minval_r8.c : Regenerated.
1101 * sum_c10.c : Regenerated.
1102 * sum_c16.c : Regenerated.
1103 * sum_c4.c : Regenerated.
1104 * sum_c8.c : Regenerated.
1105 * sum_i16.c : Regenerated.
1106 * sum_i4.c : Regenerated.
1107 * sum_i8.c : Regenerated.
1108 * sum_r10.c : Regenerated.
1109 * sum_r16.c : Regenerated.
1110 * sum_r4.c : Regenerated.
1111 * sum_r8.c : Regenerated.
1112 * product_c10.c : Regenerated.
1113 * product_c16.c : Regenerated.
1114 * product_c4.c : Regenerated.
1115 * product_c8.c : Regenerated.
1116 * product_i16.c : Regenerated.
1117 * product_i4.c : Regenerated.
1118 * product_i8.c : Regenerated.
1119 * product_r10.c : Regenerated.
1120 * product_r16.c : Regenerated.
1121 * product_r4.c : Regenerated.
1122 * product_r8.c : Regenerated.
1124 2006-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1126 PR libgfortran/26509
1127 * libgfortran.h: Add ERROR_DIRECT_EOR.
1128 * runtime/error.c (translate_error): Add translation for new error.
1129 * io/transfer.c (write_buf): Add check for EOR when mode is
1132 2006-03-13 Paul Thomas <pault@gcc.gnu.org>
1135 * libgfortran/m4/minloc1.m4: Set the initial position to zero and
1136 modify the condition for updating it, to implement the F2003
1137 requirement for all(mask).eq.false.
1138 * libgfortran/m4/maxloc1.m4: The same.
1139 * libgfortran/m4/iforeach.m4: The same.
1140 * libgfortran/m4/minloc0.m4: The same.
1141 * libgfortran/m4/maxloc0.m4: The same.
1142 * libgfortran/generated/maxloc0_16_i16.c: Regenerated, together
1144 * libgfortran/generated/minloc0_16_i16.c: Regenerated, together
1147 2006-03-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1149 PR libgfortran/26499
1150 * io/file_pos (st_rewind): Flush always.
1151 * io/unix.c (fd_truncate): Return SUCCESS rather than FAILURE for
1152 special files like /dev/null.
1153 * io/transfer.c (st_write_done): Remove broken logic that
1154 prevented calling fd_truncate.
1156 2006-03-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1158 PR libgfortran/26554
1159 * io/list_read.c (read_logical): Return the value if not in namelist
1162 2006-03-03 Thomas Koenig <Thomas.Koenig@online.de>
1165 * runtime/memory.c: Adjust copyright years.
1166 (allocate_array): New function.
1167 (allocate64_array): New function.
1168 * libgfortran.h (error_codes): Add ERROR_ALLOCATION.
1170 2006-02-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1172 PR libgfortran/26136
1173 * io/io.h: Add flag for reading from line_buffer.
1174 * io/list_read.c (l_push_char): New function to save namelist
1175 input when reading logicals.
1176 (free_line): New function to free line_buffer memory.
1177 (next_char): Added feature to read from line_buffer.
1178 (read_logical): Use new functions to test for '=' after reading a
1179 logical value, checking for possible variable name.
1180 (namelist_read): Use free_line when all done.
1182 2006-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1184 PR libgfortran/26464
1185 * io/file_pos.c (st_backspace): Flush and truncate file
1186 when in AFTER_ENDFILE condition.
1187 * io/transfer.c (st_read_done): Remove flush, no longer needed.
1189 2006-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1191 PR libgfortran/26423
1192 * io/unix.c (fd_seek): Revert change from 25949.
1196 2006-02-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1198 * io/open.c (edit_modes): Correct abusive copy-pasting.
1200 2006-02-16 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1203 * m4/dotprodc.m4: Use __builtin_conj instead of assigning real
1204 and imaginary parts separately.
1205 * generated/dotprod_c4.c: Regenerated.
1206 * generated/dotprod_c8.c: Regenerated.
1207 * generated/dotprod_c10.c: Regenerated.
1208 * generated/dotprod_c16.c: Regenerated.
1210 2006-02-12 Janne Blomqvist <jb@gcc.gnu.org>
1212 PR libgfortran/25949
1213 * io/io.h: Add set function pointer to struct stream.
1214 * io/unix.c (fd_seek): Only update offset, don't seek.
1215 (fd_sset): New function.
1216 (fd_read): Call lseek directly if necessary.
1217 (fd_write): Likewise.
1218 (fd_open): Set pointer to fd_sset.
1219 (mem_set): New function.
1220 (open_internal): Set pointer to mem_set.
1221 * io/transfer.c (write_block_direct): Rename to write_buf, add
1222 error return, non-pointer length argument.
1223 (unformatted_write): Update to use write_buf.
1224 (us_write): Simplify by using swrite instead of salloc_w.
1225 (write_us_marker): New function.
1226 (new_record_w): Use sset instead of memset, use write_us_marker,
1227 simplify by using swrite instead of salloc_w.
1229 2006-02-08 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1232 * libgfortran.h: Add pedantic field to compile_options struct.
1233 * io/write.c (calculate_G_format): Depending on the standard,
1234 choose E or F format for list-directed output of 0.0.
1235 * runtime/error.c (notify_std): Make warning and error dependent
1237 * runtime/compile_options.c (set_std): Use new pedantic argument.
1239 2006-02-07 Dale Ranta <dir@lanl.gov>
1242 * intrinsics/mvbits.c: Shift '(TYPE)1' type when building 'lenmask'.
1244 2006-02-07 Rainer Emrich <r.emrich@de.tecosim.com>
1246 * intrinsics/c99_functions.c: Work around incompatible
1247 declarations of cabs{,f,l} on pre-C99 IRIX systems.
1249 2005-02-06 Thomas Koenig <Thomas.Koenig@online.de>
1252 * runtime/environ.c (init_unformatted): Add GFORTRAN_CONVERT_UNIT
1253 environment variable.
1254 (top level): Add defines, type and static variables for
1255 GFORTRAN_CONVERT_UNIT handling.
1256 (search_unit): New function.
1257 (match_word): New function.
1258 (match_integer): New function.
1259 (next_token): New function.
1260 (push_token): New function.
1261 (mark_single): New function.
1262 (mark_range): New funciton.
1263 (do_parse): New function.
1264 (init_unformatted): New function.
1265 (get_unformatted_convert): New function.
1266 * runtime/compile_options.c: Add set_convert().
1267 * libgfortran.h: Add convert to compile_options_t.
1268 * io/open.c (st_open): Call get_unformatted_convert to get
1269 unit default; if CONVERT_NONE is returned, check for
1270 the presence of a CONVERT specifier and use it.
1271 As default, use compile_options.convert.
1272 * io/io.h (top level): Add CONVERT_NONE to unit_convert, to signal
1273 "nothing has been set".
1274 (top level): Add prototype for get_unformatted_convert.
1276 2006-02-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1279 * io/write.c (write_real): Widen the default format for real(10)
1282 2006-01-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1284 PR libgfortran/25835
1285 * io/transfer.c (st_read_done): Flush buffers when read is done.
1287 2006-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1289 PR libgfortran/25697
1290 * io/transfer.c (us_read): Detect end of file condition from previous
1291 operations and bail out (no need to pre-position).
1293 2006-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1295 PR libgfortran/25631
1296 * io/transfer.c (formatted_transfer_scalar): Adjust pending_spaces and
1297 skips so that TL works correctly when no bytes_used yet.
1299 2006-01-16 Roger Sayle <roger@eyesopen.com>
1301 * configure.ac (CFLAGS): Update to include -std=gnu99 so that
1302 the configure tests will be run with the same environment as
1303 used to compile the libgfortran source code.
1304 * configure: Regenerate.
1306 2006-01-12 Roger Sayle <roger@eyesopen.com>
1308 * intrinsics/c99_functions.c: Add function prototypes to avoid
1309 warnings from -Wstrict-prototypes -Wmissing-prototypes. On Tru64
1310 work around a brain-dead libm by redirecting calls to cabs{,f,l}
1311 to a local __gfc_cabs{,f,l}.
1313 2006-01-07 Janne Blomqvist <jb@gcc.gnu.org>
1315 * configure.ac: Remove check for sys/mman.h.
1316 * configure: Regenerated.
1317 * Makefile.in: Regenerated.
1318 * config.h.in: Regenerated.
1319 * aclocal.m4: Regenerated.
1321 2006-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1323 PR libgfortran/25598
1324 * io/file_pos.c (unformatted_backspace): Assure the new file position
1325 to seek is not less than zero.
1326 (st_backspace): Set unit bytes_left to zero.
1327 * io/transfer.c (next_record_r): Fix line lengths, no functional change.
1329 2006-01-02 Paolo Bonzini <bonzini@gnu.org>
1332 * configure.ac: Use GCC_HEADER_STDINT.
1333 * libgfortran.h: Include gstdint.h.
1334 * aclocal.m4: Regenerate.
1335 * configure: Regenerate.
1337 2006-01-01 Steven G. Kargl <kargls@comcast.net>
1339 * ChangeLog: Split into years ...
1340 * ChangeLog-2002: here.
1341 * ChangeLog-2003: here.
1342 * ChangeLog-2004: here.
1343 * ChangeLog-2005: here.