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
2f435bed
Commit
2f435bed
authored
Mar 25, 1999
by
Jason Merrill
Committed by
Jason Merrill
Mar 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl2.c (comdat_linkage): Treat vtables like functions.
From-SVN: r25985
parent
e55b4486
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl2.c
+5
-1
No files found.
gcc/cp/ChangeLog
View file @
2f435bed
1999-03-25 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (comdat_linkage): Treat vtables like functions.
1999-03-25 Mark Mitchell <mark@codesourcery.com>
* pt.c (tsubst_decl): Tsubst into DECL_BEFRIENDING_CLASSES.
...
...
gcc/cp/decl2.c
View file @
2f435bed
...
...
@@ -2370,10 +2370,14 @@ comdat_linkage (decl)
{
if
(
flag_weak
)
make_decl_one_only
(
decl
);
else
if
(
TREE_CODE
(
decl
)
==
FUNCTION_DECL
)
else
if
(
TREE_CODE
(
decl
)
==
FUNCTION_DECL
||
DECL_VIRTUAL_P
(
decl
))
/* We can just emit functions and vtables statically; it doesn't really
matter if we have multiple copies. */
TREE_PUBLIC
(
decl
)
=
0
;
else
{
/* Static data member template instantiations, however, cannot
have multiple copies. */
if
(
DECL_INITIAL
(
decl
)
==
0
||
DECL_INITIAL
(
decl
)
==
error_mark_node
)
DECL_COMMON
(
decl
)
=
1
;
...
...
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