OSDN Git Service

2008-06-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
index 8182096..0448967 100644 (file)
@@ -1,3 +1,128 @@
+2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/35863
+       * libgfortran.h: Change l8_to_l4_offset to big_endian and add endian_off.
+       * runtime/main.c: Fix error in comment. Change l8_to_l4_offset to
+       big_endian. (determine_endianness): Add endian_off and set its value
+       according to big_endian.
+       * gfortran.map: Add symbol for new _gfortran_transfer_character_wide.
+       * io/io.h: Add prototype declarations for new functions.
+       * io/list_read.c (list_formatted_read_scalar): Modify to handle kind=4.
+       (list_formatted_read): Calculate stride based on kind for character type
+       and use it when calling list_formatted_read_scalar.
+       * io/inquire.c (inquire_via_unit): Change l8_to_l4_offset to big_endian.
+       * io/open.c (st_open): Change l8_to_l4_offset to big_endian.
+       * io/read.c (read_a_char4): New function to handle formatted read.
+       * io/write.c: Define GFC_CHAR4(x) to improve readability of code.
+       (write_a_char4): New function to handle formatted write.
+       (write_character): Modify to accept the kind parameter and adjust for
+       endianess of the machine. (list_formatted_write): Calculate the stride
+       resulting from the kind and adjust the list_formatted_write_scalar call
+       accordingly. (nml_write_obj): Adjust calls to write_character.
+       (namelist_write): Likewise.
+       * io/transfer.c (formatted_transfer_scaler): Rename 'len' argument to
+       'kind' argument to better describe what it is. Add calls to new
+       functions for kind == 4. (formatted_transfer): Modify to handle the case
+       of type character and kind equals 4 to pass in the kind to the transfer
+       routines. (transfer_character_wide): Add this new function.
+       (transfer_array): Don't set kind to the character string length. Adjust
+       strides bases on character kind.
+       (unformatted_read): Adjust size based on kind for character types.
+       (unformatted_write): Likewise. (data_transfer_init): Change
+       l8_to_l4_offset to big_endian. 
+
+2008-06-13  Tobias Burnus  <burnus@net-b.de>
+
+       * configure.ac (AM_CFLAGS): Remove -Werror again.
+       * configure: Regenerate.
+
+2008-06-13  Tobias Burnus  <burnus@net-b.de>
+
+       PR libgfortran/36518
+       * configure.ac (AM_CFLAGS): Add -Werror.
+       * configure: Regenerate.
+       * m4/ifunction_logical.m4: Cast "n" to "(int)".
+       * generated/any_l16.c: Regenerate.
+       * generated/any_l2.c: Regenerate.
+       * generated/all_l1.c: Regenerate.
+       * generated/all_l2.c: Regenerate.
+       * generated/all_l16.c: Regenerate.
+       * generated/any_l4.c: Regenerate.
+       * generated/count_4_l.c: Regenerate.
+       * generated/count_8_l.c: Regenerate.
+       * generated/all_l4.c: Regenerate.
+       * generated/count_1_l.c: Regenerate.
+       * generated/count_16_l.c: Regenerate.
+       * generated/any_l8.c: Regenerate.
+       * generated/count_2_l.c: Regenerate.
+       * generated/any_l1.c: Regenerate.
+       * generated/all_l8.c: Regenerate.
+
+2008-06-13  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/36495
+       * configure.ac (AM_FCFLAGS): Add "-Werror -fimplicit-none".
+       * configure: (generated) ditto.
+       * intrinsics/dprod_r8.f90: Add "implicit none".
+
+2008-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libfortran/36420
+       PR libfortran/36421
+       PR libfortran/36422
+       * io/io.h: Add prototype for write_real.
+       * io/transfer.c (formatted_transfer_scalar): For FMT_G and width zero,
+       use write_real.
+       * io/format.c: Add zero width error message. (parse_format_list): Use
+       error message for FMT_A if followed by FMT_ZERO. Use zero width error
+       message for FMT_G if mode is READ or if -std=f95 or f2003. (fmormat0):
+       Fix typo in comment.
+       * io/write.c(write_a): Set wlen to len if FMT_G and length is zero.
+       (write_l): Add wlen variable and use it if FMT_G and width is zero.
+       (write_decimal): If FMT_G, set m to -1 to flag processor dependent
+       formatting. (write_real): Remove static declaration.
+
+2008-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR fortran/36319
+       * intrinsics/string_intrinsics_inc.c (string_index): Return
+       correct value for zero-length substring.
+       * intrinsics/cshift0.c: Add _char4 variant.
+       * intrinsics/eoshift0.c (eoshift0): Allow filler to be a pattern
+       wider than a single byte. Add _char4 variant and use above
+       functionality.
+       * intrinsics/eoshift2.c (eoshift2): Likewise.
+       * m4/eoshift1.m4: Likewise.
+       * m4/eoshift3.m4: Likewise.
+       * m4/cshift1.m4: Add _char4 variants.
+       * gfortran.map (GFORTRAN_1.1): Add _gfortran_cshift0_1_char4,
+       _gfortran_cshift0_2_char4, _gfortran_cshift0_4_char4,
+       _gfortran_cshift0_8_char4, _gfortran_cshift1_16_char4,
+       _gfortran_cshift1_4_char4, _gfortran_cshift1_8_char4,
+       _gfortran_eoshift0_1_char4, _gfortran_eoshift0_2_char4,
+       _gfortran_eoshift0_4_char4, _gfortran_eoshift0_8_char4,
+       _gfortran_eoshift1_16_char4, _gfortran_eoshift1_4_char4,
+       _gfortran_eoshift1_8_char4, _gfortran_eoshift2_1_char4,
+       _gfortran_eoshift2_2_char4, _gfortran_eoshift2_4_char4,
+       _gfortran_eoshift2_8_char4, _gfortran_eoshift3_16_char4,
+       _gfortran_eoshift3_4_char4 and _gfortran_eoshift3_8_char4.
+       * generated/eoshift3_4.c: Regenerate.
+       * generated/eoshift1_8.c: Regenerate.
+       * generated/eoshift1_16.c: Regenerate.
+       * generated/cshift1_4.c: Regenerate.
+       * generated/eoshift1_4.c: Regenerate.
+       * generated/eoshift3_8.c: Regenerate.
+       * generated/eoshift3_16.c: Regenerate.
+       * generated/cshift1_8.c: Regenerate.
+       * generated/cshift1_16.c: Regenerate.
+
+2008-05-25  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/32600
+       * intrinsics/iso_c_binding.c (c_f_procpointer): Remove.
+       * intrinsics/iso_c_binding.h (c_f_procpointer): Remove.
+       * gfortran.map (c_f_procpointer): Remove.
+
 2008-05-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR libgfortran/36302