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
a6b0c7bc
Commit
a6b0c7bc
authored
Aug 08, 2014
by
Jason Merrill
Committed by
Jason Merrill
Aug 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (lookup_template_class_1): Copy abi_tag.
From-SVN: r213762
parent
ff09769f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+6
-0
gcc/testsuite/g++.dg/abi/abi-tag8.C
+9
-0
No files found.
gcc/cp/ChangeLog
View file @
a6b0c7bc
2014-08-08 Jason Merrill <jason@redhat.com>
* pt.c (lookup_template_class_1): Copy abi_tag.
2014-08-08 Kai Tietz <ktietz@redhat.com>
* semantics.c (expand_or_defer_fn_1): Check for keep-inline-dllexport
...
...
gcc/cp/pt.c
View file @
a6b0c7bc
...
...
@@ -7813,6 +7813,12 @@ lookup_template_class_1 (tree d1, tree arglist, tree in_decl, tree context,
}
}
if
(
OVERLOAD_TYPE_P
(
t
)
&&
!
DECL_ALIAS_TEMPLATE_P
(
gen_tmpl
))
if
(
tree
attributes
=
lookup_attribute
(
"abi_tag"
,
TYPE_ATTRIBUTES
(
template_type
)))
TYPE_ATTRIBUTES
(
t
)
=
attributes
;
/* Let's consider the explicit specialization of a member
of a class template specialization that is implicitly instantiated,
e.g.:
...
...
gcc/testsuite/g++.dg/abi/abi-tag8.C
0 → 100644
View file @
a6b0c7bc
// { dg-options "-Wabi-tag" }
template
<
class
T
>
struct
__attribute
((
__abi_tag__
(
"cxx11"
)))
list
// { dg-message "list" }
{
};
struct
X
{
// { dg-warning "abi tag" }
list
<
int
>
l
;
// { dg-message "X::l" }
};
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