gcc/libgfortran/runtime
Francois-Xavier Coudert 8b67b708f1 re PR libfortran/20006 ($ format extension doesn't work)
PR libfortran/20006
	* gfortran.h: Add is_main_program member to symbol_attribute.
	* trans-decl: Add a gfor_fndecl_set_std tree.
	(gfc_build_builtin_function_decls): Create it.
	(gfc_generate_function_code): Add this call at the beginning of
	the main program.
	* trans.c (gfc_generate_code): Move main_program and attr.
	* trans.h: Add declaration for gfor_fndecl_set_std.

	* Makefile.am: Add file runtime/compile_options.c.
	* Makefile.in: Regenerate.
	* libgfortran.h: Create structure compile_options_t. Define the
	compile_options variable and GFC_STD_ macros.
	* runtime/compile_options.c: New file.
	* runtime/error.c (notify_std): New function.
	* runtime/main.c (init): Call init_compile_options during
	initialization.
	* io/format.c: Use the new notify_std function for the $
	descriptor extension.

	* gfortran.dg/runtime_warning_1.f90: New test.

Co-Authored-By: Steven Bosscher <stevenb@suse.de>

From-SVN: r102990
2005-08-11 13:50:13 +00:00
..
compile_options.c re PR libfortran/20006 ($ format extension doesn't work) 2005-08-11 13:50:13 +00:00
environ.c normalize.c (almostone_r4, [...]): Fix parameter list. 2005-05-15 14:44:42 +02:00
error.c re PR libfortran/20006 ($ format extension doesn't work) 2005-08-11 13:50:13 +00:00
in_pack_generic.c [multiple changes] 2005-06-11 19:39:13 +00:00
in_unpack_generic.c [multiple changes] 2005-06-11 19:39:13 +00:00
main.c re PR libfortran/20006 ($ format extension doesn't work) 2005-08-11 13:50:13 +00:00
memory.c re PR libfortran/21324 (#undef GFC_CLEAR_MEMORY causes testsuite failures) 2005-05-12 17:50:33 +00:00
normalize.c normalize.c (almostone_r4, [...]): Fix parameter list. 2005-05-15 14:44:42 +02:00
pause.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
select.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
stop.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
string.c chdir.c, [...]: Include <string.h> for prototypes. 2005-05-15 10:25:52 +02:00