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
57c3feb4
Commit
57c3feb4
authored
Oct 25, 2012
by
Jason Merrill
Committed by
Jason Merrill
Oct 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* semantics.c (finish_omp_threadprivate): Call complete_type.
From-SVN: r192812
parent
4514a96b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletions
+18
-1
gcc/cp/ChangeLog
+2
-0
gcc/cp/semantics.c
+1
-1
gcc/testsuite/g++.dg/gomp/tls-template1.C
+13
-0
libgomp/testsuite/libgomp.c++/tls-init1.C
+2
-0
No files found.
gcc/cp/ChangeLog
View file @
57c3feb4
2012-10-25 Jason Merrill <jason@redhat.com>
* semantics.c (finish_omp_threadprivate): Call complete_type.
* class.c (one_inherited_ctor): Warn about variadic inherited ctor.
2012-10-25 Marc Glisse <marc.glisse@inria.fr>
...
...
gcc/cp/semantics.c
View file @
57c3feb4
...
...
@@ -4360,7 +4360,7 @@ finish_omp_threadprivate (tree vars)
error
(
"%qE declared %<threadprivate%> after first use"
,
v
);
else
if
(
!
TREE_STATIC
(
v
)
&&
!
DECL_EXTERNAL
(
v
))
error
(
"automatic variable %qE cannot be %<threadprivate%>"
,
v
);
else
if
(
!
COMPLETE_TYPE_P
(
TREE_TYPE
(
v
)))
else
if
(
!
COMPLETE_TYPE_P
(
complete_type
(
TREE_TYPE
(
v
)
)))
error
(
"%<threadprivate%> %qE has incomplete type"
,
v
);
else
if
(
TREE_STATIC
(
v
)
&&
TYPE_P
(
CP_DECL_CONTEXT
(
v
))
&&
CP_DECL_CONTEXT
(
v
)
!=
current_class_type
)
...
...
gcc/testsuite/g++.dg/gomp/tls-template1.C
0 → 100644
View file @
57c3feb4
// { dg-require-effective-target tls }
template
<
class
T
>
struct
B
{
T
t
;
};
class
A
{
static
B
<
int
>
b
;
#pragma omp threadprivate(b)
};
B
<
int
>
A
::
b
;
libgomp/testsuite/libgomp.c++/tls-init1.C
View file @
57c3feb4
// { dg-require-alias }
extern
"C"
void
abort
();
struct
A
...
...
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