From 96ff3e76bce16645cf5c448cc6330c6988f42b45 Mon Sep 17 00:00:00 2001 From: mmitchel Date: Wed, 6 Oct 1999 06:18:18 +0000 Subject: [PATCH] * decl2.c (start_static_storage_duration_function): Push the function declaration so it ends up in namespace scope. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29838 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/decl2.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c87e517..3eeadc9 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 1999-10-05 Mark Mitchell + * 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. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index e128e8c..7b69bec 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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: -- 2.7.4