]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgfortran/runtime/main.c
re PR fortran/39178 (Generate main() rather than using a main in libgfortran/fmain.c)
authorTobias Burnus <burnus@net-b.de>
Tue, 26 May 2009 21:19:57 +0000 (23:19 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 26 May 2009 21:19:57 +0000 (23:19 +0200)
commit092231a8d635d601a3d05a284f279286f59cab9e
tree43a6fbb9dd54816b1c1a284ffc7fba3adac67337
parent9a0bab0be682be2aaee5f1146518c4d94d44ac8e
re PR fortran/39178 (Generate main() rather than using a main in libgfortran/fmain.c)

fortran/
2009-05-26  Tobias Burnus  <burnus@net-b.de>

        PR fortran/39178
        * gfortranspec.c (lang_specific_driver): Stop linking
        libgfortranbegin.
        * trans-decl.c (gfc_build_builtin_function_decls): Stop
        making MAIN__ publicly visible.
        (gfc_build_builtin_function_decls): Add
        gfor_fndecl_set_args.
        (create_main_function) New function.
        (gfc_generate_function_code): Use it.

libgfortran/
2009-05-26  Tobias Burnus  <burnus@net-b.de>

        PR fortran/39178
        * runtime/main.c (store_exe_path): Make static
        and multiple-times callable.
        (set_args): Call store_exe_path.
        * libgfortran.h: Remove store_exe_path prototype.
        * fmain.c (main): Remove store_exe_path call.

From-SVN: r147883
gcc/fortran/ChangeLog
gcc/fortran/gfortranspec.c
gcc/fortran/trans-decl.c
libgfortran/ChangeLog
libgfortran/fmain.c
libgfortran/libgfortran.h
libgfortran/runtime/main.c