aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-10-06 06:18:18 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-10-06 06:18:18 +0000
commit13ef1ec581874e099603ee3002c1cc7c6f429292 (patch)
tree5e88612cbed45100047851904e6546122dd09271
parent3454335f03aae7045816c929761fc0ed4b9a148b (diff)
downloadgcc-13ef1ec581874e099603ee3002c1cc7c6f429292.zip
gcc-13ef1ec581874e099603ee3002c1cc7c6f429292.tar.gz
gcc-13ef1ec581874e099603ee3002c1cc7c6f429292.tar.bz2
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
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/decl2.c3
2 files changed, 6 insertions, 0 deletions
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 <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.
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: