gcc/libgfortran/io
Jerry DeLisle d7445152be re PR fortran/37498 (Incorrect array value returned - 4.3 ABI Broken)
2008-09-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org

	PR fortran/37498
	* trans-io.c (gfc_build_io_library_fndecls): Bump pad size.
	(build_dt): Set mask bit for IOPARM_dt_f2003.
	* ioparm.def: Add IOPARM_dt_f2003.

2008-09-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org

	PR libfortran/37498
	* file_pos (st_endfile): Clear memory only for libfortran 4.3 private
	area.
	* list_read.c (eat_separator): Only access F2003 I/O parameters if
	IOPARM_DT_HAS_F2003 bit is set. (parse_real): Ditto.
	(read_real): Ditto.
	* read.c (read_a): Likewise. (read_a_char4): Likewise though not
	strictly necessary. (read_f): Likewise.
	* io.h (unit_sign_s): New enumerator to allow duplication of
	st_parameter structures. (IOPARM_DT_HAS_F2003): New mask bit.
	(st_parameter_43): New structure copied from 4.3 version of 
	st_paramater_dt private section. (st_parameter_44): New structure with
	F2003 items added. (st_parameter_dt): Modified to create union of new
	and old structures to allow correct memory setting for 4.3 ABI
	compatibility. Bumped the pad size.
	* transfer.c (read_sf): Do not use F2003 I/O memory areas unless
	IOPARM_DT_HAS_F2003 bit has been set. (read_block_form): Ditto.
	(formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto and
	add comment, fix formatting.
	* write.c (write_default_char4): Likewise though not strictly necessary.
	(write_utf8_char4): Ditto. (write_character): Ditto.
	(write_real_g0): Ditto. (list_formatted_write_scalar): Ditto.
	(nml_write_obj): Ditto. (namelist_write): Ditto.
	* write_float.def (calculate_sign): Eliminate warning by including all
	cases in switch. (output_float): Output only decimal point of F2003 flag
	is not set.

From-SVN: r140576
2008-09-23 03:52:19 +00:00
..
close.c
fbuf.c re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8") 2008-06-13 20:28:08 +00:00
file_pos.c re PR fortran/37498 (Incorrect array value returned - 4.3 ABI Broken) 2008-09-23 03:52:19 +00:00
format.c re PR fortran/37228 (F2008: Support g0.<d> edit descriptor) 2008-09-02 10:50:13 +02:00
inquire.c re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8") 2008-06-13 20:28:08 +00:00
intrinsics.c
io.h re PR fortran/37498 (Incorrect array value returned - 4.3 ABI Broken) 2008-09-23 03:52:19 +00:00
list_read.c re PR fortran/37498 (Incorrect array value returned - 4.3 ABI Broken) 2008-09-23 03:52:19 +00:00
lock.c
open.c re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8") 2008-06-13 20:28:08 +00:00
read.c re PR fortran/37498 (Incorrect array value returned - 4.3 ABI Broken) 2008-09-23 03:52:19 +00:00
size_from_kind.c
transfer.c re PR fortran/37498 (Incorrect array value returned - 4.3 ABI Broken) 2008-09-23 03:52:19 +00:00
unit.c
unix.c
write_float.def re PR fortran/37498 (Incorrect array value returned - 4.3 ABI Broken) 2008-09-23 03:52:19 +00:00
write.c re PR fortran/37498 (Incorrect array value returned - 4.3 ABI Broken) 2008-09-23 03:52:19 +00:00