1 2006-05-25 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3 * intrinsics/associated.c (associated): Zero-sized arrays should
4 not be reported as ASSOCIATED.
6 2006-05-24 Carlos O'Donell <carlos@codesourcery.com>
8 * Makefile.am: Add install-html target. Add install-html to .PHONY
9 * Makefile.in: Regenerate.
10 * aclocal.m4: Regenerate.
12 2006-05-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
15 * io/list_read.c (nml_parse_qualifier): Leave loop spec end value
16 at default value unless -std=f95 or if an array section
17 is specified in namelist input. Warn if -pedantic.
18 * io/io.h (st_parameter_dt): Add expanded_read flag.
20 2006-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
23 * io/transfer.c (read_block): Return NULL instead of nothing.
25 2006-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
28 * io/transfer.c (read_block): Add check for end file condition.
29 (read_block_direct): Add check for end file condition.
31 2006-05-05 Francois-Xavier Coudert <coudert@clipper.ens.fr>
34 * m4/matmul.m4: Correct the condition for the memset call,
35 and remove the unneeded call to size0.
36 * generated/matmul_r4.c: Regenerate.
37 * generated/matmul_r8.c: Regenerate.
38 * generated/matmul_r10.c: Regenerate.
39 * generated/matmul_r16.c: Regenerate.
40 * generated/matmul_c4.c: Regenerate.
41 * generated/matmul_c8.c: Regenerate.
42 * generated/matmul_c10.c: Regenerate.
43 * generated/matmul_c16.c: Regenerate.
44 * generated/matmul_i4.c: Regenerate.
45 * generated/matmul_i8.c: Regenerate.
46 * generated/matmul_i16.c: Regenerate.
48 2006-04-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
51 * io/list_read.c (read_logical): Free line_buffer and free saved.
53 2006-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
56 * io/transfer.c (formatted_transfer_scalar): Generate error if data
57 descriptors are exhausted.
58 * io/format.c (next_format0): Fix comment.
60 2006-04-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
63 * io/io.h: Add prototypes for get_internal_unit and free_internal_unit.
64 * io/unit.c (get_internal_unit): Initialize unit number, not zero.
65 (free_internal_unit): New function to consolidate freeing memory.
66 (get_unit): Initialize internal_unit_desc to NULL when unit is
68 * io/unix.c (mem_close): Check for not NULL before freeing memory.
69 * io/transfer.c (read_block): Reset bytes_left and skip error if unit
70 is preconnected and default record length is reached.
71 (read_block_direct): Ditto.
74 (data_transfer_init): Only flush if not internal unit.
75 (finalize_transfer): Ditto and delete code to free memory used by
77 (st_read_done): Use new function - free_internal_unit.
78 (st_write_done): Use new function - free_internal unit.
80 2006-04-22 Jakub Jelinek <jakub@redhat.com>
83 * Makefile.am (i_transpose_c): Add generated/transpose_r16.c.
84 (i_reshape_c): Add generated/reshape_r16.c.
85 * Makefile.in: Regenerated.
86 * generated/transpose_r16.c: Generated new file.
87 * generated/redhape_r16.c: Generated new file.
89 2006-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
92 * io/list_read.c (eat_line): New function.
93 (parse_repeat): Use new function and free_saved.
95 (read_integer): Use new function.
96 (parse_real): Use nml_bad_return and new function.
97 (read_complex): Use new function and free_saved.
100 2006-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
103 * io/io.h: Add bit to identify associated unit as internal.
104 * io/unit.c (get_external_unit): Renamed the find_unit_1 function to
105 reflect the external unit functionality vs internal unit.
106 (get_internal_unit): New function to allocate and initialize an internal
108 (get_unit): Use get_internal_unit and get_external_unit.
109 (is_internal_unit): Revised to use new bit added in io.h.
110 * io/transfer.c (data_transfer_init): Fix line width.
111 (st_read_done): Free memory allocated for internal unit.
112 (st_write_done): Add test to only flush and truncate when not an
113 internal unit. Free memory allocated for internal unit.
115 2006-04-11 Jakub Jelinek <jakub@redhat.com>
117 * io/io.h (st_parameter_dt): Revert 2005-12-10 change to
119 (check_st_parameter_dt): New compile time assert.
121 2006-04-10 Jakub Jelinek <jakub@redhat.com>
124 * io/write.c (MIN_FIELD_WIDTH, STR, STR1): Define.
125 (output_float): Increase buffer sizes for IEEE quad and IBM extended
127 (write_real): Output REAL(16) as 1PG43.34E4 rather than 1PG40.31E4.
129 2006-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
132 * io/io.h: Revert change to pad size made on 2006-03-30.
133 Add comment explaining dependency with fortran/trans-io.c.
135 2006-04-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
137 * io/write.c (output_float): Update condition to not error when
138 decimal precision in format specifier is zero.
140 2006-04-01 Francois-Xavier Coudert <coudert@clipper.ens.fr>
142 * config/fpu-387.h: Use previously added SSE code in all
143 cases, as it really is the right thing to do.
145 2006-03-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
148 * io/io.h: Add size_used to st_parameter_dt, adjust pad size.
149 *io/transfer.c (data_transfer_init): Initialize size_used to zero.
150 (read_sf): Use size_used.
151 (read_block): Likewise.
152 (read_block_direct): Likewise.
153 (write_block): Likewise.
154 (write_buf): Likewise and eliminate erroneous FAILURE return.
155 (finalize_transfer): Assign value of size_used to *dtp->size.
157 2006-03-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
160 * config/fpu-387.h: Add special case for handling of SSE
161 control bit on i386-darwin.
163 2006-03-30 Thomas Koenig <Thomas.Koenig@online.de>
166 * runtime/memory.c (allocate_array): If stat is present and
167 the variable is already allocated, free the variable, do
168 the allocation and set stat.
169 (allocate_array_64): Likewise. Whitespace fix.
171 2006-03-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
174 * io/file_pos.c (st_rewind): Clear read_bad flag.
176 2006-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
179 * io/io.h: Add read_sf so it can be used by read_x.
180 * io/transfer.c (read_sf): Pass no_error flag to read_sf. Use it to
181 break out rather than error on EOF or EOR conditions.
182 (read_block): Update call to read_sf.
183 (read_block_direct): Ditto.
184 * io/read.c (read_x): Use the modified read_sf instead of read_block.
186 2006-03-25 Thomas Koenig <Thomas.Koenig@online.de>
189 * io/transfer.c (data_transfer_init): Set u_flags.convert
190 on an unopened unit if specified by environment variable
191 (via get_unformatted_convert) or by compile-time option.
193 2006-03-25 Thomas Koenig <Thomas.Koenig@online.de>
196 * Makefile.am: Add transpose_r10.c and reshape_r10.c.
197 * aclocal.m4: Regenerate using aclocal 1.9.3.
198 * Makefile.in: Regenerate using automake 1.9.3.
199 * m4/iparm.m4 (rtype_ccode): If rtype_letter is `i',
200 evaluate to rtype_kind, otherwise to rtype_code.
201 * generated/transpose_r10.c: Add.
202 * generated/reshape_r10.c: Add.
204 2006-03-22 Thomas Koenig <Thomas.Koenig@online.de>
207 * libgfortran.h (compile_options_t): Add record_marker.
208 * runtime/compile_options.c (set_record_marker):
210 * io/open.c: If we have four-byte record markers, use
211 GFC_INTEGER_4_HUGE as default record length.
212 * io/file_pos.c (unformatted_backspace): Handle
213 different size record markers.
214 * io/transfer.c (us_read): Likewise.
215 (us_write): Likewise.
216 (next_record_r): Likewise.
217 (write_us_marker): Likewise.
218 (next_record_w): Likewise.
220 2006-03-20 Thomas Koenig <Thomas.Koenig@online.de>
223 * m4/iforeach.m4: Add SCALAR_FOREACH_FUNCTION macro.
224 * m4/ifunction.m4: Add SCALAR_ARRAY_FUNCTION macro.
225 * m4/minloc0.m4: Use SCALAR_FOREACH_FUNCTION.
226 * m4/minloc1.m4: Use SCALAR_ARRAY_FUNCTION.
227 * m4/maxloc0.m4: Use SCALAR_FOREACH_FUNCTION.
228 * m4/maxloc1.m4: Use SCALAR_ARRAY_FUNCTION.
229 * m4/minval.m4: Likewise.
230 * m4/maxval.m4: Likewise.
231 * m4/product.m4: Likewise.
232 * m4/sum.m4: Likewise.
233 * minloc0_16_i16.c : Regenerated.
234 * minloc0_16_i4.c : Regenerated.
235 * minloc0_16_i8.c : Regenerated.
236 * minloc0_16_r10.c : Regenerated.
237 * minloc0_16_r16.c : Regenerated.
238 * minloc0_16_r4.c : Regenerated.
239 * minloc0_16_r8.c : Regenerated.
240 * minloc0_4_i16.c : Regenerated.
241 * minloc0_4_i4.c : Regenerated.
242 * minloc0_4_i8.c : Regenerated.
243 * minloc0_4_r10.c : Regenerated.
244 * minloc0_4_r16.c : Regenerated.
245 * minloc0_4_r4.c : Regenerated.
246 * minloc0_4_r8.c : Regenerated.
247 * minloc0_8_i16.c : Regenerated.
248 * minloc0_8_i4.c : Regenerated.
249 * minloc0_8_i8.c : Regenerated.
250 * minloc0_8_r10.c : Regenerated.
251 * minloc0_8_r16.c : Regenerated.
252 * minloc0_8_r4.c : Regenerated.
253 * minloc0_8_r8.c : Regenerated.
254 * minloc1_16_i16.c : Regenerated.
255 * minloc1_16_i4.c : Regenerated.
256 * minloc1_16_i8.c : Regenerated.
257 * minloc1_16_r10.c : Regenerated.
258 * minloc1_16_r16.c : Regenerated.
259 * minloc1_16_r4.c : Regenerated.
260 * minloc1_16_r8.c : Regenerated.
261 * minloc1_4_i16.c : Regenerated.
262 * minloc1_4_i4.c : Regenerated.
263 * minloc1_4_i8.c : Regenerated.
264 * minloc1_4_r10.c : Regenerated.
265 * minloc1_4_r16.c : Regenerated.
266 * minloc1_4_r4.c : Regenerated.
267 * minloc1_4_r8.c : Regenerated.
268 * minloc1_8_i16.c : Regenerated.
269 * minloc1_8_i4.c : Regenerated.
270 * minloc1_8_i8.c : Regenerated.
271 * minloc1_8_r10.c : Regenerated.
272 * minloc1_8_r16.c : Regenerated.
273 * minloc1_8_r4.c : Regenerated.
274 * minloc1_8_r8.c : Regenerated.
275 * maxloc0_16_i16.c : Regenerated.
276 * maxloc0_16_i4.c : Regenerated.
277 * maxloc0_16_i8.c : Regenerated.
278 * maxloc0_16_r10.c : Regenerated.
279 * maxloc0_16_r16.c : Regenerated.
280 * maxloc0_16_r4.c : Regenerated.
281 * maxloc0_16_r8.c : Regenerated.
282 * maxloc0_4_i16.c : Regenerated.
283 * maxloc0_4_i4.c : Regenerated.
284 * maxloc0_4_i8.c : Regenerated.
285 * maxloc0_4_r10.c : Regenerated.
286 * maxloc0_4_r16.c : Regenerated.
287 * maxloc0_4_r4.c : Regenerated.
288 * maxloc0_4_r8.c : Regenerated.
289 * maxloc0_8_i16.c : Regenerated.
290 * maxloc0_8_i4.c : Regenerated.
291 * maxloc0_8_i8.c : Regenerated.
292 * maxloc0_8_r10.c : Regenerated.
293 * maxloc0_8_r16.c : Regenerated.
294 * maxloc0_8_r4.c : Regenerated.
295 * maxloc0_8_r8.c : Regenerated.
296 * maxloc1_16_i16.c : Regenerated.
297 * maxloc1_16_i4.c : Regenerated.
298 * maxloc1_16_i8.c : Regenerated.
299 * maxloc1_16_r10.c : Regenerated.
300 * maxloc1_16_r16.c : Regenerated.
301 * maxloc1_16_r4.c : Regenerated.
302 * maxloc1_16_r8.c : Regenerated.
303 * maxloc1_4_i16.c : Regenerated.
304 * maxloc1_4_i4.c : Regenerated.
305 * maxloc1_4_i8.c : Regenerated.
306 * maxloc1_4_r10.c : Regenerated.
307 * maxloc1_4_r16.c : Regenerated.
308 * maxloc1_4_r4.c : Regenerated.
309 * maxloc1_4_r8.c : Regenerated.
310 * maxloc1_8_i16.c : Regenerated.
311 * maxloc1_8_i4.c : Regenerated.
312 * maxloc1_8_i8.c : Regenerated.
313 * maxloc1_8_r10.c : Regenerated.
314 * maxloc1_8_r16.c : Regenerated.
315 * maxloc1_8_r4.c : Regenerated.
316 * maxloc1_8_r8.c : Regenerated.
317 * maxval_i16.c : Regenerated.
318 * maxval_i4.c : Regenerated.
319 * maxval_i8.c : Regenerated.
320 * maxval_r10.c : Regenerated.
321 * maxval_r16.c : Regenerated.
322 * maxval_r4.c : Regenerated.
323 * maxval_r8.c : Regenerated.
324 * minval_i16.c : Regenerated.
325 * minval_i4.c : Regenerated.
326 * minval_i8.c : Regenerated.
327 * minval_r10.c : Regenerated.
328 * minval_r16.c : Regenerated.
329 * minval_r4.c : Regenerated.
330 * minval_r8.c : Regenerated.
331 * sum_c10.c : Regenerated.
332 * sum_c16.c : Regenerated.
333 * sum_c4.c : Regenerated.
334 * sum_c8.c : Regenerated.
335 * sum_i16.c : Regenerated.
336 * sum_i4.c : Regenerated.
337 * sum_i8.c : Regenerated.
338 * sum_r10.c : Regenerated.
339 * sum_r16.c : Regenerated.
340 * sum_r4.c : Regenerated.
341 * sum_r8.c : Regenerated.
342 * product_c10.c : Regenerated.
343 * product_c16.c : Regenerated.
344 * product_c4.c : Regenerated.
345 * product_c8.c : Regenerated.
346 * product_i16.c : Regenerated.
347 * product_i4.c : Regenerated.
348 * product_i8.c : Regenerated.
349 * product_r10.c : Regenerated.
350 * product_r16.c : Regenerated.
351 * product_r4.c : Regenerated.
352 * product_r8.c : Regenerated.
354 2006-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
357 * libgfortran.h: Add ERROR_DIRECT_EOR.
358 * runtime/error.c (translate_error): Add translation for new error.
359 * io/transfer.c (write_buf): Add check for EOR when mode is
362 2006-03-13 Paul Thomas <pault@gcc.gnu.org>
365 * libgfortran/m4/minloc1.m4: Set the initial position to zero and
366 modify the condition for updating it, to implement the F2003
367 requirement for all(mask).eq.false.
368 * libgfortran/m4/maxloc1.m4: The same.
369 * libgfortran/m4/iforeach.m4: The same.
370 * libgfortran/m4/minloc0.m4: The same.
371 * libgfortran/m4/maxloc0.m4: The same.
372 * libgfortran/generated/maxloc0_16_i16.c: Regenerated, together
374 * libgfortran/generated/minloc0_16_i16.c: Regenerated, together
377 2006-03-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
380 * io/file_pos (st_rewind): Flush always.
381 * io/unix.c (fd_truncate): Return SUCCESS rather than FAILURE for
382 special files like /dev/null.
383 * io/transfer.c (st_write_done): Remove broken logic that
384 prevented calling fd_truncate.
386 2006-03-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
389 * io/list_read.c (read_logical): Return the value if not in namelist
392 2006-03-03 Thomas Koenig <Thomas.Koenig@online.de>
395 * runtime/memory.c: Adjust copyright years.
396 (allocate_array): New function.
397 (allocate64_array): New function.
398 * libgfortran.h (error_codes): Add ERROR_ALLOCATION.
400 2006-02-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
403 * io/io.h: Add flag for reading from line_buffer.
404 * io/list_read.c (l_push_char): New function to save namelist
405 input when reading logicals.
406 (free_line): New function to free line_buffer memory.
407 (next_char): Added feature to read from line_buffer.
408 (read_logical): Use new functions to test for '=' after reading a
409 logical value, checking for possible variable name.
410 (namelist_read): Use free_line when all done.
412 2006-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
415 * io/file_pos.c (st_backspace): Flush and truncate file
416 when in AFTER_ENDFILE condition.
417 * io/transfer.c (st_read_done): Remove flush, no longer needed.
419 2006-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
422 * io/unix.c (fd_seek): Revert change from 25949.
426 2006-02-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
428 * io/open.c (edit_modes): Correct abusive copy-pasting.
430 2006-02-16 Francois-Xavier Coudert <coudert@clipper.ens.fr>
433 * m4/dotprodc.m4: Use __builtin_conj instead of assigning real
434 and imaginary parts separately.
435 * generated/dotprod_c4.c: Regenerated.
436 * generated/dotprod_c8.c: Regenerated.
437 * generated/dotprod_c10.c: Regenerated.
438 * generated/dotprod_c16.c: Regenerated.
440 2006-02-12 Janne Blomqvist <jb@gcc.gnu.org>
443 * io/io.h: Add set function pointer to struct stream.
444 * io/unix.c (fd_seek): Only update offset, don't seek.
445 (fd_sset): New function.
446 (fd_read): Call lseek directly if necessary.
447 (fd_write): Likewise.
448 (fd_open): Set pointer to fd_sset.
449 (mem_set): New function.
450 (open_internal): Set pointer to mem_set.
451 * io/transfer.c (write_block_direct): Rename to write_buf, add
452 error return, non-pointer length argument.
453 (unformatted_write): Update to use write_buf.
454 (us_write): Simplify by using swrite instead of salloc_w.
455 (write_us_marker): New function.
456 (new_record_w): Use sset instead of memset, use write_us_marker,
457 simplify by using swrite instead of salloc_w.
459 2006-02-08 Francois-Xavier Coudert <coudert@clipper.ens.fr>
462 * libgfortran.h: Add pedantic field to compile_options struct.
463 * io/write.c (calculate_G_format): Depending on the standard,
464 choose E or F format for list-directed output of 0.0.
465 * runtime/error.c (notify_std): Make warning and error dependent
467 * runtime/compile_options.c (set_std): Use new pedantic argument.
469 2006-02-07 Dale Ranta <dir@lanl.gov>
472 * intrinsics/mvbits.c: Shift '(TYPE)1' type when building 'lenmask'.
474 2006-02-07 Rainer Emrich <r.emrich@de.tecosim.com>
476 * intrinsics/c99_functions.c: Work around incompatible
477 declarations of cabs{,f,l} on pre-C99 IRIX systems.
479 2005-02-06 Thomas Koenig <Thomas.Koenig@online.de>
482 * runtime/environ.c (init_unformatted): Add GFORTRAN_CONVERT_UNIT
483 environment variable.
484 (top level): Add defines, type and static variables for
485 GFORTRAN_CONVERT_UNIT handling.
486 (search_unit): New function.
487 (match_word): New function.
488 (match_integer): New function.
489 (next_token): New function.
490 (push_token): New function.
491 (mark_single): New function.
492 (mark_range): New funciton.
493 (do_parse): New function.
494 (init_unformatted): New function.
495 (get_unformatted_convert): New function.
496 * runtime/compile_options.c: Add set_convert().
497 * libgfortran.h: Add convert to compile_options_t.
498 * io/open.c (st_open): Call get_unformatted_convert to get
499 unit default; if CONVERT_NONE is returned, check for
500 the presence of a CONVERT specifier and use it.
501 As default, use compile_options.convert.
502 * io/io.h (top level): Add CONVERT_NONE to unit_convert, to signal
503 "nothing has been set".
504 (top level): Add prototype for get_unformatted_convert.
506 2006-02-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
509 * io/write.c (write_real): Widen the default format for real(10)
512 2006-01-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
515 * io/transfer.c (st_read_done): Flush buffers when read is done.
517 2006-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
520 * io/transfer.c (us_read): Detect end of file condition from previous
521 operations and bail out (no need to pre-position).
523 2006-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
526 * io/transfer.c (formatted_transfer_scalar): Adjust pending_spaces and
527 skips so that TL works correctly when no bytes_used yet.
529 2006-01-16 Roger Sayle <roger@eyesopen.com>
531 * configure.ac (CFLAGS): Update to include -std=gnu99 so that
532 the configure tests will be run with the same environment as
533 used to compile the libgfortran source code.
534 * configure: Regenerate.
536 2006-01-12 Roger Sayle <roger@eyesopen.com>
538 * intrinsics/c99_functions.c: Add function prototypes to avoid
539 warnings from -Wstrict-prototypes -Wmissing-prototypes. On Tru64
540 work around a brain-dead libm by redirecting calls to cabs{,f,l}
541 to a local __gfc_cabs{,f,l}.
543 2006-01-07 Janne Blomqvist <jb@gcc.gnu.org>
545 * configure.ac: Remove check for sys/mman.h.
546 * configure: Regenerated.
547 * Makefile.in: Regenerated.
548 * config.h.in: Regenerated.
549 * aclocal.m4: Regenerated.
551 2006-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
554 * io/file_pos.c (unformatted_backspace): Assure the new file position
555 to seek is not less than zero.
556 (st_backspace): Set unit bytes_left to zero.
557 * io/transfer.c (next_record_r): Fix line lengths, no functional change.
559 2006-01-02 Paolo Bonzini <bonzini@gnu.org>
562 * configure.ac: Use GCC_HEADER_STDINT.
563 * libgfortran.h: Include gstdint.h.
564 * aclocal.m4: Regenerate.
565 * configure: Regenerate.
567 2006-01-01 Steven G. Kargl <kargls@comcast.net>
569 * ChangeLog: Split into years ...
570 * ChangeLog-2002: here.
571 * ChangeLog-2003: here.
572 * ChangeLog-2004: here.
573 * ChangeLog-2005: here.