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
469abfd2
Commit
469abfd2
authored
Apr 06, 2016
by
Jason Merrill
Committed by
Jason Merrill
Apr 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* class.c (check_abi_tags): Fix function template handling.
From-SVN: r234790
parent
41414a02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/class.c
+9
-0
gcc/testsuite/g++.dg/abi/abi-tag19.C
+4
-0
No files found.
gcc/cp/ChangeLog
View file @
469abfd2
2016-04-06 Jason Merrill <jason@redhat.com>
* class.c (check_abi_tags): Fix function template handling.
2016-04-05 Nathan Sidwell <nathan@acm.org>
PR c++/70512
...
...
gcc/cp/class.c
View file @
469abfd2
...
...
@@ -1604,6 +1604,15 @@ check_abi_tags (tree t, tree subob)
void
check_abi_tags
(
tree
decl
)
{
tree
t
;
if
(
abi_version_at_least
(
10
)
&&
DECL_LANG_SPECIFIC
(
decl
)
&&
DECL_USE_TEMPLATE
(
decl
)
&&
(
t
=
DECL_TEMPLATE_RESULT
(
DECL_TI_TEMPLATE
(
decl
)),
t
!=
decl
))
/* Make sure that our template has the appropriate tags, since
write_unqualified_name looks for them there. */
check_abi_tags
(
t
);
if
(
VAR_P
(
decl
))
check_abi_tags
(
decl
,
TREE_TYPE
(
decl
));
else
if
(
TREE_CODE
(
decl
)
==
FUNCTION_DECL
...
...
gcc/testsuite/g++.dg/abi/abi-tag19.C
0 → 100644
View file @
469abfd2
struct
__attribute__
((
abi_tag
(
"a"
)))
X
{
};
template
<
typename
T
>
struct
Y
{
X
f
()
{
return
X
();
}
};
template
struct
Y
<
int
>
;
// { dg-final { scan-assembler "_ZN1YIiE1fB1aEv" } }
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