]> gcc.gnu.org Git - gcc.git/commitdiff
optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting the clone.
authorMark Mitchell <mark@codesourcery.com>
Thu, 26 Apr 2001 00:33:18 +0000 (00:33 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 26 Apr 2001 00:33:18 +0000 (00:33 +0000)
* optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
the clone.

From-SVN: r41564

gcc/cp/ChangeLog
gcc/cp/optimize.c

index 4ea7d43e835d929781f8a09f0d141af52ecf1635..40d6d96b02e3f369b47206cb4ad9868f46c93b6c 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-25  Mark Mitchell  <mark@codesourcery.com>
+
+       * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
+       the clone.
+
 2001-04-25  Nathan Sidwell  <nathan@codesourcery.com>
 
        * decl.c (grokdeclarator): Set context of namespace scope
index 096bd5d0d640ad89017c4674484c599fdd9895d8..541bdf95fb07d4bb25deda5ba35cb3c95c483343 100644 (file)
@@ -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 ();
This page took 0.072942 seconds and 5 git commands to generate.