Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
23bea145
Commit
23bea145
authored
Dec 05, 2000
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert cloning patch
From-SVN: r38035
parent
85c64f78
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
gcc/cp/pt.c
+9
-1
No files found.
gcc/cp/pt.c
View file @
23bea145
...
...
@@ -5786,7 +5786,6 @@ tsubst_decl (t, args, type, in_decl)
maybe_retrofit_in_chrg
(
r
);
if
(
DECL_CONSTRUCTOR_P
(
r
))
grok_ctor_properties
(
ctx
,
r
);
clone_function_decl
(
r
,
/*update_method_vec_p=*/
0
);
}
else
if
(
IDENTIFIER_OPNAME_P
(
DECL_NAME
(
r
)))
grok_op_properties
(
r
,
DECL_VIRTUAL_P
(
r
),
DECL_FRIEND_P
(
r
));
...
...
@@ -9225,6 +9224,15 @@ do_decl_instantiation (declspecs, declarator, storage)
cp_error
(
"storage class `%D' applied to template instantiation"
,
storage
);
/* Under the new ABI, we need to make sure to instantiate all the
cloned versions of constructors or destructors. */
if
(
flag_new_abi
&&
(
DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P
(
result
)
||
DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P
(
result
))
&&
!
(
TREE_CHAIN
(
result
)
&&
DECL_CLONED_FUNCTION
(
TREE_CHAIN
(
result
))))
clone_function_decl
(
result
,
/*update_method_vec_p=*/
0
);
SET_DECL_EXPLICIT_INSTANTIATION
(
result
);
mark_decl_instantiated
(
result
,
extern_p
);
repo_template_instantiated
(
result
,
extern_p
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment