gcc/libgfortran
Thomas Koenig eaa90d25da re PR fortran/23815 (Add -byteswapio flag)
2005-02-06  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/23815
	* gfortran.texi: Document the GFORTRAN_CONVERT_UNIT environment
	variable.
	* invoke.texi:  Mention the "Runtime" chapter.
	Document the -fconvert= option.
	* gfortran.h:  Add options_convert.
	* lang.opt:  Add fconvert=little-endian, fconvert=big-endian,
	fconvert=native and fconvert=swap.
	* trans-decl.c (top level):  Add gfor_fndecl_set_convert.
	(gfc_build_builtin_function_decls):  Set gfor_fndecl_set_convert.
	(gfc_generate_function_code):  If -fconvert was specified,
	and this is the main program, add a call to set_convert().
	* options.c:  Handle the -fconvert options.

2005-02-06  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/23815
	* runtime/environ.c (init_unformatted):  Add GFORTRAN_CONVERT_UNIT
	environment variable.
	(top level):  Add defines, type and static variables for
	GFORTRAN_CONVERT_UNIT handling.
	(search_unit):  New function.
	(match_word): New function.
	(match_integer): New function.
	(next_token): New function.
	(push_token): New function.
	(mark_single): New function.
	(mark_range): New funciton.
	(do_parse): New function.
	(init_unformatted): New function.
	(get_unformatted_convert): New function.
	* runtime/compile_options.c:  Add set_convert().
	* libgfortran.h:  Add convert to compile_options_t.
	* io/open.c (st_open): Call get_unformatted_convert to get
	unit default; if CONVERT_NONE is returned, check for
	the presence of a CONVERT specifier and use it.
	As default, use compile_options.convert.
	* io/io.h (top level): Add CONVERT_NONE to unit_convert, to signal
	"nothing has been set".
	(top level): Add prototype for get_unformatted_convert.

2005-02-06  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/23815
	* unf_io_convert_4.f90:  New test.

From-SVN: r110664
2006-02-06 20:12:44 +00:00
..
config fpu-glibc.h (set_fpu): Only call fedisableexcept for nonzero FE_ALL_EXCEPT. 2005-11-18 00:09:09 +00:00
generated Make-lang.in (fortran/trans-resolve.o): Depend on fortran/dependency.h. 2005-12-13 05:23:12 +00:00
intrinsics c99_functions.c: Add function prototypes to avoid warnings from -Wstrict-prototypes... 2006-01-12 17:37:47 +00:00
io re PR fortran/23815 (Add -byteswapio flag) 2006-02-06 20:12:44 +00:00
m4 Make-lang.in (fortran/trans-resolve.o): Depend on fortran/dependency.h. 2005-12-13 05:23:12 +00:00
runtime re PR fortran/23815 (Add -byteswapio flag) 2006-02-06 20:12:44 +00:00
acinclude.m4 re PR libfortran/24991 (gfortran build fails with - error:gthr-default.h: No such file or directory) 2005-12-09 14:50:11 +01:00
aclocal.m4 configure.ac: Remove check for sys/mman.h. 2006-01-07 21:28:22 +02:00
c99_protos.h re PR libfortran/24432 (Missing symbols) 2005-10-19 09:45:27 +00:00
ChangeLog re PR fortran/23815 (Add -byteswapio flag) 2006-02-06 20:12:44 +00:00
ChangeLog-2002 * Split the ChangeLog into years. 2006-01-01 17:14:35 +00:00
ChangeLog-2003 * Split the ChangeLog into years. 2006-01-01 17:14:35 +00:00
ChangeLog-2004 * Split the ChangeLog into years. 2006-01-01 17:14:35 +00:00
ChangeLog-2005 * Split the ChangeLog into years. 2006-01-01 17:14:35 +00:00
config.h.in configure.ac: Remove check for sys/mman.h. 2006-01-07 21:28:22 +02:00
configure configure.ac (CFLAGS): Update to include -std=gnu99 so that the configure tests will be run with the... 2006-01-16 22:03:14 +00:00
configure.ac configure.ac (CFLAGS): Update to include -std=gnu99 so that the configure tests will be run with the... 2006-01-16 22:03:14 +00:00
configure.host acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): New check. 2005-10-28 20:13:20 +00:00
fmain.c Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
libgfortran.h re PR fortran/23815 (Add -byteswapio flag) 2006-02-06 20:12:44 +00:00
libtool-version re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
Makefile.am Makefile.am: Enable loop unrolling for matmul. 2005-12-10 23:22:16 +02:00
Makefile.in configure.ac: Remove check for sys/mman.h. 2006-01-07 21:28:22 +02:00
mk-kinds-h.sh re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
mk-sik-inc.sh mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. 2004-09-01 17:51:42 +00:00
mk-srk-inc.sh mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. 2004-09-01 17:51:42 +00:00