From b96ada8790bb47a5285bdebb869fcea4d13fd3d4 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Thu, 26 Apr 2001 00:33:18 +0000 Subject: [PATCH] optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting the clone. * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting the clone. From-SVN: r41564 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/optimize.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4ea7d43e835..40d6d96b02e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-04-25 Mark Mitchell + + * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting + the clone. + 2001-04-25 Nathan Sidwell * decl.c (grokdeclarator): Set context of namespace scope diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index 096bd5d0d64..541bdf95fb0 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -1051,6 +1051,7 @@ maybe_clone_body (fn) DECL_EXTERNAL (clone) = DECL_EXTERNAL (fn); DECL_INTERFACE_KNOWN (clone) = DECL_INTERFACE_KNOWN (fn); DECL_NOT_REALLY_EXTERN (clone) = DECL_NOT_REALLY_EXTERN (fn); + TREE_PUBLIC (clone) = TREE_PUBLIC (fn); /* Start processing the function. */ push_to_top_level (); -- 2.30.2