Skip to content
Snippets Groups Projects
Forked from redox-os / gcc
Source project has a limited visibility.
  • tkoenig's avatar
    15774a8b
    2005-02-06 Thomas Koenig <Thomas.Koenig@online.de> · 15774a8b
    tkoenig authored
    	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.
    
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110664 138bc75d-0d04-0410-961f-82ee72b054a4
    15774a8b
    History
    2005-02-06 Thomas Koenig <Thomas.Koenig@online.de>
    tkoenig authored
    	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.
    
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110664 138bc75d-0d04-0410-961f-82ee72b054a4