From: Mark Mitchell Date: Thu, 26 Apr 2001 00:33:18 +0000 (+0000) Subject: optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting the clone. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b96ada8790bb47a5285bdebb869fcea4d13fd3d4;p=gcc.git 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 --- 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 ();