gcc/libgfortran/io
Thomas Koenig d67ab5eef8 [multiple changes]
2006-03-22  Thomas Koenig  <Thomas.Koenig@onlien.de>

	PR fortran/19303
	* gfortran.h (gfc_option_t):  Add record_marker.
	* lang.opt:  Add -frecord-marker=4 and -frecord-marker=8.
	* trans-decl.c:  Add gfor_fndecl_set_record_marker.
	(gfc_build_builtin_function_decls): Set
	gfor_fndecl_set_record_marker.
	(gfc_generate_function_code):  If we are in the main program
	and -frecord-marker was provided, call set_record_marker.
	* options.c (gfc_handle_option):  Add handling for
	-frecord-marker=4 and -frecord-marker=8.
	* invoke.texi:  Document -frecord-marker.

2006-03-22  Thomas Koenig  <Thomas.Koenig@onlien.de>

	PR fortran/19303
	* libgfortran.h (compile_options_t):  Add record_marker.
	* runtime/compile_options.c (set_record_marker):
	New function.
	* io/open.c:  If we have four-byte record markers, use
	GFC_INTEGER_4_HUGE as default record length.
	* io/file_pos.c (unformatted_backspace):  Handle
	different size record markers.
	* io/transfer.c (us_read):  Likewise.
	(us_write):  Likewise.
	(next_record_r):  Likewise.
	(write_us_marker):  Likewise.
	(next_record_w):  Likewise.

2006-03-22  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/19303
	* gfortran.dg/record_marker_1.f90:  New test case.
	* gfortran.dg/record_marker_2.f:  New test case.
	* gfortran.dg/record_marker_3.f90:  New test case.

From-SVN: r112290
2006-03-22 19:09:11 +00:00
..
close.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
file_pos.c [multiple changes] 2006-03-22 19:09:11 +00:00
format.c re PR libfortran/21303 (L edit descriptor without a width) 2006-02-19 21:31:02 +00:00
inquire.c re PR fortran/23815 (Add -byteswapio flag) 2005-12-10 20:01:56 +00:00
io.h re PR libfortran/26136 (List directed input with underfilled (logicals) array read incorrectly) 2006-03-01 06:04:45 +00:00
list_read.c re PR fortran/26554 ([gfortran] incorrect behaviour when reading a logical variable from a string) 2006-03-05 17:54:07 +00:00
lock.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
open.c [multiple changes] 2006-03-22 19:09:11 +00:00
read.c re PR libfortran/25039 ([4.1 only] comma short-circuit field width) 2005-12-09 02:53:41 +00:00
size_from_kind.c random.c: Include config.h 2005-11-27 17:09:40 -05:00
transfer.c [multiple changes] 2006-03-22 19:09:11 +00:00
unit.c re PR fortran/25264 (write to internal unit from the string itself gives wrong result ?) 2005-12-16 19:32:21 +00:00
unix.c re PR libfortran/26499 (gfortran - End of File incorrectly positioned after binary I/O.) 2006-03-10 03:15:36 +00:00
unix.h re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
write.c re PR libfortran/25425 ([4.1 only] F95 and F2003 differ on list-directed output for 0.0) 2006-02-08 20:54:14 +00:00