Commit f788ca89 by Dave Korn Committed by Tobias Burnus

trans-decl.c (create_main_function): Don't build main decl twice.

2009-06-10  Dave Korn  <dave.korn.cygwin@gmail.com>

        * trans-decl.c (create_main_function):  Don't build main decl twice.

From-SVN: r148344
parent b0cde35b
2009-06-10 Dave Korn <dave.korn.cygwin@gmail.com>
* trans-decl.c (create_main_function): Don't build main decl twice.
2009-06-09 Tobias Burnus <burnus@net-b.de>
* trans-decl.c (gfc_generate_function_code): Use gfc_option.rtcheck
......
......@@ -3876,7 +3876,6 @@ create_main_function (tree fndecl)
NULL_TREE);
main_identifier_node = get_identifier ("main");
ftn_main = build_decl (FUNCTION_DECL, main_identifier_node, tmp);
ftn_main = build_decl (FUNCTION_DECL, get_identifier ("main"), tmp);
DECL_EXTERNAL (ftn_main) = 0;
TREE_PUBLIC (ftn_main) = 1;
TREE_STATIC (ftn_main) = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment