aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/optimize.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-06-12 06:43:27 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-06-12 06:43:27 +0000
commit459c43ad0041d6b63c0125b0833cf9813579f6c5 (patch)
treed26768333b2ecad582bc0cc90c3d58ab9160ef61 /gcc/cp/optimize.c
parentcbd3488bb9798167f4eeb8dd7ed693dcbf66d987 (diff)
downloadgcc-459c43ad0041d6b63c0125b0833cf9813579f6c5.zip
gcc-459c43ad0041d6b63c0125b0833cf9813579f6c5.tar.gz
gcc-459c43ad0041d6b63c0125b0833cf9813579f6c5.tar.bz2
mangle.c (NESTED_TEMPLATE_MATCH): Fix typo in comment.
* mangle.c (NESTED_TEMPLATE_MATCH): Fix typo in comment. (is_std_substitution): Don't check CLASSTYPE_USE_TEMPLATE here. (find_substitution): Only use the `Sa' substitution for std::allocator, not instantiations of it. (write_template_prefix): Move comment. Only use a TREE_LIST to represent substitutions for a member template. (write_array_type): Mangle array dimensions correctly. * optimize.c (maybe_clone_body): Copy more information from the cloned function. * pt.c (regenerate_decl_from_template): Preserve DECL_USE_TEMPLATE on the regenerated declaration. From-SVN: r34497
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r--gcc/cp/optimize.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c
index b446207..fa8d9e8 100644
--- a/gcc/cp/optimize.c
+++ b/gcc/cp/optimize.c
@@ -911,6 +911,10 @@ maybe_clone_body (fn)
DECL_WEAK (clone) = DECL_WEAK (fn);
DECL_ONE_ONLY (clone) = DECL_ONE_ONLY (fn);
DECL_SECTION_NAME (clone) = DECL_SECTION_NAME (fn);
+ DECL_USE_TEMPLATE (clone) = DECL_USE_TEMPLATE (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);
/* Start processing the function. */
push_to_top_level ();