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
3838e0c0
Commit
3838e0c0
authored
7 years ago
by
François Dumont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert revision 247926.
From-SVN: r247998
parent
e9cd48dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
26 deletions
+5
-26
libstdc++-v3/ChangeLog
+0
-4
libstdc++-v3/include/debug/safe_container.h
+2
-12
libstdc++-v3/include/debug/string
+3
-10
No files found.
libstdc++-v3/ChangeLog
View file @
3838e0c0
...
...
@@ -12,10 +12,6 @@
(_Rb_tree_impl<>): Remove _Is_pod_comparator
template parameter.
* include/debug/safe_container.h [_GLIBCXX_USE_CXX11_ABI]
(_Safe_container<>): Remove _IsCxx11AllocatorAware template parameter.
* include/debug/string: Adapt.
* include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
(__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
(__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
...
...
This diff is collapsed.
Click to expand it.
libstdc++-v3/include/debug/safe_container.h
View file @
3838e0c0
...
...
@@ -36,12 +36,8 @@ namespace __gnu_debug
/// Safe class dealing with some allocator dependent operations.
template
<
typename
_SafeContainer
,
typename
_Alloc
,
template
<
typename
>
class
_SafeBase
#if _GLIBCXX_USE_CXX11_ABI
>
#else
,
bool
_IsCxx11AllocatorAware
=
true
>
#endif
template
<
typename
>
class
_SafeBase
,
bool
_IsCxx11AllocatorAware
=
true
>
class
_Safe_container
:
public
_SafeBase
<
_SafeContainer
>
{
...
...
@@ -86,10 +82,8 @@ namespace __gnu_debug
{
__glibcxx_check_self_move_assign
(
__x
);
# if !_GLIBCXX_USE_CXX11_ABI
if
(
_IsCxx11AllocatorAware
)
{
# endif
typedef
__gnu_cxx
::
__alloc_traits
<
_Alloc
>
_Alloc_traits
;
bool
__xfer_memory
=
_Alloc_traits
::
_S_propagate_on_move_assign
()
...
...
@@ -98,11 +92,9 @@ namespace __gnu_debug
_Base
::
_M_swap
(
__x
);
else
this
->
_M_invalidate_all
();
# if !_GLIBCXX_USE_CXX11_ABI
}
else
_Base
::
_M_swap
(
__x
);
# endif
__x
.
_M_invalidate_all
();
return
*
this
;
...
...
@@ -111,9 +103,7 @@ namespace __gnu_debug
void
_M_swap
(
_Safe_container
&
__x
)
noexcept
{
# if !_GLIBCXX_USE_CXX11_ABI
if
(
_IsCxx11AllocatorAware
)
# endif
{
typedef
__gnu_cxx
::
__alloc_traits
<
_Alloc
>
_Alloc_traits
;
...
...
This diff is collapsed.
Click to expand it.
libstdc++-v3/include/debug/string
View file @
3838e0c0
...
...
@@ -44,20 +44,13 @@ template<typename _CharT, typename _Traits = std::char_traits<_CharT>,
class basic_string
: public __gnu_debug::_Safe_container<
basic_string<_CharT, _Traits, _Allocator>,
#if _GLIBCXX_USE_CXX11_ABI
_Allocator, _Safe_sequence>,
#else
_Allocator, _Safe_sequence, false>,
#endif
_Allocator, _Safe_sequence, bool(_GLIBCXX_USE_CXX11_ABI)>,
public std::basic_string<_CharT, _Traits, _Allocator>
{
typedef std::basic_string<_CharT, _Traits, _Allocator> _Base;
typedef __gnu_debug::_Safe_container<
#if _GLIBCXX_USE_CXX11_ABI
basic_string, _Allocator, _Safe_sequence> _Safe;
#else
basic_string, _Allocator, _Safe_sequence, false> _Safe;
#endif
basic_string, _Allocator, _Safe_sequence, bool(_GLIBCXX_USE_CXX11_ABI)>
_Safe;
public:
// types:
...
...
This diff is collapsed.
Click to expand it.
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