gcc/libgfortran
Jerry DeLisle cea93abbe2 re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8")
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.

From-SVN: r136763
2008-06-13 20:28:08 +00:00
..
config
generated re PR fortran/36518 (libgfortran: "warning: format '%d' expects type 'int', but") 2008-06-13 20:43:25 +02:00
intrinsics re PR fortran/36495 (libgfortran should be build with FCFLAGS -fimplicit-none) 2008-06-13 09:10:15 +02:00
io re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8") 2008-06-13 20:28:08 +00:00
m4 re PR fortran/36518 (libgfortran: "warning: format '%d' expects type 'int', but") 2008-06-13 20:43:25 +02:00
runtime re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8") 2008-06-13 20:28:08 +00:00
acinclude.m4 libgomp/ 2008-04-21 20:55:19 +00:00
aclocal.m4 re PR other/35457 (Error building GCC trunk on CELL SPU) 2008-04-18 10:28:53 +00:00
c99_protos.h
ChangeLog re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8") 2008-06-13 20:28:08 +00:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
config.h.in re PR libfortran/32972 (performance of pack/unpack) 2008-04-13 20:15:58 +00:00
configure configure.ac (AM_CFLAGS): Remove -Werror again. 2008-06-13 21:29:22 +02:00
configure.ac configure.ac (AM_CFLAGS): Remove -Werror again. 2008-06-13 21:29:22 +02:00
configure.host
fmain.c
gfortran.map re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8") 2008-06-13 20:28:08 +00:00
libgfortran.h re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8") 2008-06-13 20:28:08 +00:00
libtool-version
Makefile.am select.c: Moved content to select_inc.c. 2008-05-18 12:00:20 +00:00
Makefile.in select.c: Moved content to select_inc.c. 2008-05-18 12:00:20 +00:00
mk-kinds-h.sh re PR libfortran/34669 (libgfortran doesn't build with -pipe) 2008-01-16 10:13:39 +01:00
mk-sik-inc.sh re PR libfortran/34669 (libgfortran doesn't build with -pipe) 2008-01-16 10:13:39 +01:00
mk-srk-inc.sh re PR libfortran/34669 (libgfortran doesn't build with -pipe) 2008-01-16 10:13:39 +01:00