gcc/libgfortran/io
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
..
close.c normalize.c (almostone_r4, [...]): Fix parameter list. 2005-05-15 14:44:42 +02:00
file_pos.c Forgot to remove and add these files in the previous commit. 2005-08-07 22:59:00 +00:00
format.c re PR libfortran/20006 ($ format extension doesn't work) 2005-08-11 13:50:13 +00:00
inquire.c re PR libfortran/20950 ([4.0 only] segfault in INQUIRE asking for SEQUENTIAL status) 2005-04-18 07:34:32 +00:00
io.h check.c (gfc_check_ttynam_sub, [...]): Add check functions for new intrinsics TTYNAM and ISATTY. 2005-08-09 17:33:17 +00:00
list_read.c [multiple changes] 2005-07-13 18:43:14 +00:00
lock.c normalize.c (almostone_r4, [...]): Fix parameter list. 2005-05-15 14:44:42 +02:00
open.c configure.ac: Add additional warning flags. 2005-05-17 18:54:58 +02:00
read.c [multiple changes] 2005-07-22 14:07:19 +00:00
transfer.c re PR libfortran/23154 (Currupt string and segfault in formatted read.) 2005-08-09 01:56:04 +00:00
unit.c re PR libfortran/22570 (Null Characters instead of blanks in text output.) 2005-07-22 17:43:31 +00:00
unix.c check.c (gfc_check_ttynam_sub, [...]): Add check functions for new intrinsics TTYNAM and ISATTY. 2005-08-09 17:33:17 +00:00
write.c re PR libfortran/22436 (print *,tiny(1._10) yields asterisks) 2005-07-30 20:45:02 +00:00