]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgfortran/libgfortran.h
re PR libfortran/20006 ($ format extension doesn't work)
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Thu, 11 Aug 2005 13:50:13 +0000 (15:50 +0200)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 11 Aug 2005 13:50:13 +0000 (13:50 +0000)
commit8b67b708f159a6776a07d6eec9c44d3dc8ab9f6e
treed2c54ce8afd0ee3ffde950228cb4b59edbde4431
parent74b002ba34f1d63cc0130ad44076b462477c631f
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
14 files changed:
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/trans-decl.c
gcc/fortran/trans.c
gcc/fortran/trans.h
gcc/testsuite/gfortran.dg/runtime_warning_1.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/Makefile.am
libgfortran/Makefile.in
libgfortran/io/format.c
libgfortran/libgfortran.h
libgfortran/runtime/compile_options.c [new file with mode: 0644]
libgfortran/runtime/error.c
libgfortran/runtime/main.c