OSDN Git Service

Fortran frontend:
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
index 983c64f..631e2a5 100644 (file)
@@ -1,3 +1,271 @@
+2007-07-03  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       * libgfortran.h: Mark internal_malloc_size as a malloc function.
+       * runtime/memory.c (internal_realloc_size): Remove.
+       (internal_realloc): Call realloc directly instead of
+       internal_realloc_size.
+       (allocate_size): Remove.
+       (allocate): Call malloc directly instead of allocate_size, mark as
+       malloc function.
+
+2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
+
+       Restore collateral damage from ISO C Binding merge.
+
+        2007-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/32456
+       * io/unit.c (filename_from_unit): Don't use find_unit, instead search
+       for unit directly.
+
+
+2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
+
+       * Makefile.in:  Regenerated with automake 1.9.6.
+
+2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
+
+       * Makefile.in:  Remove extraneous kill.lo rule.
+
+2007-07-02  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       PR fortran/32239
+       * generated/pow_r*_i4.c: Removed.
+
+2007-07-01  Christopher D. Rickett  <crickett@lanl.gov>
+
+       * Makefile.in: Add support for iso_c_generated_procs.c and
+       iso_c_binding.c.
+       * Makefile.am: Ditto.
+       * intrinsics/iso_c_generated_procs.c: New file containing helper
+       functions.
+       * intrinsics/iso_c_binding.c: Ditto.
+       * intrinsics/iso_c_binding.h: New file
+       * gfortran.map: Include the __iso_c_binding_c_* functions.
+       * libgfortran.h: define GFC_NUM_RANK_BITS.
+
+2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       PR fortran/32239
+       * Makefile.am: Don't generate real**int4 pow functions.
+       * gfortran.map: Remove real**int4 pow symbols.
+       * Makefile.in: Regenerated.
+
+2007-07-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/32554
+       * io/write.c (output_float): Set edigits to a fixed size, avoiding
+       variation in field width calculation and eliminate buffer overrun.
+
+2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       * runtime/memory.c (internal_realloc): Use index_type for size
+       argument instead of GFC_INTEGER_4.
+       (allocate_array): Likewise.
+       (allocate): Likewise, add ifdef around unnecessary check.
+       (internal_reallo64): Remove.
+       (allocate_array64): Remove.
+       (allocate64): Remove.
+       * gfortran.map: Remove symbols for 64-bit allocation functions.
+
+2007-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/32456
+       * io/unit.c (filename_from_unit): Don't use find_unit, instead search
+       for unit directly.
+
+2007-06-24  Adam Nemet  <anemet@caviumnetworks.com>
+
+       PR libfortran/32495
+       * runtime/backtrace.c (local_strcasestr): Rename from strcasestr.
+       (show_backtrace): Rename strcasestr to local_strcasestr.
+
+2007-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/32456
+       * runtime/error.c (show_locus): Update to emit the unit number
+       and file name involved with the error.  Use new function
+       filename_from_unit.
+       * libgfortran.h (filename_from_unit): Declare new function.
+       * io/unit.c (init_units): Set the unit file name for stdin, stdout,
+       and stderr for use later in error reporting.
+       (filename_from_unit): Add this new function.
+
+2007-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/32446
+       * io/write.c (output_float): Calculate ndigits correctly for large
+       numbered formats that must pad zeros before the decimal point.
+
+2007-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       PR libfortran/32345
+       * runtime/backtrace.c (show_backtrace): Only use snprintf if
+       available.
+
+2007-06-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/32235
+       * io/transfer.c (st_read): Remove test for end of file condition.
+       (next_record_r): Add test for end of file condition.
+
+2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
+
+       * configure: Regenerate.
+
+2007-05-28  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/32124
+       * runtime/memory.c (allocate_size): Use ERROR_ALLOCATION.
+       (allocate,allocate64): Use stat variable if present.
+
+2007-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       * runtime/string.c (compare0): Use gfc_charlen_type instead of
+       int.
+       (fstrlen): Likewise.
+       (find_option): Likewise.
+       (fstrcpy): Use gfc_charlen_type instead of int, return length.
+       (cf_strcpy): Likewise.
+       * libgfortran.h: Change string prototypes to use gfc_charlen_type.
+       * io/open.c (new_unit): Use snprintf if available.
+       * io/list_read.c (nml_touch_nodes): Use memcpy instead of
+       strcpy/strcat.
+       (nml_read_obj): Likewise.
+       * io/transfer.c (st_set_nml_var): Likewise.
+       * io/write.c (output_float): Use snprintf if available.
+       (nml_write_obj) Use memcpy instead of strcpy/strcat.
+
+2007-05-26  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       * io/unix.c (unix_stream): Rearrange struct members, remove
+       small_buffer.
+       (int_stream): New struct.
+       (fd_alloc): Always use existing buffer, never reallocate.
+       (fd_sfree): Remove check for buffer != small_buffer.
+       (fd_close): Likewise.
+       (mem_alloc_r_at): Change to use int_stream.
+       (mem_alloc_w_at): Likewise.
+       (mem_read): Likewise.
+       (mem_write): Likewise.
+       (mem_set): Likewise.
+       (mem_truncate): Likewise.
+       (mem_close): Likewise.
+       (mem_sfree): Likewise.
+       (empty_internal_buffer): Likewise.
+       (open_internal): Likewise.
+       
+2007-05-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       * io/transfer.c (unformatted_read): Use size from front end eliminating
+       use of size_from_real_kind. (unformatted_write): Ditto.
+
+2007-05-23  Steve Ellcey  <sje@cup.hp.com>
+
+       * Makefile.in: Regenerate.
+       * configure: Regenerate.
+       * aclocal.m4: Regenerate.
+
+2007-05-22  Tobias Burnus  <burnus@net-b.de>
+
+       * libgfortran.h: Mark stop_numeric as noreturn.
+
+2007-05-22  Tobias Burnus  <burnus@net-b.de>
+
+       PR libgfortran/31295
+       * intrinsics/eoshift0.c (eoshift0): Silence uninitialized warning.
+       * intrinsics/eoshift2.c (eoshift2): Ditto.
+
+2007-05-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libfortran/31964
+       * intrinsics/ishftc.c (ishftc4, ishftc8, ishftc16): Fix mask to handle
+       shift of bit-size number of bits.
+
+2007-05-17  Tobias Burnus <burnus@net-b.de>
+
+       PR fortran/31917
+       * runtime/environ.c (mark_range): Fix setting default convert unit.
+
+2007-05-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libfortran/31922
+       * intrinsics/string_intrinsics.c (string_trim): Set result to null if
+       string length is zero.
+
+2007-05-15  Tobias Burnus  <burnus@net-b.de>
+
+       PR libfortran/31915
+       * io/transfer.c (unformatted_read): Use proper size for real(10).
+         (unformatted_write): Ditto.
+
+2007-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR fortran/30723
+       * runtime/memory.c (internal_malloc, internal_malloc64,
+       internal_free): Remove.
+       * runtime/error.c (os_error): Export function.
+       * intrinsics/move_alloc.c: Include stdlib.h.
+       (move_alloc): Call free instead of internal_free.
+       (move_alloc_c): Wrap long lines.
+       * libgfortran.h (os_error): Export prototype.
+       (internal_free): Remove prototype.
+       * gfortran.map (GFORTRAN_1.0): Remove _gfortran_internal_free,
+       _gfortran_internal_malloc and _gfortran_internal_malloc64.
+       Add _gfortran_os_error.
+
+2007-05-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libfortran/31880
+       * io/unix.c (fd_alloc_r_at): Fix calculation of physical offset.
+
+2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR libfortran/31607
+       * intrinsics/system.c (system_sub): Call flush_all_units.
+       * io/io.h (flush_all_units): Move prototype to libgfortran.h.
+       * libgfortran.h (flush_all_units): Add prototype.
+
+2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libfortran/31201
+       * runtime/error.c (runtime_error_at): New function.
+       (generate_error): Export this function.
+       * gfortran.map: Add _gfortran_generate_error and
+       _gfortran_runtime_error_at.
+       * libgfortran.h: Add comment to reference error codes in front end.
+       (library_start): Locate prototype with library_end macro and add
+       a new comment.  Add prototype for runtime_error_at. Export prototype for
+       generate_error.
+       * io/lock.c (library_start): Fix check for error condition.
+       * io/transfer.c (data_transfer_init): Add library check.
+
+2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
+
+       PR fortran/22359
+       * io/intrinsics.c (fseek_sub): New.
+       * io/unix.c (fd_fseek): Change logical and physical offsets only
+       if seek succeeds.
+       * gfortran.map (fseek_sub): New.
+
+2007-05-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR libfortran/31210
+       * io/transfer.c (transfer_character): Avoid passing a NULL
+       pointer as source to the transfer routines, if the string length
+       is zero.
+
+2007-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libfortran/31501
+       * io/list_read.c (next_char): Fix whitespace.
+       * io/io.h: Remove prototypes and define macros for is_array_io,
+       is_stream_io, and is_internal_unit.
+       * io/unit.c (is_array_io), (is_internal_unit), (is_stream_io): Delete
+       these functions.
+       * io/transfer.c (read_sf): Change handling of internal_unit to make a
+       single call to salloc_r and use memcpy to transfer the data. 
+
 2007-04-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libfortran/31532