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
08272b85
Commit
08272b85
authored
Sep 29, 2004
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert accidental checkin
From-SVN: r88302
parent
26aed923
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
gcc/cp/decl.c
+8
-17
No files found.
gcc/cp/decl.c
View file @
08272b85
...
...
@@ -5239,7 +5239,7 @@ expand_static_init (tree decl, tree init)
if
(
DECL_FUNCTION_SCOPE_P
(
decl
))
{
/* Emit code to perform this initialization but once. */
tree
if_stmt
=
NULL_TREE
,
inner_if_stmt
=
NULL_TREE
;
tree
if_stmt
,
inner_if_stmt
=
NULL_TREE
;
tree
then_clause
,
inner_then_clause
=
NULL_TREE
;
tree
guard
,
guard_addr
,
guard_addr_list
;
tree
acquire_fn
,
release_fn
,
abort_fn
;
...
...
@@ -5279,16 +5279,10 @@ expand_static_init (tree decl, tree init)
/* Create the guard variable. */
guard
=
get_guard
(
decl
);
/* This optimization isn't safe on targets which can reorder loads,
via speculative execution, caching behavior or whatever. In that
case we force synchronization in __cxa_guard_acquire. */
if
(
!
targetm
.
reorders_loads
||
!
flag_threadsafe_statics
)
{
/* Begin the conditional initialization. */
if_stmt
=
begin_if_stmt
();
finish_if_stmt_cond
(
get_guard_cond
(
guard
),
if_stmt
);
then_clause
=
begin_compound_stmt
(
BCS_NO_SCOPE
);
}
/* Begin the conditional initialization. */
if_stmt
=
begin_if_stmt
();
finish_if_stmt_cond
(
get_guard_cond
(
guard
),
if_stmt
);
then_clause
=
begin_compound_stmt
(
BCS_NO_SCOPE
);
if
(
flag_threadsafe_statics
)
{
...
...
@@ -5351,12 +5345,9 @@ expand_static_init (tree decl, tree init)
finish_if_stmt
(
inner_if_stmt
);
}
if
(
!
targetm
.
reorders_loads
||
!
flag_threadsafe_statics
)
{
finish_compound_stmt
(
then_clause
);
finish_then_clause
(
if_stmt
);
finish_if_stmt
(
if_stmt
);
}
finish_compound_stmt
(
then_clause
);
finish_then_clause
(
if_stmt
);
finish_if_stmt
(
if_stmt
);
}
else
static_aggregates
=
tree_cons
(
init
,
decl
,
static_aggregates
);
...
...
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