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
f2f48c6c
Commit
f2f48c6c
authored
Mar 18, 2016
by
Uros Bizjak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* libsupc++/guard.cc: Revert my last commit.
From-SVN: r234336
parent
b5a28d80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
libstdc++-v3/ChangeLog
+0
-10
libstdc++-v3/libsupc++/guard.cc
+2
-0
No files found.
libstdc++-v3/ChangeLog
View file @
f2f48c6c
2016-03-18 Uros Bizjak <ubizjak@gmail.com>
Revert:
2015-07-02 Uros Bizjak <ubizjak@gmail.com>
* libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
to avoid unused variable warning.
(__set_and_release): Use __p after __atomic_store to avoid unused
variable warning.
2016-02-24 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/69939
...
...
libstdc++-v3/libsupc++/guard.cc
View file @
f2f48c6c
...
...
@@ -117,6 +117,7 @@ __test_and_acquire (__cxxabiv1::__guard *g)
unsigned
char
__c
;
unsigned
char
*
__p
=
reinterpret_cast
<
unsigned
char
*>
(
g
);
__atomic_load
(
__p
,
&
__c
,
__ATOMIC_ACQUIRE
);
(
void
)
__p
;
return
_GLIBCXX_GUARD_TEST
(
&
__c
);
}
# define _GLIBCXX_GUARD_TEST_AND_ACQUIRE(G) __test_and_acquire (G)
...
...
@@ -132,6 +133,7 @@ __set_and_release (__cxxabiv1::__guard *g)
unsigned
char
*
__p
=
reinterpret_cast
<
unsigned
char
*>
(
g
);
unsigned
char
val
=
1
;
__atomic_store
(
__p
,
&
val
,
__ATOMIC_RELEASE
);
(
void
)
__p
;
}
# define _GLIBCXX_GUARD_SET_AND_RELEASE(G) __set_and_release (G)
# endif
...
...
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