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
c4fa3572
Commit
c4fa3572
authored
May 02, 2014
by
Jason Merrill
Committed by
Jason Merrill
May 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl2.c (vague_linkage_p): Local statics have vague linkage.
From-SVN: r210019
parent
43b781fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
gcc/cp/ChangeLog
+2
-0
gcc/cp/decl2.c
+13
-6
No files found.
gcc/cp/ChangeLog
View file @
c4fa3572
2014-05-02 Jason Merrill <jason@redhat.com>
2014-05-02 Jason Merrill <jason@redhat.com>
* decl2.c (vague_linkage_p): Local statics have vague linkage.
PR c++/60992
PR c++/60992
* lambda.c (lambda_capture_field_type): Wrap anything dependent
* lambda.c (lambda_capture_field_type): Wrap anything dependent
other than 'this'.
other than 'this'.
...
...
gcc/cp/decl2.c
View file @
c4fa3572
...
@@ -1804,12 +1804,19 @@ vague_linkage_p (tree decl)
...
@@ -1804,12 +1804,19 @@ vague_linkage_p (tree decl)
/* Unfortunately, import_export_decl has not always been called
/* Unfortunately, import_export_decl has not always been called
before the function is processed, so we cannot simply check
before the function is processed, so we cannot simply check
DECL_COMDAT. */
DECL_COMDAT. */
return
(
DECL_COMDAT
(
decl
)
if
(
DECL_COMDAT
(
decl
)
||
(((
TREE_CODE
(
decl
)
==
FUNCTION_DECL
||
(((
TREE_CODE
(
decl
)
==
FUNCTION_DECL
&&
DECL_DECLARED_INLINE_P
(
decl
))
&&
DECL_DECLARED_INLINE_P
(
decl
))
||
(
DECL_LANG_SPECIFIC
(
decl
)
||
(
DECL_LANG_SPECIFIC
(
decl
)
&&
DECL_TEMPLATE_INSTANTIATION
(
decl
)))
&&
DECL_TEMPLATE_INSTANTIATION
(
decl
)))
&&
TREE_PUBLIC
(
decl
)));
&&
TREE_PUBLIC
(
decl
)))
return
true
;
else
if
(
DECL_FUNCTION_SCOPE_P
(
decl
))
/* A local static in an inline effectively has vague linkage. */
return
(
TREE_STATIC
(
decl
)
&&
vague_linkage_p
(
DECL_CONTEXT
(
decl
)));
else
return
false
;
}
}
/* Determine whether or not we want to specifically import or export CTYPE,
/* Determine whether or not we want to specifically import or export CTYPE,
...
...
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