decl2.c (start_static_storage_duration_function): Push the function declaration so it ends up in namespace scope.

* decl2.c (start_static_storage_duration_function): Push the
	function declaration so it ends up in namespace scope.

From-SVN: r29838
This commit is contained in:
Mark Mitchell 1999-10-06 06:18:18 +00:00 committed by Mark Mitchell
parent 3454335f03
commit 13ef1ec581
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,8 @@
1999-10-05 Mark Mitchell <mark@codesourcery.com>
* decl2.c (start_static_storage_duration_function): Push the
function declaration so it ends up in namespace scope.
* dump.c (DUMP_CHILDREN): Remove.
(DUMP_BINFO): Adjust.
(struct dump_node_info): Remove dump_children_p.

View File

@ -2985,6 +2985,9 @@ start_static_storage_duration_function ()
TREE_CHAIN (initialize_p_decl) = priority_decl;
DECL_ARGUMENTS (ssdf_decl) = initialize_p_decl;
/* Put the function in the global scope. */
pushdecl (ssdf_decl);
/* Start the function itself. This is equivalent to declarating the
function as: