1 2007-12-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
4 * io/list_read.c (read_real): Handle intervening line ends and spaces.
5 (get_name): Don't push separators to saved_string.
6 (eat_separator): If in namelist mode eat spaces and line ends as well.
8 2007-12-13 Thomas Koenig <tkoenig@gcc.gnu.org>
13 * io/io.h: Add previous_nonadvancing_write to gfc_unit.
14 Add prototype for finish_last_advance_record.
15 * io/file_pos.c (st_backspace): Generate error if backspace is
16 attempted for direct access or unformatted stream.
17 If there are bytes left from a previous ADVANCE="no", write
18 them out before performing the backspace.
19 (st_endfile): Generate error if endfile is attempted for
21 If there are bytes left from a previous ADVANCE="no", write
22 them out before performing the endfile.
23 (st_rewind): Generate error if rewind is attempted for
25 * unit.c (close_unit_1): Move functionality to write
26 previously written bytes to...
27 (finish_last_advance_record): ... here.
28 * transfer.c (data_transfer_init): If reading, reset
29 previous_nonadvancing_write.
30 (finalize_transfer): Set the previous_noadvancing_write
31 flag if we are writing and ADVANCE="no" was specified.
32 Only call next_record() if advance="no" wasn't specified.
34 2007-12-13 Tobias Burnus <burnus@net-b.de>
37 * io/list_read.c (read_real): Fix unwinding for namelists.
39 2007-12-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
42 * io/read.c (convert_real, read_l, read_decimal, read_radix, read_f):
43 Call next_record after bad read or overflow error.
45 2007-12-09 Tobias Burnus <burnus@net-b.de>
48 * io/list_read.c (parse_real): Remove superfluous "goto bad;".
50 2007-12-08 Tobias Burnus <burnus@net-b.de>
53 * io/list_read.c (parse_real, read_real): Support NaN/Infinity.
55 2007-12-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
56 Thomas Koenig <tkoenig@gcc.gnu.org>
59 * io/transfer.c (read_block, read_block_direct, write_block, write_buf):
60 Don't seek if file position is already there for STREAM I/O.
61 (finalize_transfer): For STREAM I/O don't flush unless the file position
62 has moved past the start position before the transfer.
64 2007-12-01 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
66 * intrinsic/stat.c (stat_i4_sub_0, stat_i8_sub_0): Mark parameter
67 with unused attribute.
68 * intrinsics/system_clock.c (system_clock_4, system_clock_8):
69 Remove unused variable.
70 * intrinsics/umask.c: Include unistd.h.
72 2007-11-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
75 * io/list_read.c (read_character): When reading an unquoted string,
76 return if special characters that could signify the end of the namelist
79 2007-11-29 Steven G. Kargl <kargls@comcast.net>
82 * libgfortran/gfortran.map: Add tgammaf, tgamma, lgamma, and lgammaf.
83 * gfortran.dg/gamma_5.f90: Remove xfail.
85 2007-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
89 * intrinsics/c99_functions.c (tgamma, tgammaf, lgamma, lgammaf):
90 New fallback functions.
91 * c99_protos.h (tgamma, tgammaf, lgamma, lgammaf): New prototypes.
92 * configure.ac: Add checks for tgamma, tgammaf, tgammal, lgamma,
94 * config.h.in: Regenerate.
95 * configure: Regenerate.
97 2007-11-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
99 * mk-kinds-h.sh: Change sed syntax.
101 2007-11-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
104 * io/transfer.c (finalize_transfer): Revert previous patch.
106 2007-11-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
109 * io/transfer.c (finalize_transfer): Do not flush for
110 unformatted STREAM I/O.
112 2007-10-27 Tobias Burnus <burnus@net-b.de>
114 * mk-kinds-h.sh: Change LANG=C to LC_ALL=C.
116 2007-10-26 Tobias Burnus <burnus@net-b.de>
118 * mk-kinds-h.sh: Add "LANG=C".
120 2007-10-26 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
122 * libgfortran.h (GFC_REAL_*_HUGE, GFC_REAL_*_DIGITS,
123 GFC_REAL_*_RADIX): Remove.
124 * mk-kinds-h.sh: Define GFC_REAL_*_HUGE, GFC_REAL_*_DIGITS and
125 GFC_REAL_*_RADIX. Don't define GFC_REAL_LARGEST_FORMAT and
128 2007-10-19 Ben Elliston <bje@au.ibm.com>
130 * intrinsics/signal.c (alarm_sub_i4): Mark conditionally unused
131 parameters with __attribute__ ((unused)).
132 (alarm_sub_i8): Likewise.
133 (alarm_sub_int_i4): Likewise.
134 (alarm_sub_int_i8): Likewise.
136 2007-10-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
137 Jerry DeLisle <jvdelisle@gcc.gnu.org>
140 * libgfortran.h: Add unbuffered_preconnected.
141 * io/unix.c (output_stream): Set stream unbuffered flag if
142 options.unbuffered_preconnected has been set.
143 (error_stream): Ditto.
144 * runtime/environ.c (variable_table): Add to environment variable table
145 the entry: GFORTRAN_UNBUFFERED_PRECONNECTED.
147 2007-10-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
150 * runtime/backtrace.c (local_strcasestr): Protect by appropriate
152 * runtime/main.c (cleanup): Cast argument to free.
153 * intrinsics/spread_generic.c (spread_internal): Match runtime_error
154 arguments and format.
155 * intrinsics/signal.c (alarm_sub_int_i4, alarm_sub_int_i8): Cast
156 pointers to avoid warnings.
158 2007-10-18 Ben Elliston <bje@au.ibm.com>
160 * runtime/environ.c (init_choice): Remove unused function.
161 (show_choice): Likewise.
163 (FP_ROUND_NEAREST, FP_ROUND_UP, FP_ROUND_DOWN, FP_ROUND_ZERO):
165 (precision, signal_choices): Remove.
167 2007-10-15 Christopher D. Rickett <crickett@lanl.gov>
170 * libgfortran/intrinsics/iso_c_binding.c: Remove c_associated_1
172 * libgfortran/intrinsics/iso_c_binding.h: Ditto.
173 * libgfortran/gfortran.map: Ditto.
175 2007-10-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
178 * io/inquire.c (inquire_via_unit): If inquiring by unit, check for
179 an error condition from the IOSTAT variable and set EXIST to false if
180 there was a bad unit number.
182 2007-10-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
185 * io/list_read.c (nml_parse_qualifier): Add character specific error
186 messages. Check for proper form of sub-string qualifiers. Return the
187 parsed_rank flag indicating a non-zero rank qualifier.
188 (nml_get_obj_data): Count the instances of non-zero rank qualifiers.
189 Issue an error if more that one non-zero rank qualifier is found.
191 2007-10-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
194 * io/list_read.c (read_character): Use line_buffer to scan ahead for
195 object name or string when no delimiter is found.
197 2007-10-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
200 * runtime/environ.c (init_mem, show_mem, init_round, show_round,
201 init_precision, show_precision, init_signal, show_signal): Remove.
202 (variable_table): Remove GFORTRAN_MEM_INIT, GFORTRAN_MEM_CHECK,
203 GFORTRAN_SIGHUP, GFORTRAN_SIGINT, GFORTRAN_FPU_ROUND and
204 GFORTRAN_FPU_PRECISION.
205 * libgfortran.h (options_t): Remove mem_check, fpu_round,
206 fpu_precision, sighup, sigint, allocate_init_flag and
209 2007-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
212 * io/list_read.c (read_character): Use DELIM_APOSTROPHE and DELIM_QUOTE
213 and quote value in check of first character in string.
215 2007-10-02 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
218 * io/write.c (write_real): Widen the default formats.
220 2007-09-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
223 * io/list_read.c (next_char): Interpret encountering the end of file the
224 first time as an end of line. Subsequent reads give EOF error.
226 2007-09-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
229 * io/list_read.c (read_character): Revert r128057.
231 2007-09-21 Bernhard Fischer <aldot>
234 * (configure.ac): Add --enable-intermodule for onestep build.
235 * (Makefile.am): Handle onestep build.
236 * (configure, Makefile.in): Regenerate.
238 2007-09-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
241 * intrinsics/c99_functions.c (scalbn): Use ldexp if appopriate.
243 2007-09-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
246 * io/unix.c (id_from_handle, id_from_path, id_from_fd): New
248 (compare_file_filename, find_file, find_file0): Use the new
251 2007-09-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
253 * acinclude.m4 (LIBGFOR_TARGET_ILP32): Remove test.
254 * configure.ac: Don't call LIBGFOR_TARGET_ILP32.
255 * configure: Regenerate.
256 * config.h.in: Regenerate.
258 2007-09-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
261 * runtime/compile_options.c (set_options): Fix typo.
262 * runtime/main.c (store_exe_path): If getcwd is not available,
264 * intrinsics/getcwd.c: Same thing here.
265 * io/unix.c (fallback_access): New fallback function for access.
266 (fix_fd): Don't use dup if it's not available.
267 * configure.ac: Check for dup and getcwd.
268 * configure: Regenerate.
269 * config.h.in: Regenerate.
271 2007-09-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
273 * io/io.h: Include libgfortran.h first.
275 2007-09-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
278 * runtime/select.c (select_string): Initialize default_jump.
280 2007-09-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
283 * io/filepos.c (st_backspace): Don't truncate when already at the end
286 2007-09-07 Uros Bizjak <ubizjak@gmail.com>
288 * config/fpu-387.h: Include cpuid.h.
289 (set_fpu): Use __get_cpuid to check for SSE.
291 2007-09-06 Thomas Koenig <tkoenig@gcc.gnu.org>
294 * intrinsics/spread_generic.c(spread_internal): Enable
295 bounds checking by comparing extents if the bounds_check
296 option has been set. If any extent is <=0, return early.
298 2007-09-06 David Edelsohn <edelsohn@gnu.org>
300 * libgfortran.h: Include config.h first.
301 * io/io.h (struct stream): Rename truncate to trunc.
302 * io/unix.c (fd_open): Same.
303 (open_internal): Same.
305 2007-09-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
308 * io/write.c (nml_write_obj): Set the delimiter correctly before
309 calling write_character. (namelist_write): Clean up the code a little
310 and add comments to clarify what its doing.
312 2007-09-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
315 * io/write.c (stdbool.h): Add include. (sign_t): Move typedef to
316 new file write_float.def. Include write_float.def.
317 (extract_real): Delete. (calculate_sign): Delete.
318 (calculate_exp): Delete. (calculate_G_format): Delete.
319 (output_float): Delete. (write_float): Delete.
320 * io/write_float.def (calculate_sign): Added.
321 (output_float): Refactored to be independent of kind and added to this
322 file for inclusion. (write_infnan): New function to write "Infinite"
323 or "NaN" depending on flags passed, independent of kind.
324 (CALCULATE_EXP): New macro to build kind specific functions. Use it.
325 (OUTPUT_FLOAT_FMT_G): New macro, likewise. Use it.
326 (DTOA, DTOAL): Macros to implement "decimal to ascii".
327 (WRITE_FLOAT): New macro for kind specific write_float functions.
328 (write_float): Revised function to determine kind and use WRITE_FLOAT
329 to implement kind specific output.
331 2007-09-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
334 * io/list_read.c (read_character): Use DELIM_APOSTROPHE and
335 DELIM_QUOTE in check of first character in string.
337 2007-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
340 * libgfortran.h: Include gcc/fortran/libgfortran.h.
341 Remove M_PI, GFC_MAX_DIMENSIONS, GFC_DTYPE_*, GFC_NUM_RANK_BITS,
342 error_codes, GFC_STD_*, GFC_FPE_* and unit_convert.
343 * runtime/environ.c (variable_table): Use GFC_*_UNIT_NUMBER instead
344 of hardcoded constants.
345 (do_parse, init_unformatted): Use GFC_CONVERT_* macros instead of
347 * runtime/string.c (find_option): Use LIBERROR_BAD_OPTION instead
349 * runtime/error.c (translate_error, generate_error): Use
350 LIBERROR_* macros instead of ERROR_*.
351 * io/file_pos.c (formatted_backspace, unformatted_backspace,
352 st_backspace, st_rewind, st_flush): Rename macros.
353 * io/open.c (convert_opt, edit_modes, new_unit, already_open,
355 * io/close.c (st_close): Likewise.
356 * io/list_read.c (next_char, convert_integer, parse_repeat,
357 read_logical, read_integer, read_character, parse_real,
358 check_type, list_formatted_read_scalar, namelist_read,
359 nml_err_ret): Likewise.
360 * io/read.c (convert_real, read_l, read_decimal, read_radix,
362 * io/inquire.c (inquire_via_unit): Likewise.
363 * io/unit.c (get_internal_unit): Likewise.
364 * io/transfer.c (read_sf, read_block, read_block_direct,
365 write_block, write_buf, unformatted_read, unformatted_write,
366 formatted_transfer_scalar, us_read, us_write, data_transfer_init,
367 skip_record, next_record_r, write_us_marker, next_record_w_unf,
368 next_record_w, finalize_transfer, st_read, st_write_done):
370 * io/format.c (format_error): Likewise.
372 2007-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
374 * m4/minloc1.m4: Update copyright year and ajust headers order.
375 * m4/maxloc1.m4: Likewise.
376 * m4/in_pack.m4: Likewise.
377 * m4/sum.m4: Likewise.
378 * m4/fraction.m4: Likewise.
379 * m4/all.m4: Likewise.
380 * m4/set_exponent.m4: Likewise.
381 * m4/transpose.m4: Likewise.
382 * m4/eoshift1.m4: Likewise.
383 * m4/spacing.m4: Likewise.
384 * m4/eoshift3.m4: Likewise.
385 * m4/minval.m4: Likewise.
386 * m4/count.m4: Likewise.
387 * m4/maxval.m4: Likewise.
388 * m4/exponent.m4: Likewise.
389 * m4/shape.m4: Likewise.
390 * m4/head.m4: Likewise.
391 * m4/cshift1.m4: Likewise.
392 * m4/minloc0.m4: Likewise.
393 * m4/nearest.m4: Likewise.
394 * m4/maxloc0.m4: Likewise.
395 * m4/pow.m4: Likewise.
396 * m4/in_unpack.m4: Likewise.
397 * m4/matmull.m4: Likewise.
398 * m4/product.m4: Likewise.
399 * m4/reshape.m4: Likewise.
400 * m4/any.m4: Likewise.
401 * m4/rrspacing.m4: Likewise.
402 * m4/matmul.m4: Likewise.
403 * runtime/backtrace.c: Likewise.
404 * runtime/environ.c: Likewise.
405 * runtime/in_pack_generic.c: Likewise.
406 * runtime/compile_options.c: Likewise.
407 * runtime/in_unpack_generic.c: Likewise.
408 * runtime/main.c: Likewise.
409 * runtime/stop.c: Likewise.
410 * runtime/string.c: Likewise.
411 * runtime/memory.c: Likewise.
412 * runtime/error.c: Likewise.
413 * runtime/pause.c: Likewise.
414 * intrinsics/ierrno.c: Likewise.
415 * intrinsics/system_clock.c: Likewise.
416 * intrinsics/cshift0.c: Likewise.
417 * intrinsics/unlink.c: Likewise.
418 * intrinsics/ctime.c: Likewise.
419 * intrinsics/etime.c: Likewise.
420 * intrinsics/cpu_time.c: Likewise.
421 * intrinsics/malloc.c: Likewise.
422 * intrinsics/hostnm.c: Likewise.
423 * intrinsics/sleep.c: Likewise.
424 * intrinsics/exit.c: Likewise.
425 * intrinsics/perror.c: Likewise.
426 * intrinsics/transpose_generic.c: Likewise.
427 * intrinsics/pack_generic.c: Likewise.
428 * intrinsics/spread_generic.c: Likewise.
429 * intrinsics/stat.c: Likewise.
430 * intrinsics/string_intrinsics.c: Likewise.
431 * intrinsics/getcwd.c: Likewise.
432 * intrinsics/date_and_time.c: Likewise.
433 * intrinsics/unpack_generic.c: Likewise.
434 * intrinsics/move_alloc.c: Likewise.
435 * intrinsics/getlog.c: Likewise.
436 * intrinsics/eoshift0.c: Likewise.
437 * intrinsics/eoshift2.c: Likewise.
438 * intrinsics/reshape_generic.c: Likewise.
439 * intrinsics/system.c: Likewise.
440 * intrinsics/iso_c_binding.c: Likewise.
441 * intrinsics/env.c: Likewise.
442 * intrinsics/kill.c: Likewise.
443 * intrinsics/reshape_packed.c: Likewise.
444 * intrinsics/time.c: Likewise.
445 * intrinsics/gerror.c: Likewise.
446 * intrinsics/access.c: Likewise.
447 * intrinsics/fnum.c: Likewise.
448 * intrinsics/abort.c: Likewise.
449 * intrinsics/rename.c: Likewise.
450 * intrinsics/signal.c: Likewise.
451 * intrinsics/symlnk.c: Likewise.
452 * intrinsics/random.c: Likewise.
453 * intrinsics/umask.c: Likewise.
454 * intrinsics/getXid.c: Likewise.
455 * intrinsics/rand.c: Likewise.
456 * intrinsics/chdir.c: Likewise.
457 * intrinsics/chmod.c: Likewise.
458 * intrinsics/clock.c: Likewise.
459 * intrinsics/args.c: Likewise.
460 * intrinsics/link.c: Likewise.
461 * c99_protos.h: Likewise.
462 * config/fpu-387.h: Likewise.
463 * config/fpu-aix.h: Likewise.
464 * config/fpu-sysv.h: Likewise.
465 * config/fpu-generic.h: Likewise.
466 * config/fpu-glibc.h: Likewise.
467 * io/file_pos.c: Likewise.
468 * io/open.c: Likewise.
469 * io/size_from_kind.c: Likewise.
470 * io/close.c: Likewise.
471 * io/list_read.c: Likewise.
472 * io/read.c: Likewise.
473 * io/inquire.c: Likewise.
474 * io/unit.c: Likewise.
475 * io/unix.c: Likewise.
476 * io/transfer.c: Likewise.
477 * io/intrinsics.c: Likewise.
478 * io/format.c: Likewise.
479 * io/lock.c: Likewise.
480 * io/write.c: Likewise.
481 * io/write_float.def: Likewise.
483 * generated/minval_r8.c: Regenerate.
484 * generated/minloc1_16_r16.c: Regenerate.
485 * generated/maxloc1_4_r8.c: Regenerate.
486 * generated/sum_i8.c: Regenerate.
487 * generated/eoshift3_4.c: Regenerate.
488 * generated/transpose_c8.c: Regenerate.
489 * generated/any_l16.c: Regenerate.
490 * generated/eoshift1_8.c: Regenerate.
491 * generated/pow_r8_i8.c: Regenerate.
492 * generated/reshape_r16.c: Regenerate.
493 * generated/pow_i4_i16.c: Regenerate.
494 * generated/maxval_i2.c: Regenerate.
495 * generated/product_r4.c: Regenerate.
496 * generated/maxloc1_8_i4.c: Regenerate.
497 * generated/exponent_r16.c: Regenerate.
498 * generated/maxloc0_4_r4.c: Regenerate.
499 * generated/fraction_r16.c: Regenerate.
500 * generated/in_unpack_i8.c: Regenerate.
501 * generated/matmul_r8.c: Regenerate.
502 * generated/product_i2.c: Regenerate.
503 * generated/fraction_r4.c: Regenerate.
504 * generated/minloc0_4_r16.c: Regenerate.
505 * generated/reshape_c4.c: Regenerate.
506 * generated/minloc0_4_i1.c: Regenerate.
507 * generated/maxloc0_4_r16.c: Regenerate.
508 * generated/maxloc0_4_i2.c: Regenerate.
509 * generated/minloc1_8_r16.c: Regenerate.
510 * generated/maxloc1_8_r16.c: Regenerate.
511 * generated/set_exponent_r8.c: Regenerate.
512 * generated/in_unpack_i16.c: Regenerate.
513 * generated/transpose_c16.c: Regenerate.
514 * generated/maxloc0_8_i8.c: Regenerate.
515 * generated/pow_c4_i8.c: Regenerate.
516 * generated/sum_r16.c: Regenerate.
517 * generated/sum_i1.c: Regenerate.
518 * generated/minloc1_4_r8.c: Regenerate.
519 * generated/transpose_r10.c: Regenerate.
520 * generated/pow_i8_i4.c: Regenerate.
521 * generated/maxloc1_16_r16.c: Regenerate.
522 * generated/minloc1_16_i4.c: Regenerate.
523 * generated/maxloc1_16_i4.c: Regenerate.
524 * generated/minloc0_16_i8.c: Regenerate.
525 * generated/maxloc0_16_i8.c: Regenerate.
526 * generated/nearest_r8.c: Regenerate.
527 * generated/spacing_r16.c: Regenerate.
528 * generated/transpose_i8.c: Regenerate.
529 * generated/count_16_l16.c: Regenerate.
530 * generated/maxval_r16.c: Regenerate.
531 * generated/count_8_l8.c: Regenerate.
532 * generated/product_c10.c: Regenerate.
533 * generated/minloc1_8_i4.c: Regenerate.
534 * generated/minloc0_16_i16.c: Regenerate.
535 * generated/matmul_r16.c: Regenerate.
536 * generated/eoshift1_16.c: Regenerate.
537 * generated/minloc0_4_r4.c: Regenerate.
538 * generated/pow_c16_i16.c: Regenerate.
539 * generated/set_exponent_r10.c: Regenerate.
540 * generated/pow_i16_i16.c: Regenerate.
541 * generated/product_c4.c: Regenerate.
542 * generated/sum_r4.c: Regenerate.
543 * generated/pow_c16_i4.c: Regenerate.
544 * generated/rrspacing_r10.c: Regenerate.
545 * generated/in_pack_c16.c: Regenerate.
546 * generated/minloc0_4_i2.c: Regenerate.
547 * generated/maxloc0_8_i1.c: Regenerate.
548 * generated/reshape_i4.c: Regenerate.
549 * generated/minloc0_8_i8.c: Regenerate.
550 * generated/matmul_c8.c: Regenerate.
551 * generated/spacing_r4.c: Regenerate.
552 * generated/in_pack_c4.c: Regenerate.
553 * generated/all_l16.c: Regenerate.
554 * generated/minloc1_16_r10.c: Regenerate.
555 * generated/sum_i2.c: Regenerate.
556 * generated/minloc0_16_i1.c: Regenerate.
557 * generated/reshape_c16.c: Regenerate.
558 * generated/maxloc0_16_i1.c: Regenerate.
559 * generated/maxloc1_8_r8.c: Regenerate.
560 * generated/minval_i16.c: Regenerate.
561 * generated/reshape_r10.c: Regenerate.
562 * generated/exponent_r10.c: Regenerate.
563 * generated/maxval_i4.c: Regenerate.
564 * generated/any_l4.c: Regenerate.
565 * generated/minval_i8.c: Regenerate.
566 * generated/maxloc1_4_i8.c: Regenerate.
567 * generated/fraction_r10.c: Regenerate.
568 * generated/maxloc0_16_i16.c: Regenerate.
569 * generated/shape_i4.c: Regenerate.
570 * generated/pow_r16_i8.c: Regenerate.
571 * generated/maxloc0_8_r4.c: Regenerate.
572 * generated/rrspacing_r8.c: Regenerate.
573 * generated/pow_c10_i4.c: Regenerate.
574 * generated/minloc1_4_i16.c: Regenerate.
575 * generated/minloc0_4_r10.c: Regenerate.
576 * generated/maxloc1_4_i16.c: Regenerate.
577 * generated/minloc0_8_i16.c: Regenerate.
578 * generated/maxloc0_4_r10.c: Regenerate.
579 * generated/maxloc0_8_i16.c: Regenerate.
580 * generated/minloc1_8_r10.c: Regenerate.
581 * generated/product_i4.c: Regenerate.
582 * generated/minloc0_16_r4.c: Regenerate.
583 * generated/sum_c16.c: Regenerate.
584 * generated/maxloc1_8_r10.c: Regenerate.
585 * generated/maxloc0_16_r4.c: Regenerate.
586 * generated/transpose_c10.c: Regenerate.
587 * generated/minloc1_16_r8.c: Regenerate.
588 * generated/minloc0_8_i1.c: Regenerate.
589 * generated/maxloc0_4_i4.c: Regenerate.
590 * generated/transpose_r4.c: Regenerate.
591 * generated/maxloc1_16_r8.c: Regenerate.
592 * generated/pow_i16_i8.c: Regenerate.
593 * generated/cshift1_4.c: Regenerate.
594 * generated/maxloc0_8_i2.c: Regenerate.
595 * generated/sum_r10.c: Regenerate.
596 * generated/nearest_r16.c: Regenerate.
597 * generated/sum_c4.c: Regenerate.
598 * generated/maxloc1_16_r10.c: Regenerate.
599 * generated/count_4_l16.c: Regenerate.
600 * generated/pow_c8_i8.c: Regenerate.
601 * generated/matmul_i8.c: Regenerate.
602 * generated/in_pack_i4.c: Regenerate.
603 * generated/pow_i4_i8.c: Regenerate.
604 * generated/minloc0_16_i2.c: Regenerate.
605 * generated/minloc1_8_r8.c: Regenerate.
606 * generated/maxloc0_16_i2.c: Regenerate.
607 * generated/exponent_r4.c: Regenerate.
608 * generated/spacing_r10.c: Regenerate.
609 * generated/matmul_c16.c: Regenerate.
610 * generated/pow_c4_i16.c: Regenerate.
611 * generated/maxval_r10.c: Regenerate.
612 * generated/count_4_l4.c: Regenerate.
613 * generated/shape_i16.c: Regenerate.
614 * generated/minval_i1.c: Regenerate.
615 * generated/maxloc1_4_i1.c: Regenerate.
616 * generated/matmul_r10.c: Regenerate.
617 * generated/minloc1_4_i8.c: Regenerate.
618 * generated/pow_r10_i8.c: Regenerate.
619 * generated/minloc0_8_r4.c: Regenerate.
620 * generated/in_unpack_c4.c: Regenerate.
621 * generated/matmul_l4.c: Regenerate.
622 * generated/product_i16.c: Regenerate.
623 * generated/minloc0_16_r16.c: Regenerate.
624 * generated/reshape_r8.c: Regenerate.
625 * generated/pow_r10_i16.c: Regenerate.
626 * generated/all_l4.c: Regenerate.
627 * generated/in_pack_c10.c: Regenerate.
628 * generated/minloc0_4_i4.c: Regenerate.
629 * generated/minloc0_8_i2.c: Regenerate.
630 * generated/matmul_i1.c: Regenerate.
631 * generated/reshape_c10.c: Regenerate.
632 * generated/minval_r4.c: Regenerate.
633 * generated/maxloc1_4_r4.c: Regenerate.
634 * generated/pow_r8_i16.c: Regenerate.
635 * generated/sum_i4.c: Regenerate.
636 * generated/maxval_r8.c: Regenerate.
637 * generated/count_16_l8.c: Regenerate.
638 * generated/transpose_c4.c: Regenerate.
639 * generated/eoshift1_4.c: Regenerate.
640 * generated/eoshift3_8.c: Regenerate.
641 * generated/minval_r16.c: Regenerate.
642 * generated/minloc1_4_i1.c: Regenerate.
643 * generated/minval_i2.c: Regenerate.
644 * generated/maxloc1_4_i2.c: Regenerate.
645 * generated/pow_i8_i16.c: Regenerate.
646 * generated/product_r8.c: Regenerate.
647 * generated/maxloc1_8_i8.c: Regenerate.
648 * generated/maxloc0_4_r8.c: Regenerate.
649 * generated/maxloc0_16_r16.c: Regenerate.
650 * generated/in_unpack_i4.c: Regenerate.
651 * generated/matmul_r4.c: Regenerate.
652 * generated/sum_c10.c: Regenerate.
653 * generated/minloc1_4_r16.c: Regenerate.
654 * generated/fraction_r8.c: Regenerate.
655 * generated/maxloc1_4_r16.c: Regenerate.
656 * generated/set_exponent_r4.c: Regenerate.
657 * generated/minloc0_8_r16.c: Regenerate.
658 * generated/in_unpack_c16.c: Regenerate.
659 * generated/reshape_c8.c: Regenerate.
660 * generated/maxloc0_8_r16.c: Regenerate.
661 * generated/nearest_r10.c: Regenerate.
662 * generated/maxloc0_8_i4.c: Regenerate.
663 * generated/pow_c4_i4.c: Regenerate.
664 * generated/matmul_i2.c: Regenerate.
665 * generated/minloc1_4_r4.c: Regenerate.
666 * generated/transpose_i16.c: Regenerate.
667 * generated/matmul_c10.c: Regenerate.
668 * generated/minloc0_16_i4.c: Regenerate.
669 * generated/maxloc0_16_i4.c: Regenerate.
670 * generated/pow_i8_i8.c: Regenerate.
671 * generated/nearest_r4.c: Regenerate.
672 * generated/minloc1_16_i8.c: Regenerate.
673 * generated/maxloc1_16_i8.c: Regenerate.
674 * generated/transpose_i4.c: Regenerate.
675 * generated/count_8_l4.c: Regenerate.
676 * generated/minloc1_4_i2.c: Regenerate.
677 * generated/matmul_l16.c: Regenerate.
678 * generated/maxloc1_8_i1.c: Regenerate.
679 * generated/minloc0_16_r10.c: Regenerate.
680 * generated/minloc1_8_i8.c: Regenerate.
681 * generated/minloc0_4_r8.c: Regenerate.
682 * generated/product_r16.c: Regenerate.
683 * generated/product_c8.c: Regenerate.
684 * generated/pow_r16_i16.c: Regenerate.
685 * generated/sum_r8.c: Regenerate.
686 * generated/pow_c16_i8.c: Regenerate.
687 * generated/in_pack_i16.c: Regenerate.
688 * generated/minloc0_8_i4.c: Regenerate.
689 * generated/matmul_c4.c: Regenerate.
690 * generated/minloc1_16_i16.c: Regenerate.
691 * generated/reshape_i8.c: Regenerate.
692 * generated/spacing_r8.c: Regenerate.
693 * generated/in_pack_c8.c: Regenerate.
694 * generated/maxloc1_8_r4.c: Regenerate.
695 * generated/minloc1_16_i1.c: Regenerate.
696 * generated/maxloc1_16_i1.c: Regenerate.
697 * generated/reshape_i16.c: Regenerate.
698 * generated/minval_r10.c: Regenerate.
699 * generated/pow_r4_i8.c: Regenerate.
700 * generated/minloc1_8_i1.c: Regenerate.
701 * generated/minval_i4.c: Regenerate.
702 * generated/maxloc1_4_i4.c: Regenerate.
703 * generated/maxloc1_8_i2.c: Regenerate.
704 * generated/maxval_i8.c: Regenerate.
705 * generated/eoshift3_16.c: Regenerate.
706 * generated/any_l8.c: Regenerate.
707 * generated/maxloc0_16_r10.c: Regenerate.
708 * generated/rrspacing_r4.c: Regenerate.
709 * generated/shape_i8.c: Regenerate.
710 * generated/maxloc0_8_r8.c: Regenerate.
711 * generated/minloc0_4_i16.c: Regenerate.
712 * generated/maxloc0_4_i16.c: Regenerate.
713 * generated/minloc1_4_r10.c: Regenerate.
714 * generated/minloc1_8_i16.c: Regenerate.
715 * generated/pow_c10_i8.c: Regenerate.
716 * generated/maxloc1_4_r10.c: Regenerate.
717 * generated/maxloc1_8_i16.c: Regenerate.
718 * generated/in_unpack_c10.c: Regenerate.
719 * generated/minloc0_8_r10.c: Regenerate.
720 * generated/maxloc0_8_r10.c: Regenerate.
721 * generated/minloc1_16_r4.c: Regenerate.
722 * generated/maxloc1_16_r4.c: Regenerate.
723 * generated/minloc0_16_r8.c: Regenerate.
724 * generated/pow_i16_i4.c: Regenerate.
725 * generated/product_i8.c: Regenerate.
726 * generated/maxloc0_16_r8.c: Regenerate.
727 * generated/sum_i16.c: Regenerate.
728 * generated/maxloc0_4_i8.c: Regenerate.
729 * generated/transpose_r8.c: Regenerate.
730 * generated/cshift1_8.c: Regenerate.
731 * generated/maxloc1_16_i16.c: Regenerate.
732 * generated/matmul_i4.c: Regenerate.
733 * generated/pow_c8_i4.c: Regenerate.
734 * generated/pow_i4_i4.c: Regenerate.
735 * generated/minloc1_8_r4.c: Regenerate.
736 * generated/sum_c8.c: Regenerate.
737 * generated/count_8_l16.c: Regenerate.
738 * generated/minloc1_16_i2.c: Regenerate.
739 * generated/maxloc1_16_i2.c: Regenerate.
740 * generated/in_pack_i8.c: Regenerate.
741 * generated/transpose_r16.c: Regenerate.
742 * generated/maxval_i16.c: Regenerate.
743 * generated/exponent_r8.c: Regenerate.
744 * generated/matmul_i16.c: Regenerate.
745 * generated/count_4_l8.c: Regenerate.
746 * generated/pow_c8_i16.c: Regenerate.
747 * generated/maxval_i1.c: Regenerate.
748 * generated/minloc1_4_i4.c: Regenerate.
749 * generated/minloc1_8_i2.c: Regenerate.
750 * generated/pow_c10_i16.c: Regenerate.
751 * generated/product_c16.c: Regenerate.
752 * generated/reshape_r4.c: Regenerate.
753 * generated/in_unpack_c8.c: Regenerate.
754 * generated/minloc0_8_r8.c: Regenerate.
755 * generated/matmul_l8.c: Regenerate.
756 * generated/product_r10.c: Regenerate.
757 * generated/set_exponent_r16.c: Regenerate.
758 * generated/cshift1_16.c: Regenerate.
759 * generated/product_i1.c: Regenerate.
760 * generated/all_l8.c: Regenerate.
761 * generated/maxloc0_4_i1.c: Regenerate.
762 * generated/rrspacing_r16.c: Regenerate.
763 * generated/minloc0_4_i8.c: Regenerate.
764 * generated/pow_r4_i16.c: Regenerate.
765 * generated/count_16_l4.c: Regenerate.
766 * generated/maxval_r4.c: Regenerate.
768 2007-08-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
771 * io/write.c: Revert changes from patch of 2007-08-27.
772 * io/write_float.def: Remove file, reverting addition.
774 2007-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
776 * runtime/memory.c (internal_realloc, allocate, allocate_array,
777 deallocate): Remove functions.
778 * gfortran.map (_gfortran_allocate, _gfortran_allocate_array,
779 _gfortran_deallocate, _gfortran_internal_realloc): Remove symbols.
780 * libgfortran.h (error_codes): Add comment.
782 2007-08-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
785 Revert previous patch.
787 2007-08-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
789 * io/write.c (stdbool.h): Add include. (sign_t): Move typedef to
790 new file write_float.def. Include write_float.def.
791 (extract_real): Delete. (calculate_sign): Delete.
792 (calculate_exp): Delete. (calculate_G_format): Delete.
793 (output_float): Delete. (write_float): Delete.
794 * io/write_float.def (calculate_sign): Added.
795 (output_float): Refactored to be independent of kind and added to this
796 file for inclusion. (write_infnan): New function to write "Infinite"
797 or "NaN" depending on flags passed, independent of kind.
798 (CALCULATE_EXP): New macro to build kind specific functions. Use it.
799 (OUTPUT_FLOAT_FMT_G): New macro, likewise. Use it.
800 (DTOA, DTOAL): Macros to implement "decimal to ascii".
801 (WRITE_FLOAT): New macro for kind specific write_float functions.
802 (write_float): Revised function to determine kind and use WRITE_FLOAT
803 to implement kind specific output.
805 2007-08-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
808 * io/inquire.c (inquire_via_unit): If inquiring by unit, check for
809 an error condition from the IOSTAT variable and set EXIST to false if
810 there was a bad unit number.
812 2007-08-24 Thomas Koenig <tkoenig@gcc.gnu.org>
815 * libgfortran.h: Remove GFOR_POINTER_L8_TO_L4 macro.
816 Add GFOR_POINTER_TO_L1 macro.
817 * m4/iforeach.m4(`m'name`'rtype_qual`_'atype_code):
818 Change argument 'mask' to gfc_array_l1. Adjust prototype.
819 Change mask pointer to GFC_LOGICAL_1. Multiply strides
821 * m4/ifunction.m4: Likewise.
822 * intrinsics/pack_generic.c(pack_internal): Likewise.
823 * intrinsics/unpack_generic.c(unpack_internal): Likewise.
824 * m4/matmull.m4: Switch to GFC_LOGICAL_1. Multiply strides by
825 kind of logical arguments a and b.
826 * generated/matmul_l16.c: Regenerated.
827 * generated/matmul_l4.c: Regenerated.
828 * generated/matmul_l8.c: Regenerated.
829 * generated/maxloc0_16_i1.c: Regenerated.
830 * generated/maxloc0_16_i16.c: Regenerated.
831 * generated/maxloc0_16_i2.c: Regenerated.
832 * generated/maxloc0_16_i4.c: Regenerated.
833 * generated/maxloc0_16_i8.c: Regenerated.
834 * generated/maxloc0_16_r10.c: Regenerated.
835 * generated/maxloc0_16_r16.c: Regenerated.
836 * generated/maxloc0_16_r4.c: Regenerated.
837 * generated/maxloc0_16_r8.c: Regenerated.
838 * generated/maxloc0_4_i1.c: Regenerated.
839 * generated/maxloc0_4_i16.c: Regenerated.
840 * generated/maxloc0_4_i2.c: Regenerated.
841 * generated/maxloc0_4_i4.c: Regenerated.
842 * generated/maxloc0_4_i8.c: Regenerated.
843 * generated/maxloc0_4_r10.c: Regenerated.
844 * generated/maxloc0_4_r16.c: Regenerated.
845 * generated/maxloc0_4_r4.c: Regenerated.
846 * generated/maxloc0_4_r8.c: Regenerated.
847 * generated/maxloc0_8_i1.c: Regenerated.
848 * generated/maxloc0_8_i16.c: Regenerated.
849 * generated/maxloc0_8_i2.c: Regenerated.
850 * generated/maxloc0_8_i4.c: Regenerated.
851 * generated/maxloc0_8_i8.c: Regenerated.
852 * generated/maxloc0_8_r10.c: Regenerated.
853 * generated/maxloc0_8_r16.c: Regenerated.
854 * generated/maxloc0_8_r4.c: Regenerated.
855 * generated/maxloc0_8_r8.c: Regenerated.
856 * generated/maxloc1_16_i1.c: Regenerated.
857 * generated/maxloc1_16_i16.c: Regenerated.
858 * generated/maxloc1_16_i2.c: Regenerated.
859 * generated/maxloc1_16_i4.c: Regenerated.
860 * generated/maxloc1_16_i8.c: Regenerated.
861 * generated/maxloc1_16_r10.c: Regenerated.
862 * generated/maxloc1_16_r16.c: Regenerated.
863 * generated/maxloc1_16_r4.c: Regenerated.
864 * generated/maxloc1_16_r8.c: Regenerated.
865 * generated/maxloc1_4_i1.c: Regenerated.
866 * generated/maxloc1_4_i16.c: Regenerated.
867 * generated/maxloc1_4_i2.c: Regenerated.
868 * generated/maxloc1_4_i4.c: Regenerated.
869 * generated/maxloc1_4_i8.c: Regenerated.
870 * generated/maxloc1_4_r10.c: Regenerated.
871 * generated/maxloc1_4_r16.c: Regenerated.
872 * generated/maxloc1_4_r4.c: Regenerated.
873 * generated/maxloc1_4_r8.c: Regenerated.
874 * generated/maxloc1_8_i1.c: Regenerated.
875 * generated/maxloc1_8_i16.c: Regenerated.
876 * generated/maxloc1_8_i2.c: Regenerated.
877 * generated/maxloc1_8_i4.c: Regenerated.
878 * generated/maxloc1_8_i8.c: Regenerated.
879 * generated/maxloc1_8_r10.c: Regenerated.
880 * generated/maxloc1_8_r16.c: Regenerated.
881 * generated/maxloc1_8_r4.c: Regenerated.
882 * generated/maxloc1_8_r8.c: Regenerated.
883 * generated/maxval_i1.c: Regenerated.
884 * generated/maxval_i16.c: Regenerated.
885 * generated/maxval_i2.c: Regenerated.
886 * generated/maxval_i4.c: Regenerated.
887 * generated/maxval_i8.c: Regenerated.
888 * generated/maxval_r10.c: Regenerated.
889 * generated/maxval_r16.c: Regenerated.
890 * generated/maxval_r4.c: Regenerated.
891 * generated/maxval_r8.c: Regenerated.
892 * generated/minloc0_16_i1.c: Regenerated.
893 * generated/minloc0_16_i16.c: Regenerated.
894 * generated/minloc0_16_i2.c: Regenerated.
895 * generated/minloc0_16_i4.c: Regenerated.
896 * generated/minloc0_16_i8.c: Regenerated.
897 * generated/minloc0_16_r10.c: Regenerated.
898 * generated/minloc0_16_r16.c: Regenerated.
899 * generated/minloc0_16_r4.c: Regenerated.
900 * generated/minloc0_16_r8.c: Regenerated.
901 * generated/minloc0_4_i1.c: Regenerated.
902 * generated/minloc0_4_i16.c: Regenerated.
903 * generated/minloc0_4_i2.c: Regenerated.
904 * generated/minloc0_4_i4.c: Regenerated.
905 * generated/minloc0_4_i8.c: Regenerated.
906 * generated/minloc0_4_r10.c: Regenerated.
907 * generated/minloc0_4_r16.c: Regenerated.
908 * generated/minloc0_4_r4.c: Regenerated.
909 * generated/minloc0_4_r8.c: Regenerated.
910 * generated/minloc0_8_i1.c: Regenerated.
911 * generated/minloc0_8_i16.c: Regenerated.
912 * generated/minloc0_8_i2.c: Regenerated.
913 * generated/minloc0_8_i4.c: Regenerated.
914 * generated/minloc0_8_i8.c: Regenerated.
915 * generated/minloc0_8_r10.c: Regenerated.
916 * generated/minloc0_8_r16.c: Regenerated.
917 * generated/minloc0_8_r4.c: Regenerated.
918 * generated/minloc0_8_r8.c: Regenerated.
919 * generated/minloc1_16_i1.c: Regenerated.
920 * generated/minloc1_16_i16.c: Regenerated.
921 * generated/minloc1_16_i2.c: Regenerated.
922 * generated/minloc1_16_i4.c: Regenerated.
923 * generated/minloc1_16_i8.c: Regenerated.
924 * generated/minloc1_16_r10.c: Regenerated.
925 * generated/minloc1_16_r16.c: Regenerated.
926 * generated/minloc1_16_r4.c: Regenerated.
927 * generated/minloc1_16_r8.c: Regenerated.
928 * generated/minloc1_4_i1.c: Regenerated.
929 * generated/minloc1_4_i16.c: Regenerated.
930 * generated/minloc1_4_i2.c: Regenerated.
931 * generated/minloc1_4_i4.c: Regenerated.
932 * generated/minloc1_4_i8.c: Regenerated.
933 * generated/minloc1_4_r10.c: Regenerated.
934 * generated/minloc1_4_r16.c: Regenerated.
935 * generated/minloc1_4_r4.c: Regenerated.
936 * generated/minloc1_4_r8.c: Regenerated.
937 * generated/minloc1_8_i1.c: Regenerated.
938 * generated/minloc1_8_i16.c: Regenerated.
939 * generated/minloc1_8_i2.c: Regenerated.
940 * generated/minloc1_8_i4.c: Regenerated.
941 * generated/minloc1_8_i8.c: Regenerated.
942 * generated/minloc1_8_r10.c: Regenerated.
943 * generated/minloc1_8_r16.c: Regenerated.
944 * generated/minloc1_8_r4.c: Regenerated.
945 * generated/minloc1_8_r8.c: Regenerated.
946 * generated/minval_i1.c: Regenerated.
947 * generated/minval_i16.c: Regenerated.
948 * generated/minval_i2.c: Regenerated.
949 * generated/minval_i4.c: Regenerated.
950 * generated/minval_i8.c: Regenerated.
951 * generated/minval_r10.c: Regenerated.
952 * generated/minval_r16.c: Regenerated.
953 * generated/minval_r4.c: Regenerated.
954 * generated/minval_r8.c: Regenerated.
955 * generated/product_c10.c: Regenerated.
956 * generated/product_c16.c: Regenerated.
957 * generated/product_c4.c: Regenerated.
958 * generated/product_c8.c: Regenerated.
959 * generated/product_i1.c: Regenerated.
960 * generated/product_i16.c: Regenerated.
961 * generated/product_i2.c: Regenerated.
962 * generated/product_i4.c: Regenerated.
963 * generated/product_i8.c: Regenerated.
964 * generated/product_r10.c: Regenerated.
965 * generated/product_r16.c: Regenerated.
966 * generated/product_r4.c: Regenerated.
967 * generated/product_r8.c: Regenerated.
968 * generated/sum_c10.c: Regenerated.
969 * generated/sum_c16.c: Regenerated.
970 * generated/sum_c4.c: Regenerated.
971 * generated/sum_c8.c: Regenerated.
972 * generated/sum_i1.c: Regenerated.
973 * generated/sum_i16.c: Regenerated.
974 * generated/sum_i2.c: Regenerated.
975 * generated/sum_i4.c: Regenerated.
976 * generated/sum_i8.c: Regenerated.
977 * generated/sum_r10.c: Regenerated.
978 * generated/sum_r16.c: Regenerated.
979 * generated/sum_r4.c: Regenerated.
980 * generated/sum_r8.c: Regenerated.
982 2007-08-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
985 * acinclude.m4 (LIBGFOR_CHECK_MINGW_SNPRINTF): New check.
986 * configure.ac: Use LIBGFOR_CHECK_MINGW_SNPRINTF.
987 * libgfortran.h: If HAVE_MINGW_SNPRINTF is true, use __mingw_snprintf
989 * config.h.in: Regenerate.
990 * configure: Regenerate.
992 2007-08-22 Bernhard Fischer <rep.dot.nop@gmail.com>
994 * libgfortran/Makefile.am (AM_CPPFLAGS): Commentary typo fix.
996 2007-08-17 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
999 * intrinsics/string_intrinsics.c (string_trim, string_minmax): Fix
1000 the zero-length result case.
1002 2007-08-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1005 * intrinsics/random.c (random_seed_i8): Fix code logic.
1007 2007-08-13 Danny Smith <dannysmit@users.sourceforge.net>
1009 * acinclude.m4 (GTHREAD_USE_WEAK) Define to 0 for mingw32.
1010 * configure: Regenerate.
1012 2007-08-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1016 * intrinsics/random.c (random_seed): Rename into random_seed_i4.
1017 (random_seed_i8): New function.
1018 * gfortran.map (GFORTRAN_1.0): Remove _gfortran_random_seed,
1019 add _gfortran_random_seed_i4 and _gfortran_random_seed_i8.
1020 * libgfortran.h (iexport_proto): Replace random_seed by
1021 random_seed_i4 and random_seed_i8.
1022 * runtime/main.c (init): Call the new random_seed_i4.
1024 2007-08-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1025 Tobias Burnus <burnus@gcc.gnu.org>
1028 * runtime/backtrace.c (show_backtrace): Skip _gfortrani_handler
1029 when displaying backtrace.
1030 * runtime/compile_options.c: Include <signal.h>.
1031 (handler): New function.
1032 (set_options): Set signal handlers for backtrace.
1033 * libgfortran.h (handler): Add prototype.
1035 2007-08-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1037 * intrinsics/string_intrinsics.c (compare_string): Return an int.
1038 * libgfortran.h (compare_string): Likewise.
1040 2007-08-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1043 * runtime/error.c (runtime_error_at): Add a variable number of
1045 * libgfortran.h (runtime_error_at): Update prototype.
1047 2007-08-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1050 * intrinsics/associated.c: Change return type of associated into
1053 2007-08-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1056 * io/list_read.c (find_nml_name): Check for a space after a namelist
1059 2007-08-09 Tobias Burnus <burnus@net-b.de>
1062 * io/format.c (next_char): Treat '\t' as ' ' in format specification.
1064 2007-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1067 * intrinsics/signal.c: Create specific versions of alarm_sub and
1068 alarm_sub_int according to the integer kind of the last argument.
1069 * gfortran.map (GFORTRAN_1.0): Remove _gfortran_alarm_sub and
1070 _gfortran_alarm_sub_int, add _gfortran_alarm_sub_i4,
1071 _gfortran_alarm_sub_i8, _gfortran_alarm_sub_int_i4 and
1072 _gfortran_alarm_sub_int_i8.
1074 2007-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1077 * intrinsics/string_intrinsics.c (string_minmax): New function
1079 * gfortran.map (GFORTRAN_1.0): Add _gfortran_string_minmax
1081 2007-08-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1084 * intrinsics/c99_functions.c (roundl): Provide fallback
1085 implementation for systems without ceill.
1086 * c99_protos.h (roundl): Define prototype in all cases.
1088 2007-08-03 Thomas Koenig <tkoenig@gcc.gnu.org>
1091 * io/unix.c: If there is no vsnprintf, use vsprintf and issue
1092 a fatal error when a buffer overrun occurs.
1094 2007-08-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1097 * intrinsics/c99_functions.c (roundl,lroundf,lround,lroundl,
1098 llroundf,llround,llroundl): New functions.
1099 * c99_protos.h (roundl,lroundf,lround,lroundl,llroundf,llround,
1100 llroundl): New prototypes.
1101 * configure.ac: Check for lroundf, lround, lroundl, llroundf,
1102 llround and llroundl.
1103 * configure: Regenerate.
1104 * Makefile.in: Regenerate.
1105 * config.h.in: Regenerate.
1107 2007-07-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1109 * libgfortran.h: Include <stdarg.h>.
1111 2007-07-29 Thomas Koenig <tkoenig@gcc.gnu.org>
1115 * configure.ac: Added checks for presence of stdio.h and
1116 stdarg.h. Test presence of vsnprintf().
1117 * configure: Regenerated.
1118 * config.h.in: Regenerated.
1119 * libgfortran.h: Include <stdio.h>. Add printf attribute to
1120 prototype of runtime_error. Remove prototype for st_sprintf.
1121 Add prototype for st_vprintf.
1122 * runtime/main.c (store_exec_path): Replace st_sprintf by sprintf.
1123 * runtime/error.c (st_sprintf): Remove.
1124 (runtime_error): Rewrite as a variadic function. Call
1126 * intrinsics/pack_generic.c: Output extents of LHS and RHS for
1128 * io/open.c (new_unit): Replace st_sprintf by sprintf.
1129 * io/list_read.c (convert_integer): Likewise.
1130 (parse_repeat): Likewise.
1131 (read_logical): Likewise.
1132 (read_character): Likewise.
1133 (parse_real): Likewise.
1134 (read_real): Likewise.
1135 (check_type): Likewise.
1136 (nml_parse_qualifyer): Likewise.
1137 (nml_read_obj): Likewise.
1138 (nml_get_ojb_data): Likewise.
1139 * io/unix.c (init_error_stream): Remove.
1140 (tempfile): Replace st_sprintf by sprintf.
1141 (st_vprintf): New function.
1142 (st_printf): Rewrite to call st_vprintf.
1143 * io/transfer.c (require_type): Replace st_sprintf by sprintf.
1144 * io/format.c (format_error): Likewise.
1145 * io/write.c (nml_write_obj): Likewise.
1147 2007-07-27 Janne Blomqvist <jb@gcc.gnu.org>
1149 * io/transfer.c (st_set_nml_var_dim): Use index_type instead of
1150 GFC_INTEGER_4 for array descriptor triplets.
1152 2007-07-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1154 * io/unix.c (stream_ttyname): Mark argument as potentialy unused.
1156 2007-07-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1159 * runtime/select.c (select_string): Adjust prototype and function
1160 so that the return value is an integer, not a pointer.
1162 2007-07-24 Tobias Burnus <burnus@net-b.de>
1164 * libgfortran.h: Add bounds_check to compile_options_t.
1166 2007-07-24 Thomas Koenig <tkoenig@gcc.gnu.org>
1169 * libgfortran.h: Add bounds_check to compile_options_t.
1170 * runtime/compile_options.c (set_options): Add handling
1171 of compile_options.bounds_check.
1172 * intrinsics/pack_generic.c (pack_internal): Also determine
1173 the number of elements if compile_options.bounds_check is
1174 true. Raise runtime error if a different array shape is
1177 2007-07-23 Christopher D. Rickett <crickett@lanl.gov>
1180 * intrinsics/iso_c_binding.c (c_funloc): Remove.
1181 * intrinsics/iso_c_binding.h: Remove c_funloc.
1182 * gfortran.map: Ditto.
1184 2007-07-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1186 * io/read.c (convert_real): Generate error only on EINVAL.
1188 2007-07-21 Christopher D. Rickett <crickett@lanl.gov>
1191 * libgfortran/intrinsics/iso_c_generated_procs.c: Add c_f_pointer
1192 for character/string arguments.
1193 * libgfortran/intrinsic/iso_c_binding.c (c_f_pointer_u0): Allow
1194 the optional SHAPE arg to be any valid integer kind.
1195 * libgfortran/gfortran.map: Add c_f_pointer_s0.
1196 * libgfortran/mk-kinds-h.sh: Save smallest integer kind as default
1198 * libgfortran/intrinsics/iso_c_generated_procs.c: Add versions of
1199 c_f_pointer for complex and logical types.
1200 * libgfortran/gfortran.map: Add c_f_pointer versions for logical
1203 2007-07-19 Christopher D. Rickett <crickett@lanl.gov>
1206 * libgfortran/intrinsics/iso_c_binding.c: Remove C_LOC.
1207 * libgfortran/intrinsics/iso_c_binding.h: Ditto.
1208 * libgfortran/gfortran.map: Ditto.
1210 2007-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1211 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1214 * runtime/compile_options.c (set_std): Remove.
1215 (set_options): New function.
1216 (init_compile_options): Add initialization for -fsign-zero option.
1217 * gfortran.map (GFORTRAN_1.0): Rename _gfortran_set_std into
1218 _gfortran_set_options.
1219 * libgfortran.h (compile_options_t): Add sign_zero field.
1220 * io/write.c (output_float): Use the sign bit of the value to determine
1221 if a negative sign should be emitted for zero values. Do not emit the
1222 negative sign for zero if -fno-sign-zero was set during compile.
1224 2007-07-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1226 PR libgfortran/32752
1227 * io/unix.c (unix_stream): Move buffer pointer adjacent to
1229 * io/transfer.c (formatted_transfer_scalar): If stream I/O, set
1230 bytes_used to zero. Fix off by one error in calculation of pos and
1231 skips. Eliminate duplicate pending_spaces check.
1233 2007-07-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1236 * intrinsics/mvbits.c: Change prototype so that FROMPOS, LEN and
1237 TOPOS arguments are C int.
1239 2007-07-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1241 PR libgfortran/32702
1242 * io/unix.c (unix_stream): Restore buffer pointer and small_buffer.
1243 (fd_alloc): If the number of bytes needed is greater than the default
1244 BUFFER_SIZE, allocate a new buffer large enough. Free the old buffer
1245 if necessary. (fd_sfree): Restore use of buffer pointer.
1246 (fd_close): Likewise. (fd_open): Likewise.
1247 (init_error_stream): Likewise.
1249 2007-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1252 * m4/matmul.m4: When the dimension of b is incorrect,
1253 raise a runtime error instead of a failed assertion.
1254 * generated/matmul_i1.c: Regenerated.
1255 * generated/matmul_i2.c: Regenerated.
1256 * generated/matmul_i4.c: Regenerated.
1257 * generated/matmul_i8.c: Regenerated.
1258 * generated/matmul_i16.c: Regenerated.
1259 * generated/matmul_r4.c: Regenerated.
1260 * generated/matmul_r8.c: Regenerated.
1261 * generated/matmul_r10.c: Regenerated.
1262 * generated/matmul_r16.c: Regenerated.
1264 2007-07-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1266 PR libgfortran/32678
1267 * io/transfer.c (formatted_transfer_scalar): Don't allow
1268 pending_spaces to go negative.
1270 2007-07-08 Thomas Koenig <tkoenig@gcc.gnu.org>
1273 * intrinsics/unpack_generic.c: If the destination array is
1274 empty, return early.
1276 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1278 * aclocal.m4: Regenerated.
1280 2007-07-04 David Edelsohn <edelsohn@gnu.org>
1282 * configure.ac: SUBST CFLAGS.
1283 * configure: Regenerate.
1285 2007-07-03 Janne Blomqvist <jb@gcc.gnu.org>
1287 * libgfortran.h: Mark internal_malloc_size as a malloc function.
1288 * runtime/memory.c (internal_realloc_size): Remove.
1289 (internal_realloc): Call realloc directly instead of
1290 internal_realloc_size.
1291 (allocate_size): Remove.
1292 (allocate): Call malloc directly instead of allocate_size, mark as
1295 2007-07-02 Steven G. Kargl <kargl@gcc.gnu.org>
1297 Restore collateral damage from ISO C Binding merge.
1299 2007-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1301 PR libgfortran/32456
1302 * io/unit.c (filename_from_unit): Don't use find_unit, instead search
1305 2007-07-02 Steven G. Kargl <kargl@gcc.gnu.org>
1307 * Makefile.in: Regenerated with automake 1.9.6.
1309 2007-07-02 Steven G. Kargl <kargl@gcc.gnu.org>
1311 * Makefile.in: Remove extraneous kill.lo rule.
1313 2007-07-02 Janne Blomqvist <jb@gcc.gnu.org>
1316 * generated/pow_r*_i4.c: Removed.
1318 2007-07-01 Christopher D. Rickett <crickett@lanl.gov>
1320 * Makefile.in: Add support for iso_c_generated_procs.c and
1322 * Makefile.am: Ditto.
1323 * intrinsics/iso_c_generated_procs.c: New file containing helper
1325 * intrinsics/iso_c_binding.c: Ditto.
1326 * intrinsics/iso_c_binding.h: New file
1327 * gfortran.map: Include the __iso_c_binding_c_* functions.
1328 * libgfortran.h: define GFC_NUM_RANK_BITS.
1330 2007-07-01 Janne Blomqvist <jb@gcc.gnu.org>
1333 * Makefile.am: Don't generate real**int4 pow functions.
1334 * gfortran.map: Remove real**int4 pow symbols.
1335 * Makefile.in: Regenerated.
1337 2007-07-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1339 PR libgfortran/32554
1340 * io/write.c (output_float): Set edigits to a fixed size, avoiding
1341 variation in field width calculation and eliminate buffer overrun.
1343 2007-07-01 Janne Blomqvist <jb@gcc.gnu.org>
1345 * runtime/memory.c (internal_realloc): Use index_type for size
1346 argument instead of GFC_INTEGER_4.
1347 (allocate_array): Likewise.
1348 (allocate): Likewise, add ifdef around unnecessary check.
1349 (internal_reallo64): Remove.
1350 (allocate_array64): Remove.
1351 (allocate64): Remove.
1352 * gfortran.map: Remove symbols for 64-bit allocation functions.
1354 2007-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1356 PR libgfortran/32456
1357 * io/unit.c (filename_from_unit): Don't use find_unit, instead search
1360 2007-06-24 Adam Nemet <anemet@caviumnetworks.com>
1363 * runtime/backtrace.c (local_strcasestr): Rename from strcasestr.
1364 (show_backtrace): Rename strcasestr to local_strcasestr.
1366 2007-06-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1368 PR libgfortran/32456
1369 * runtime/error.c (show_locus): Update to emit the unit number
1370 and file name involved with the error. Use new function
1372 * libgfortran.h (filename_from_unit): Declare new function.
1373 * io/unit.c (init_units): Set the unit file name for stdin, stdout,
1374 and stderr for use later in error reporting.
1375 (filename_from_unit): Add this new function.
1377 2007-06-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1379 PR libgfortran/32446
1380 * io/write.c (output_float): Calculate ndigits correctly for large
1381 numbered formats that must pad zeros before the decimal point.
1383 2007-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1386 * runtime/backtrace.c (show_backtrace): Only use snprintf if
1389 2007-06-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1391 PR libgfortran/32235
1392 * io/transfer.c (st_read): Remove test for end of file condition.
1393 (next_record_r): Add test for end of file condition.
1395 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1397 * configure: Regenerate.
1399 2007-05-28 Tobias Burnus <burnus@net-b.de>
1402 * runtime/memory.c (allocate_size): Use ERROR_ALLOCATION.
1403 (allocate,allocate64): Use stat variable if present.
1405 2007-05-27 Janne Blomqvist <jb@gcc.gnu.org>
1407 * runtime/string.c (compare0): Use gfc_charlen_type instead of
1409 (fstrlen): Likewise.
1410 (find_option): Likewise.
1411 (fstrcpy): Use gfc_charlen_type instead of int, return length.
1412 (cf_strcpy): Likewise.
1413 * libgfortran.h: Change string prototypes to use gfc_charlen_type.
1414 * io/open.c (new_unit): Use snprintf if available.
1415 * io/list_read.c (nml_touch_nodes): Use memcpy instead of
1417 (nml_read_obj): Likewise.
1418 * io/transfer.c (st_set_nml_var): Likewise.
1419 * io/write.c (output_float): Use snprintf if available.
1420 (nml_write_obj) Use memcpy instead of strcpy/strcat.
1422 2007-05-26 Janne Blomqvist <jb@gcc.gnu.org>
1424 * io/unix.c (unix_stream): Rearrange struct members, remove
1426 (int_stream): New struct.
1427 (fd_alloc): Always use existing buffer, never reallocate.
1428 (fd_sfree): Remove check for buffer != small_buffer.
1429 (fd_close): Likewise.
1430 (mem_alloc_r_at): Change to use int_stream.
1431 (mem_alloc_w_at): Likewise.
1432 (mem_read): Likewise.
1433 (mem_write): Likewise.
1434 (mem_set): Likewise.
1435 (mem_truncate): Likewise.
1436 (mem_close): Likewise.
1437 (mem_sfree): Likewise.
1438 (empty_internal_buffer): Likewise.
1439 (open_internal): Likewise.
1441 2007-05-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1443 * io/transfer.c (unformatted_read): Use size from front end
1444 eliminating use of size_from_real_kind.
1445 (unformatted_write): Ditto.
1447 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1449 * Makefile.in: Regenerate.
1450 * configure: Regenerate.
1451 * aclocal.m4: Regenerate.
1453 2007-05-22 Tobias Burnus <burnus@net-b.de>
1455 * libgfortran.h: Mark stop_numeric as noreturn.
1457 2007-05-22 Tobias Burnus <burnus@net-b.de>
1459 PR libgfortran/31295
1460 * intrinsics/eoshift0.c (eoshift0): Silence uninitialized warning.
1461 * intrinsics/eoshift2.c (eoshift2): Ditto.
1463 2007-05-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1466 * intrinsics/ishftc.c (ishftc4, ishftc8, ishftc16): Fix mask to handle
1467 shift of bit-size number of bits.
1469 2007-05-17 Tobias Burnus <burnus@net-b.de>
1472 * runtime/environ.c (mark_range): Fix setting default convert unit.
1474 2007-05-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1477 * intrinsics/string_intrinsics.c (string_trim): Set result to null if
1478 string length is zero.
1480 2007-05-15 Tobias Burnus <burnus@net-b.de>
1483 * io/transfer.c (unformatted_read): Use proper size for real(10).
1484 (unformatted_write): Ditto.
1486 2007-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1489 * runtime/memory.c (internal_malloc, internal_malloc64,
1490 internal_free): Remove.
1491 * runtime/error.c (os_error): Export function.
1492 * intrinsics/move_alloc.c: Include stdlib.h.
1493 (move_alloc): Call free instead of internal_free.
1494 (move_alloc_c): Wrap long lines.
1495 * libgfortran.h (os_error): Export prototype.
1496 (internal_free): Remove prototype.
1497 * gfortran.map (GFORTRAN_1.0): Remove _gfortran_internal_free,
1498 _gfortran_internal_malloc and _gfortran_internal_malloc64.
1499 Add _gfortran_os_error.
1501 2007-05-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1504 * io/unix.c (fd_alloc_r_at): Fix calculation of physical offset.
1506 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1509 * intrinsics/system.c (system_sub): Call flush_all_units.
1510 * io/io.h (flush_all_units): Move prototype to libgfortran.h.
1511 * libgfortran.h (flush_all_units): Add prototype.
1513 2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1516 * runtime/error.c (runtime_error_at): New function.
1517 (generate_error): Export this function.
1518 * gfortran.map: Add _gfortran_generate_error and
1519 _gfortran_runtime_error_at.
1520 * libgfortran.h: Add comment to reference error codes in front end.
1521 (library_start): Locate prototype with library_end macro and add
1522 a new comment. Add prototype for runtime_error_at. Export prototype
1524 * io/lock.c (library_start): Fix check for error condition.
1525 * io/transfer.c (data_transfer_init): Add library check.
1527 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
1530 * io/intrinsics.c (fseek_sub): New.
1531 * io/unix.c (fd_fseek): Change logical and physical offsets only
1533 * gfortran.map (fseek_sub): New.
1535 2007-05-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1538 * io/transfer.c (transfer_character): Avoid passing a NULL
1539 pointer as source to the transfer routines, if the string length
1542 2007-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1545 * io/list_read.c (next_char): Fix whitespace.
1546 * io/io.h: Remove prototypes and define macros for is_array_io,
1547 is_stream_io, and is_internal_unit.
1548 * io/unit.c (is_array_io), (is_internal_unit), (is_stream_io): Delete
1550 * io/transfer.c (read_sf): Change handling of internal_unit to make a
1551 single call to salloc_r and use memcpy to transfer the data.
1553 2007-04-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1556 * io/file_pos.c (st_backspace): Set flags.position for end of file
1557 condition and use new function update_position.
1558 (st_endfile): Use new function update_position.
1559 * io/io.h: Add prototype for new function.
1560 * io/inquire.c (inquire_via_unit): If not direct access, set NEXTREC
1562 * io/unit.c (update_position): New function to update position info
1564 * io/transfer.c (next_record): Fix typo and use new function.
1566 2007-04-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1569 * intrinsics/getlog.c: Use getpwuid and geteuid instead of
1570 getlogin if they are available.
1571 * configure.ac: Add checks for getpwuid and geteuid.
1572 * configure: Regenerate.
1573 * config.h.in: Regenerate.
1575 2007-04-25 Janne Blomqvist <jb@gcc.gnu.org>
1577 * configure: Regenerate using autoconf 2.59.
1578 * Makefile.in: Likewise.
1579 * config.h.in: Likewise.
1581 2007-04-24 Janne Blomqvist <jb@gcc.gnu.org>
1584 * configure.ac: New test to determine if symbol versioning is
1586 * Makefile.am: Use result of above test to add appropriate linker
1588 * gfortran.map: New file.
1589 * configure: Regenerated.
1590 * Makefile.in: Regenerated.
1591 * config.h.in: Regenerated.
1593 2007-04-23 Thomas Koenig <tkoenig@gcc.gnu.org>
1596 * io/transfer.c (read_block_direct): Instead of calling us_read,
1597 set dtp->u.p.current_unit->current_record = 0 so that pre_position
1598 will read the record marker.
1599 (data_transfer_init): For different error conditions, call
1600 generate_error, then return.
1602 2007-04-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1604 * runtime/main.c (please_free_exe_path_when_done): New variable.
1605 (store_exe_path): Initialize character buffer, and mark whether
1606 exe_path should be free'd by the library destructor function.
1607 (cleanup): Only free exe_path if needed.
1609 2007-04-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1610 Tobias Burnus <burnus@net-b.de>
1614 * intrinsics/cshift0.c (cshift0): Initialize sstride[0] and rstride[0].
1615 * intrinsics/unpack_generic.c (unpack0, unpack0_char): Zero the
1616 array structures we pass to unpack_internal.
1618 2007-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1620 * io/open.c (test_endfile): Revert changes for 31052, restoring this
1623 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1625 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS. Add libgfortran_la_LINK.
1626 * Makefile.in: Regenerate.
1628 2007-04-11 Kai Tietz <kai.tietz@onevision.com>
1630 * configure: Regenerate.
1632 2007-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1634 * intrinsics/cpu_time.c: Don't include headers already included
1635 by libgfortran.h. Protect inclusion of sys/times.h.
1636 * configure.ac: Remove unneeded checks for finit, stdio.h,
1637 stddef.h, math.h and sys/params.h.
1638 * config/fpu-aix.h: Don't include headers already included by
1640 * config/fpu-sysv.h: Likewise.
1641 * io/write.c: Likewise.
1642 * m4/minloc1.m4: Likewise.
1643 * m4/maxloc1.m4: Likewise.
1644 * m4/fraction.m4: Likewise.
1645 * m4/set_exponent.m4: Likewise.
1646 * m4/spacing.m4: Likewise.
1647 * m4/minval.m4: Likewise.
1648 * m4/maxval.m4: Likewise.
1649 * m4/exponent.m4: Likewise.
1650 * m4/nearest.m4: Likewise.
1651 * m4/minloc0.m4: Likewise.
1652 * m4/maxloc0.m4: Likewise.
1653 * m4/rrspacing.m4: Likewise.
1654 * runtime/main.c: Likewise.
1655 * runtime/error.c: Likewise.
1656 * intrinsics/system_clock.c: Likewise.
1657 * intrinsics/etime.c: Likewise.
1658 * intrinsics/stat.c: Likewise.
1659 * intrinsics/date_and_time.c: Likewise.
1660 * intrinsics/env.c: Likewise.
1661 * intrinsics/kill.c: Likewise.
1662 * intrinsics/getXid.c: Likewise.
1663 * intrinsics/chmod.c: Likewise.
1664 * intrinsics/args.c: Likewise.
1665 * intrinsics/c99_functions.c: Likewise.
1666 * generated/minval_r8.c: Regenerate.
1667 * generated/maxloc1_4_r8.c: Regenerate.
1668 * generated/minloc1_16_r16.c: Regenerate.
1669 * generated/maxval_i2.c: Regenerate.
1670 * generated/maxloc1_8_i4.c: Regenerate.
1671 * generated/exponent_r16.c: Regenerate.
1672 * generated/maxloc0_4_r4.c: Regenerate.
1673 * generated/fraction_r16.c: Regenerate.
1674 * generated/fraction_r4.c: Regenerate.
1675 * generated/minloc0_4_r16.c: Regenerate.
1676 * generated/minloc0_4_i1.c: Regenerate.
1677 * generated/maxloc0_4_r16.c: Regenerate.
1678 * generated/maxloc0_4_i2.c: Regenerate.
1679 * generated/minloc1_8_r16.c: Regenerate.
1680 * generated/maxloc1_8_r16.c: Regenerate.
1681 * generated/set_exponent_r8.c: Regenerate.
1682 * generated/maxloc0_8_i8.c: Regenerate.
1683 * generated/minloc1_4_r8.c: Regenerate.
1684 * generated/maxloc1_16_r16.c: Regenerate.
1685 * generated/minloc1_16_i4.c: Regenerate.
1686 * generated/maxloc1_16_i4.c: Regenerate.
1687 * generated/minloc0_16_i8.c: Regenerate.
1688 * generated/maxloc0_16_i8.c: Regenerate.
1689 * generated/nearest_r8.c: Regenerate.
1690 * generated/spacing_r16.c: Regenerate.
1691 * generated/maxval_r16.c: Regenerate.
1692 * generated/minloc1_8_i4.c: Regenerate.
1693 * generated/minloc0_16_i16.c: Regenerate.
1694 * generated/minloc0_4_r4.c: Regenerate.
1695 * generated/set_exponent_r10.c: Regenerate.
1696 * generated/rrspacing_r10.c: Regenerate.
1697 * generated/minloc0_4_i2.c: Regenerate.
1698 * generated/maxloc0_8_i1.c: Regenerate.
1699 * generated/minloc0_8_i8.c: Regenerate.
1700 * generated/spacing_r4.c: Regenerate.
1701 * generated/minloc1_16_r10.c: Regenerate.
1702 * generated/minloc0_16_i1.c: Regenerate.
1703 * generated/maxloc0_16_i1.c: Regenerate.
1704 * generated/maxloc1_8_r8.c: Regenerate.
1705 * generated/minval_i16.c: Regenerate.
1706 * generated/exponent_r10.c: Regenerate.
1707 * generated/maxval_i4.c: Regenerate.
1708 * generated/minval_i8.c: Regenerate.
1709 * generated/maxloc1_4_i8.c: Regenerate.
1710 * generated/fraction_r10.c: Regenerate.
1711 * generated/maxloc0_16_i16.c: Regenerate.
1712 * generated/maxloc0_8_r4.c: Regenerate.
1713 * generated/rrspacing_r8.c: Regenerate.
1714 * generated/minloc1_4_i16.c: Regenerate.
1715 * generated/minloc0_4_r10.c: Regenerate.
1716 * generated/maxloc1_4_i16.c: Regenerate.
1717 * generated/minloc0_8_i16.c: Regenerate.
1718 * generated/maxloc0_4_r10.c: Regenerate.
1719 * generated/maxloc0_8_i16.c: Regenerate.
1720 * generated/minloc1_8_r10.c: Regenerate.
1721 * generated/minloc0_16_r4.c: Regenerate.
1722 * generated/maxloc1_8_r10.c: Regenerate.
1723 * generated/maxloc0_16_r4.c: Regenerate.
1724 * generated/minloc1_16_r8.c: Regenerate.
1725 * generated/minloc0_8_i1.c: Regenerate.
1726 * generated/maxloc0_4_i4.c: Regenerate.
1727 * generated/maxloc1_16_r8.c: Regenerate.
1728 * generated/maxloc0_8_i2.c: Regenerate.
1729 * generated/nearest_r16.c: Regenerate.
1730 * generated/maxloc1_16_r10.c: Regenerate.
1731 * generated/minloc0_16_i2.c: Regenerate.
1732 * generated/minloc1_8_r8.c: Regenerate.
1733 * generated/maxloc0_16_i2.c: Regenerate.
1734 * generated/exponent_r4.c: Regenerate.
1735 * generated/spacing_r10.c: Regenerate.
1736 * generated/maxval_r10.c: Regenerate.
1737 * generated/minval_i1.c: Regenerate.
1738 * generated/maxloc1_4_i1.c: Regenerate.
1739 * generated/minloc1_4_i8.c: Regenerate.
1740 * generated/minloc0_8_r4.c: Regenerate.
1741 * generated/minloc0_16_r16.c: Regenerate.
1742 * generated/minloc0_4_i4.c: Regenerate.
1743 * generated/minloc0_8_i2.c: Regenerate.
1744 * generated/minval_r4.c: Regenerate.
1745 * generated/maxloc1_4_r4.c: Regenerate.
1746 * generated/maxval_r8.c: Regenerate.
1747 * generated/minval_r16.c: Regenerate.
1748 * generated/minloc1_4_i1.c: Regenerate.
1749 * generated/minval_i2.c: Regenerate.
1750 * generated/maxloc1_4_i2.c: Regenerate.
1751 * generated/maxloc1_8_i8.c: Regenerate.
1752 * generated/maxloc0_4_r8.c: Regenerate.
1753 * generated/maxloc0_16_r16.c: Regenerate.
1754 * generated/minloc1_4_r16.c: Regenerate.
1755 * generated/fraction_r8.c: Regenerate.
1756 * generated/maxloc1_4_r16.c: Regenerate.
1757 * generated/set_exponent_r4.c: Regenerate.
1758 * generated/minloc0_8_r16.c: Regenerate.
1759 * generated/maxloc0_8_r16.c: Regenerate.
1760 * generated/nearest_r10.c: Regenerate.
1761 * generated/maxloc0_8_i4.c: Regenerate.
1762 * generated/minloc1_4_r4.c: Regenerate.
1763 * generated/minloc0_16_i4.c: Regenerate.
1764 * generated/maxloc0_16_i4.c: Regenerate.
1765 * generated/nearest_r4.c: Regenerate.
1766 * generated/minloc1_16_i8.c: Regenerate.
1767 * generated/maxloc1_16_i8.c: Regenerate.
1768 * generated/minloc1_4_i2.c: Regenerate.
1769 * generated/maxloc1_8_i1.c: Regenerate.
1770 * generated/minloc0_16_r10.c: Regenerate.
1771 * generated/minloc1_8_i8.c: Regenerate.
1772 * generated/minloc0_4_r8.c: Regenerate.
1773 * generated/minloc0_8_i4.c: Regenerate.
1774 * generated/minloc1_16_i16.c: Regenerate.
1775 * generated/spacing_r8.c: Regenerate.
1776 * generated/maxloc1_8_r4.c: Regenerate.
1777 * generated/minloc1_16_i1.c: Regenerate.
1778 * generated/maxloc1_16_i1.c: Regenerate.
1779 * generated/minval_r10.c: Regenerate.
1780 * generated/minval_i4.c: Regenerate.
1781 * generated/minloc1_8_i1.c: Regenerate.
1782 * generated/maxloc1_4_i4.c: Regenerate.
1783 * generated/maxloc1_8_i2.c: Regenerate.
1784 * generated/maxval_i8.c: Regenerate.
1785 * generated/maxloc0_16_r10.c: Regenerate.
1786 * generated/rrspacing_r4.c: Regenerate.
1787 * generated/minloc0_4_i16.c: Regenerate.
1788 * generated/maxloc0_8_r8.c: Regenerate.
1789 * generated/maxloc0_4_i16.c: Regenerate.
1790 * generated/minloc1_4_r10.c: Regenerate.
1791 * generated/minloc1_8_i16.c: Regenerate.
1792 * generated/maxloc1_4_r10.c: Regenerate.
1793 * generated/minloc0_8_r10.c: Regenerate.
1794 * generated/maxloc1_8_i16.c: Regenerate.
1795 * generated/maxloc0_8_r10.c: Regenerate.
1796 * generated/minloc1_16_r4.c: Regenerate.
1797 * generated/maxloc1_16_r4.c: Regenerate.
1798 * generated/minloc0_16_r8.c: Regenerate.
1799 * generated/maxloc0_16_r8.c: Regenerate.
1800 * generated/maxloc0_4_i8.c: Regenerate.
1801 * generated/maxloc1_16_i16.c: Regenerate.
1802 * generated/minloc1_8_r4.c: Regenerate.
1803 * generated/minloc1_16_i2.c: Regenerate.
1804 * generated/maxloc1_16_i2.c: Regenerate.
1805 * generated/maxval_i16.c: Regenerate.
1806 * generated/exponent_r8.c: Regenerate.
1807 * generated/minloc1_4_i4.c: Regenerate.
1808 * generated/maxval_i1.c: Regenerate.
1809 * generated/minloc1_8_i2.c: Regenerate.
1810 * generated/minloc0_8_r8.c: Regenerate.
1811 * generated/set_exponent_r16.c: Regenerate.
1812 * generated/maxloc0_4_i1.c: Regenerate.
1813 * generated/rrspacing_r16.c: Regenerate.
1814 * generated/minloc0_4_i8.c: Regenerate.
1815 * generated/maxval_r4.c: Regenerate.
1816 * configure: Regenerate.
1817 * config.h.in: Regenerate.
1819 2007-04-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1822 * io/format.c (parse_format_list): Fix parsing.
1824 2007-04-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1827 intrinsics/string_intrinsics.c (string_repeat): Remove.
1829 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1832 * io/open.c (test_endfile): Delete this function.
1833 (edit_modes): Delete call to test_endfile.
1834 (new_unit): Likewise.
1835 * io/io.h: Delete prototype for test_endfile.
1836 * io/transfer.c (next_record_r): Remove use of test_endfile.
1837 (st_read): Add test for end file condition and adjust status.
1839 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1842 * io/transfer.c (read_block_direct): Do not generate error when reading
1843 past EOF on a short record that is less than the RECL= specified.
1845 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1848 * io/unit.c (close_unit_1): If there are bytes previously written from
1849 ADVANCE="no", move to the end before closing.
1851 2007-03-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1854 * intrinsics/stat.c: Only provide STAT and FSTAT library routines
1855 if stat() and fstat() library functions are available. When lstat()
1856 is not available, use stat() instead.
1857 * configure.ac: Add checks for stat, fstat and lstat.
1858 * configure: Regenerate.
1859 * config.h.in: Regenerate.
1861 2007-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1864 * io/transfer.c (next_record_r): Do not call test_endfile if in
1867 2007-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1870 * io/io.h: Add saved_pos to gfc_unit structure.
1871 * io/open.c (new_unit): Initialize saved_pos.
1872 * io/transfer.c (data_transfer_init): Set max_pos to value in
1874 (next_record_w): Fix whitespace.
1875 (finalze_transfer): Calculate max_pos for ADVANCE="no" and save it for
1876 later use. If not ADVANCE="no" set saved_pos to zero.
1878 2007-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
1881 * intrinsics/reshape_generic.c (reshape_internal): Increment
1884 2007-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1887 * file_pos.c: Update Copyright year.
1888 * io/open.c (test_endfile): Restore test_endfile to fix SPEC
1889 regression. Update Copyright year.
1891 * io/unix.c (is_special): Add missing type for this function.
1892 Update Copyright year.
1893 * io/transfer.c (next_record_r): Restore test_endfile.
1894 (st_read): Fix whitespace. Update Copyright year
1896 2007-03-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1898 * configure.ac: Add missing check for gettimeofday.
1899 * config.h.in: Renegerate.
1900 * configure: Regenerate.
1902 2007-03-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1905 * io/file_position (st_rewind): Fix comments. Remove use of
1906 test_endfile. Don't seek if already at 0 position. Use new is_special
1907 function to set endfile state.
1908 * io/open.c (test_endfile): Delete this function.
1909 * io/io.h: Delete prototype for test_endfile. Add prototype
1911 * io/unix.c (is_special): New function. Fix whitespace.
1912 * io/transfer.c (next_record_r): Remove use of test_endfile.
1914 2007-03-16 David Edelsohn <edelsohn@gnu.org>
1916 * runtime/main.c: Include "config.h" first.
1918 2007-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1921 * io/file_pos.c (st_rewind): Don't set bytes_left to zero.
1923 2007-03-15 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1925 * runtime/backtrace.c: New file.
1926 * runtime/environ.c (variable_table): New GFORTRAN_ERROR_BACKTRACE
1927 environment variable.
1928 * runtime/compile_options.c (set_std): Add new argument.
1929 * runtime/main.c (store_exe_path, full_exe_path): New functions.
1930 * runtime/error.c (sys_exit): Add call to show_backtrace.
1931 * libgfortran.h (options_t): New backtrace field.
1932 (store_exe_path, full_exe_path, show_backtrace): New prototypes.
1933 * configure.ac: Add checks for execinfo.h, execvp, pipe, dup2,
1934 close, fdopen, strcasestr, getrlimit, backtrace, backtrace_symbols
1936 * Makefile.am: Add runtime/backtrace.c.
1937 * fmain.c (main): Add call to store_exe_path.
1938 * Makefile.in: Renegerate.
1939 * config.h.in: Renegerate.
1940 * configure: Regenerate.
1942 2007-03-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1945 * io/transfer.c (formatted_transfer_scalar): Adjust position for
1946 pending spaces when in writing mode. Clean up some formatting.
1948 2007-03-14 Thomas Koenig <Thomas.Koenig@online.de>
1951 * all.m4: Quote everything, except for m4 macros.
1953 * count.m4: Likewise.
1954 * cshift1.m4: Likewise.
1955 * eoshift1.m4: Likewise.
1956 * eoshift3.m4: Likewise.
1957 * exponent.m4: Likewise.
1958 * fraction.m4: Likewise.
1959 * in_pack.m4: Likewise.
1960 * in_unpack.m4: Likewise.
1961 * matmul.m4: Likewise.
1962 * matmull.m4: Likewise.
1963 * nearest.m4: Likewise.
1965 * product.m4: Likewise.
1966 * reshape.m4: Likewise.
1967 * rrspacing.m4: Likewise.
1968 * set_exponent.m4: Likewise.
1969 * shape.m4: Likewise.
1970 * spacing.m4: Likewise.
1971 * transpose.m4: Likewise.
1973 2007-03-14 Jakub Jelinek <jakub@redhat.com>
1975 * io/unix.c (regular_file): For ACTION_UNSPECIFIED retry with
1976 O_RDONLY even if errno is EROFS.
1978 2007-03-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1981 * io/open.c (new_unit): Initialize bytes_left and recl_subrecord.
1982 * io/transfer.c (next_record_w): Set bytes left to record length for
1983 sequential unformatted I/O.
1984 (next_record_r): Ditto.
1985 (read_block_direct): Fix test for exceeding bytes_left.
1987 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
1990 * intrinsics/signal.c (alarm_sub_int): Avoid SEGFAULT with
1993 2007-03-04 Thomas Koenig <Thomas.Koenig@online.de>
1996 * m4/pow_m4: Use appropriate unsigned int type for u.
1997 * generated/pow_c10_i16.c: Regenerated.
1998 * generated/pow_c10_i4.c: Regenerated.
1999 * generated/pow_c10_i8.c: Regenerated.
2000 * generated/pow_c16_i16.c: Regenerated.
2001 * generated/pow_c16_i4.c: Regenerated.
2002 * generated/pow_c16_i8.c: Regenerated.
2003 * generated/pow_c4_i16.c: Regenerated.
2004 * generated/pow_c4_i4.c: Regenerated.
2005 * generated/pow_c4_i8.c: Regenerated.
2006 * generated/pow_c8_i16.c: Regenerated.
2007 * generated/pow_c8_i4.c: Regenerated.
2008 * generated/pow_c8_i8.c: Regenerated.
2009 * generated/pow_i16_i16.c: Regenerated.
2010 * generated/pow_i16_i4.c: Regenerated.
2011 * generated/pow_i16_i8.c: Regenerated.
2012 * generated/pow_i4_i16.c: Regenerated.
2013 * generated/pow_i4_i4.c: Regenerated.
2014 * generated/pow_i4_i8.c: Regenerated.
2015 * generated/pow_i8_i16.c: Regenerated.
2016 * generated/pow_i8_i4.c: Regenerated.
2017 * generated/pow_i8_i8.c: Regenerated.
2018 * generated/pow_r10_i16.c: Regenerated.
2019 * generated/pow_r10_i4.c: Regenerated.
2020 * generated/pow_r10_i8.c: Regenerated.
2021 * generated/pow_r16_i16.c: Regenerated.
2022 * generated/pow_r16_i4.c: Regenerated.
2023 * generated/pow_r16_i8.c: Regenerated.
2024 * generated/pow_r4_i16.c: Regenerated.
2025 * generated/pow_r4_i4.c: Regenerated.
2026 * generated/pow_r4_i8.c: Regenerated.
2027 * generated/pow_r8_i16.c: Regenerated.
2028 * generated/pow_r8_i4.c: Regenerated.
2029 * generated/pow_r8_i8.c: Regenerated.
2031 2007-03-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2034 * intrinsics/pack_generic.c (pack_internal): Add special checks
2035 for zero-sized arrays.
2037 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2039 * Makefile.am: Add dummy install-pdf target.
2040 * Makefile.in: Regenerate
2042 2007-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2045 * io/listread.c (namelist_read): Eat comment line.
2047 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2050 * io/write.c (output_float): Add condition of format F only for
2051 special case rounding with zero precision.
2053 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
2057 * Makefile.am: Add $(srcdir) too all files in generated/.
2058 (i_maxloc0_c): Add maxloc0_4_i1.c, maxloc0_8_i1.c,
2059 maxloc0_16_i1.c, maxloc0_4_i2.c, maxloc0_8_i2.c and
2061 (i_maxloc1_c): Add maxloc1_4_i1.c, maxloc1_8_i1.c,
2062 maxloc1_16_i1.c, maxloc1_4_i2.c, maxloc1_8_i2.c and
2064 (i_maxval_c): Add maxval_i1.c and maxval_i2.c.
2065 (i_minloc0_c): Add minloc0_4_i1.c, minloc0_8_i1.c,
2066 minloc0_16_i1.c, minloc0_4_i2.c, minloc0_8_i2.c and
2068 (i_minloc_1.c): Add minloc1_4_i1.c, minloc1_8_i1.c,
2069 minloc1_16_i1.c, minloc1_4_i2.c, minloc1_8_i2.c and
2071 (i_minval_c): Add minval_i1.c and minval_i2.c.
2072 (i_sum_c): Add sum_i1.c and sum_i2.c.
2073 (i_product_c): Add product_i1.c and product_i2.c.
2074 (i_matmul_c): Add matmul_i1.c and matmul_i2.c.
2075 (gfor_built_specific_src): Remove $(srcdir) from target.
2076 (gfor_bulit_specific2_src): Likewise.
2077 Makefile.in: Regenerated.
2078 libgfortran.h: Add GFC_INTEGER_1_HUGE and GFC_INTEGER_2_HUGE.
2079 Add gfc_array_i1 and gfc_array_i2.
2080 * generated/matmul_i1.c: New file.
2081 * generated/matmul_i2.c: New file.
2082 * generated/maxloc0_16_i1.c: New file.
2083 * generated/maxloc0_16_i2.c: New file.
2084 * generated/maxloc0_4_i1.c: New file.
2085 * generated/maxloc0_4_i2.c: New file.
2086 * generated/maxloc0_8_i1.c: New file.
2087 * generated/maxloc0_8_i2.c: New file.
2088 * generated/maxloc1_16_i1.c: New file.
2089 * generated/maxloc1_16_i2.c: New file.
2090 * generated/maxloc1_4_i1.c: New file.
2091 * generated/maxloc1_4_i2.c: New file.
2092 * generated/maxloc1_8_i1.c: New file.
2093 * generated/maxloc1_8_i2.c: New file.
2094 * generated/maxval_i1.c: New file.
2095 * generated/maxval_i2.c: New file.
2096 * generated/minloc0_16_i1.c: New file.
2097 * generated/minloc0_16_i2.c: New file.
2098 * generated/minloc0_4_i1.c: New file.
2099 * generated/minloc0_4_i2.c: New file.
2100 * generated/minloc0_8_i1.c: New file.
2101 * generated/minloc0_8_i2.c: New file.
2102 * generated/minloc1_16_i1.c: New file.
2103 * generated/minloc1_16_i2.c: New file.
2104 * generated/minloc1_4_i1.c: New file.
2105 * generated/minloc1_4_i2.c: New file.
2106 * generated/minloc1_8_i1.c: New file.
2107 * generated/minloc1_8_i2.c: New file.
2108 * generated/minval_i1.c: New file.
2109 * generated/minval_i2.c: New file.
2110 * generated/product_i1.c: New file.
2111 * generated/product_i2.c: New file.
2112 * generated/sum_i1.c: New file.
2113 * generated/sum_i2.c: New file.
2115 2007-02-16 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2117 * runtime/memory.c (deallocate): Correct comment.
2119 2007-02-10 Thomas Koenig <Thomas.Koenig@online.de>
2121 * Makefile.am: Use $(M4) instead of m4.
2122 * Makefile.in: Regenerate.
2124 2007-02-10 Thomas Koenig <Thomas.Koenig@online.de>
2126 * Makefile.am: Remove $(srcdir) from assorted targets
2128 * Makefile.in: Regenerate.
2130 2007-02-09 Thomas Koenig <Thomas.Koenig@online.de>
2131 Tobias Burnus <burnus@net-b.de>
2134 * m4/iparm.m4: Use HUGE-1 for most negative integer.
2135 * generated/maxloc1_8_i4.c: Regenerate.
2136 * generated/maxloc0_8_i8.c: Regenerate.
2137 * generated/maxloc1_16_i4.c: Regenerate.
2138 * generated/maxloc0_16_i8.c: Regenerate.
2139 * generated/maxval_i4.c: Regenerate.
2140 * generated/maxloc1_4_i8.c: Regenerate.
2141 * generated/maxloc0_16_i16.c: Regenerate.
2142 * generated/maxloc1_4_i16.c: Regenerate.
2143 * generated/maxloc0_8_i16.c: Regenerate.
2144 * generated/maxloc0_4_i4.c: Regenerate.
2145 * generated/maxloc1_8_i8.c: Regenerate.
2146 * generated/maxloc0_8_i4.c: Regenerate.
2147 * generated/maxloc0_16_i4.c: Regenerate.
2148 * generated/maxloc1_16_i8.c: Regenerate.
2149 * generated/maxloc1_4_i4.c: Regenerate.
2150 * generated/maxval_i8.c: Regenerate.
2151 * generated/maxloc0_4_i16.c: Regenerate.
2152 * generated/maxloc1_8_i16.c: Regenerate.
2153 * generated/maxloc0_4_i8.c: Regenerate.
2154 * generated/maxloc1_16_i16.c: Regenerate.
2155 * generated/maxval_i16.c: Regenerate.
2157 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2160 * intrinsics/string_intrinsics.c (string_repeat): Don't check
2161 if ncopies is negative.
2163 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2166 * libgfortran.h: Do not prefix symbol name with
2167 __USER_LABEL_PREFIX__ when used in __attribute__((__alias__(...))).
2169 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
2173 * io/transfer.c (init_loop_spec, next_array_record): Change to
2174 lbound rather than unity base.
2176 2007-01-21 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2178 * runtime/error.c: Include sys/time.h before sys/resource.h.
2180 2007-01-21 Thomas Koenig <Thomas.Koenig@online.de>
2183 * intrinsics/string_intrinsics.c(compare_string): Make
2184 sure that comparisons are done unsigned.
2186 2007-01-21 Tobias Burnus <burnus@net-b.de>
2189 * intrinsics/date_and_time.c (date_and_time): Fix case where time
2191 * configure.ac: Remove AC_TRY_RUN test for timezone in
2193 * acinclude.m4: Ditto.
2194 * configure: Regenerate.
2195 * config.h.in: Regenerate.
2197 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2199 * m4/misc_specifics.m4: Add _gfortran prefix to specific names.
2200 * m4/specific2.m4: Likewise.
2201 * m4/specific.m4: Likewise.
2202 * intrinsics/f2c_specifics.F90: Likewise.
2203 * intrinsics/selected_int_kind.f90: Add _gfortran prefix.
2204 * intrinsics/selected_real_kind.f90: Likewise.
2205 * intrinsics/dprod_r8.f90: Likewise.
2206 * Makefile.am: Add -fallow-leading-underscore to the
2207 gfor_specific_src files, as well as selected_real_kind.F90
2208 and selected_int_kind.F90
2209 * Makefile.in: Regenerate.
2210 * generated/_sqrt_c8.F90: Regenerate.
2211 * generated/_sign_r16.F90: Regenerate.
2212 * generated/_log_c16.F90: Regenerate.
2213 * generated/_sin_c10.F90: Regenerate.
2214 * generated/_tanh_r4.F90: Regenerate.
2215 * generated/_tanh_r8.F90: Regenerate.
2216 * generated/_log10_r10.F90: Regenerate.
2217 * generated/_aimag_c4.F90: Regenerate.
2218 * generated/_sign_r4.F90: Regenerate.
2219 * generated/_aimag_c8.F90: Regenerate.
2220 * generated/_sign_r8.F90: Regenerate.
2221 * generated/_mod_i4.F90: Regenerate.
2222 * generated/_cos_r16.F90: Regenerate.
2223 * generated/_aint_r10.F90: Regenerate.
2224 * generated/_mod_i8.F90: Regenerate.
2225 * generated/_abs_i16.F90: Regenerate.
2226 * generated/_sqrt_c10.F90: Regenerate.
2227 * generated/_atan2_r4.F90: Regenerate.
2228 * generated/_cos_c4.F90: Regenerate.
2229 * generated/_atan_r16.F90: Regenerate.
2230 * generated/_tanh_r10.F90: Regenerate.
2231 * generated/_atan2_r8.F90: Regenerate.
2232 * generated/_cos_c8.F90: Regenerate.
2233 * generated/_exp_r4.F90: Regenerate.
2234 * generated/_log_r10.F90: Regenerate.
2235 * generated/_exp_r8.F90: Regenerate.
2236 * generated/_abs_r4.F90: Regenerate.
2237 * generated/_abs_r8.F90: Regenerate.
2238 * generated/_sin_r16.F90: Regenerate.
2239 * generated/_tan_r4.F90: Regenerate.
2240 * generated/_tan_r8.F90: Regenerate.
2241 * generated/_sign_i4.F90: Regenerate.
2242 * generated/_sign_i8.F90: Regenerate.
2243 * generated/_exp_c16.F90: Regenerate.
2244 * generated/_sqrt_r16.F90: Regenerate.
2245 * generated/_conjg_c4.F90: Regenerate.
2246 * generated/_conjg_c8.F90: Regenerate.
2247 * generated/_dim_r16.F90: Regenerate.
2248 * generated/_mod_r10.F90: Regenerate.
2249 * generated/_abs_c10.F90: Regenerate.
2250 * generated/_conjg_c16.F90: Regenerate.
2251 * generated/_tan_r16.F90: Regenerate.
2252 * generated/_asinh_r10.F90: Regenerate.
2253 * generated/_abs_i4.F90: Regenerate.
2254 * generated/_abs_i8.F90: Regenerate.
2255 * generated/_acos_r10.F90: Regenerate.
2256 * generated/_exp_r10.F90: Regenerate.
2257 * generated/_acosh_r16.F90: Regenerate.
2258 * generated/_atan2_r16.F90: Regenerate.
2259 * generated/_cos_c16.F90: Regenerate.
2260 * generated/_mod_i16.F90: Regenerate.
2261 * generated/_asin_r4.F90: Regenerate.
2262 * generated/_anint_r16.F90: Regenerate.
2263 * generated/_asin_r8.F90: Regenerate.
2264 * generated/_aimag_c10.F90: Regenerate.
2265 * generated/_exp_c4.F90: Regenerate.
2266 * generated/_sinh_r10.F90: Regenerate.
2267 * generated/_exp_c8.F90: Regenerate.
2268 * generated/_log10_r4.F90: Regenerate.
2269 * generated/_log10_r8.F90: Regenerate.
2270 * generated/_abs_c4.F90: Regenerate.
2271 * generated/_abs_r16.F90: Regenerate.
2272 * generated/_abs_c8.F90: Regenerate.
2273 * generated/_asin_r10.F90: Regenerate.
2274 * generated/_sign_r10.F90: Regenerate.
2275 * generated/_atanh_r16.F90: Regenerate.
2276 * generated/_log_c10.F90: Regenerate.
2277 * generated/_cosh_r16.F90: Regenerate.
2278 * generated/_sin_c16.F90: Regenerate.
2279 * generated/_cos_r10.F90: Regenerate.
2280 * generated/_log10_r16.F90: Regenerate.
2281 * generated/_aint_r16.F90: Regenerate.
2282 * generated/_acos_r4.F90: Regenerate.
2283 * generated/_acos_r8.F90: Regenerate.
2284 * generated/_sqrt_c16.F90: Regenerate.
2285 * generated/_acosh_r4.F90: Regenerate.
2286 * generated/_atan_r10.F90: Regenerate.
2287 * generated/_acosh_r8.F90: Regenerate.
2288 * generated/_sign_i16.F90: Regenerate.
2289 * generated/_tanh_r16.F90: Regenerate.
2290 * generated/_log_r4.F90: Regenerate.
2291 * generated/_log_r8.F90: Regenerate.
2292 * generated/_sin_r4.F90: Regenerate.
2293 * generated/_sin_r8.F90: Regenerate.
2294 * generated/_log_r16.F90: Regenerate.
2295 * generated/_sin_r10.F90: Regenerate.
2296 * generated/_sqrt_r4.F90: Regenerate.
2297 * generated/_exp_c10.F90: Regenerate.
2298 * generated/_sqrt_r8.F90: Regenerate.
2299 * generated/_asinh_r4.F90: Regenerate.
2300 * generated/_sqrt_r10.F90: Regenerate.
2301 * generated/_asinh_r8.F90: Regenerate.
2302 * generated/_dim_r4.F90: Regenerate.
2303 * generated/_dim_r8.F90: Regenerate.
2304 * generated/_dim_r10.F90: Regenerate.
2305 * generated/_cosh_r4.F90: Regenerate.
2306 * generated/_conjg_c10.F90: Regenerate.
2307 * generated/_tan_r10.F90: Regenerate.
2308 * generated/_cosh_r8.F90: Regenerate.
2309 * generated/_mod_r16.F90: Regenerate.
2310 * generated/_abs_c16.F90: Regenerate.
2311 * generated/_cos_r4.F90: Regenerate.
2312 * generated/_asinh_r16.F90: Regenerate.
2313 * generated/_cos_r8.F90: Regenerate.
2314 * generated/_atanh_r4.F90: Regenerate.
2315 * generated/_atanh_r8.F90: Regenerate.
2316 * generated/_acos_r16.F90: Regenerate.
2317 * generated/_anint_r4.F90: Regenerate.
2318 * generated/_acosh_r10.F90: Regenerate.
2319 * generated/_anint_r8.F90: Regenerate.
2320 * generated/_exp_r16.F90: Regenerate.
2321 * generated/_mod_r4.F90: Regenerate.
2322 * generated/_cos_c10.F90: Regenerate.
2323 * generated/_atan2_r10.F90: Regenerate.
2324 * generated/_dim_i16.F90: Regenerate.
2325 * generated/_mod_r8.F90: Regenerate.
2326 * generated/_anint_r10.F90: Regenerate.
2327 * generated/_aint_r4.F90: Regenerate.
2328 * generated/_aint_r8.F90: Regenerate.
2329 * generated/_dim_i4.F90: Regenerate.
2330 * generated/_sinh_r4.F90: Regenerate.
2331 * generated/_log_c4.F90: Regenerate.
2332 * generated/_dim_i8.F90: Regenerate.
2333 * generated/_sinh_r8.F90: Regenerate.
2334 * generated/_log_c8.F90: Regenerate.
2335 * generated/_sin_c4.F90: Regenerate.
2336 * generated/_sin_c8.F90: Regenerate.
2337 * generated/misc_specifics.F90: Regenerate.
2338 * generated/_abs_r10.F90: Regenerate.
2339 * generated/_aimag_c16.F90: Regenerate.
2340 * generated/_atan_r4.F90: Regenerate.
2341 * generated/_sinh_r16.F90: Regenerate.
2342 * generated/_atan_r8.F90: Regenerate.
2343 * generated/_atanh_r10.F90: Regenerate.
2344 * generated/_cosh_r10.F90: Regenerate.
2345 * generated/_sqrt_c4.F90: Regenerate.
2346 * generated/_asin_r16.F90: Regenerate.
2348 2007-01-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2351 * acinclude.m4 (LIBGFOR_WORKING_GFORTRAN): New check.
2352 * configure.ac: Add call to LIBGFOR_WORKING_GFORTRAN.
2353 * configure: Regenerate.
2354 * config.h.in: Regenerate because it was forgottent in the last
2357 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2358 Tobias Burnus <burnus@net-b.de>
2361 * runtime/environ.c (variable_table): New GFORTRAN_ERROR_DUMPCORE
2362 environment variable.
2363 * runtime/compile_options.c (set_std): Add new argument.
2364 * runtime/error.c (sys_exit): Move from io/unix.c. Add coredump
2366 * libgfortran.h (options_t): New dump_core and backtrace members.
2367 (sys_exit): Move prototype.
2368 * io/unix.c (sys_exit): Move to runtime/error.c.
2369 * configure.ac: Add check for getrlimit.
2370 * configure: Regenerate.
2372 2007-01-17 Tom Tromey <tromey@redhat.com>
2374 PR libfortran/27107:
2375 * aclocal.m4, configure, Makefile.in: Rebuilt.
2376 * configure.ac: Enable automake dependency tracking. Update
2377 minimum automake version.
2379 2007-01-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2382 * runtime/environ.c: Don't include io/io.h.
2383 * runtime/string.c: Don't include io/io.h.
2384 (compare0): Add cast to avoid warning.
2385 * runtime/error.c: Don't include io/io.h.
2386 (st_printf): Move to io/unix.c.
2387 * intrinsics/flush.c: Delete, contents moved to io/intrinsics.c.
2388 * intrinsics/fget.c: Likewise.
2389 * intrinsics/ftell.c: Likewise.
2390 * intrinsics/tty.c: Likewise.
2391 * libgfortran.h (DEFAULT_RECL, notification_std,
2392 get_unformatted_convert, IOPARM_*, st_parameter_common, unit_convert,
2393 DEFAULT_TEMPDIR): New declarations.
2394 * io/io.h (DEFAULT_RECL, notification_std, get_unformatted_convert,
2395 IOPARM_*, st_parameter_common, unit_convert, DEFAULT_TEMPDIR):
2396 Move to libgfortran.h.
2397 * io/unix.c: Add io/unix.h content.
2398 (st_printf): New function.
2399 * io/intrinsics.c: New file.
2400 * io/unix.h: Remove, contents moved into unix.c.
2401 * libtool-version: Update library version to 3.0.0.
2402 * configure.ac: Update library version to 0.3.
2403 * Makefile.am (intrinsics/fget.c, intrinsics/flush.c,
2404 intrinsics/ftell.c, intrinsics/tty.c, libgfortran.h): Remove targets.
2405 * Makefile.in: Regenerate.
2406 * configure: Regenerate.
2408 2007-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2411 * io/list_read.c (finish_separator): Don't call next_record.
2412 (list_formatted_read_scalar): Clean up some comments and whitespace.
2413 (nml_read_obj): Whitespace fix.
2415 2007-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2418 * io/unix.c (fd_flush): Don't seek if file is not seekable, defined as
2419 s->file_length == -1.
2420 (fd_alloc_w_at): Do not adjust file_length if file is not seekable.
2421 (fd_seek): If not seekable, just return success.
2422 (fd_truncate): If not seekable, no need to truncate. Return failure
2423 if seek fails and the stream is not a pipe.
2424 (fd_to_stream): Make test for non-seekable file more robust.
2426 2007-01-01 Steven G. Kargl <kargls@comcast.net>
2428 * ChangeLog: Copied to ...
2429 * ChangeLog-2006: here.