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
2370ed1f
Commit
2370ed1f
authored
May 07, 1999
by
Ulrich Drepper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it possible to compile with __USE_MALLOC.
From-SVN: r26818
parent
ef179a26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
libstdc++/stl/stl_alloc.h
+8
-2
libstdc++/stlinst.cc
+2
-0
No files found.
libstdc++/stl/stl_alloc.h
View file @
2370ed1f
...
@@ -894,6 +894,7 @@ inline bool operator!=(const __malloc_alloc_template<__inst>&,
...
@@ -894,6 +894,7 @@ inline bool operator!=(const __malloc_alloc_template<__inst>&,
}
}
#endif
/* __STL_FUNCTION_TMPL_PARTIAL_ORDER */
#endif
/* __STL_FUNCTION_TMPL_PARTIAL_ORDER */
#ifndef __USE_MALLOC
template
<
bool
__threads
,
int
__inst
>
template
<
bool
__threads
,
int
__inst
>
inline
bool
operator
==
(
const
__default_alloc_template
<
__threads
,
__inst
>&
,
inline
bool
operator
==
(
const
__default_alloc_template
<
__threads
,
__inst
>&
,
const
__default_alloc_template
<
__threads
,
__inst
>&
)
const
__default_alloc_template
<
__threads
,
__inst
>&
)
...
@@ -901,14 +902,15 @@ inline bool operator==(const __default_alloc_template<__threads, __inst>&,
...
@@ -901,14 +902,15 @@ inline bool operator==(const __default_alloc_template<__threads, __inst>&,
return
true
;
return
true
;
}
}
#ifdef __STL_FUNCTION_TMPL_PARTIAL_ORDER
#
ifdef __STL_FUNCTION_TMPL_PARTIAL_ORDER
template
<
bool
__threads
,
int
__inst
>
template
<
bool
__threads
,
int
__inst
>
inline
bool
operator
!=
(
const
__default_alloc_template
<
__threads
,
__inst
>&
,
inline
bool
operator
!=
(
const
__default_alloc_template
<
__threads
,
__inst
>&
,
const
__default_alloc_template
<
__threads
,
__inst
>&
)
const
__default_alloc_template
<
__threads
,
__inst
>&
)
{
{
return
false
;
return
false
;
}
}
#endif
/* __STL_FUNCTION_TMPL_PARTIAL_ORDER */
# endif
/* __STL_FUNCTION_TMPL_PARTIAL_ORDER */
#endif
template
<
class
_Alloc
>
template
<
class
_Alloc
>
inline
bool
operator
==
(
const
debug_alloc
<
_Alloc
>&
,
inline
bool
operator
==
(
const
debug_alloc
<
_Alloc
>&
,
...
@@ -983,6 +985,7 @@ struct _Alloc_traits<_Tp, __malloc_alloc_template<__inst> >
...
@@ -983,6 +985,7 @@ struct _Alloc_traits<_Tp, __malloc_alloc_template<__inst> >
typedef
__allocator
<
_Tp
,
__malloc_alloc_template
<
__inst
>
>
allocator_type
;
typedef
__allocator
<
_Tp
,
__malloc_alloc_template
<
__inst
>
>
allocator_type
;
};
};
#ifndef __USE_MALLOC
template
<
class
_Tp
,
bool
__threads
,
int
__inst
>
template
<
class
_Tp
,
bool
__threads
,
int
__inst
>
struct
_Alloc_traits
<
_Tp
,
__default_alloc_template
<
__threads
,
__inst
>
>
struct
_Alloc_traits
<
_Tp
,
__default_alloc_template
<
__threads
,
__inst
>
>
{
{
...
@@ -992,6 +995,7 @@ struct _Alloc_traits<_Tp, __default_alloc_template<__threads, __inst> >
...
@@ -992,6 +995,7 @@ struct _Alloc_traits<_Tp, __default_alloc_template<__threads, __inst> >
typedef
__allocator
<
_Tp
,
__default_alloc_template
<
__threads
,
__inst
>
>
typedef
__allocator
<
_Tp
,
__default_alloc_template
<
__threads
,
__inst
>
>
allocator_type
;
allocator_type
;
};
};
#endif
template
<
class
_Tp
,
class
_Alloc
>
template
<
class
_Tp
,
class
_Alloc
>
struct
_Alloc_traits
<
_Tp
,
debug_alloc
<
_Alloc
>
>
struct
_Alloc_traits
<
_Tp
,
debug_alloc
<
_Alloc
>
>
...
@@ -1013,6 +1017,7 @@ struct _Alloc_traits<_Tp,
...
@@ -1013,6 +1017,7 @@ struct _Alloc_traits<_Tp,
typedef
__allocator
<
_Tp
,
__malloc_alloc_template
<
__inst
>
>
allocator_type
;
typedef
__allocator
<
_Tp
,
__malloc_alloc_template
<
__inst
>
>
allocator_type
;
};
};
#ifndef __USE_MALLOC
template
<
class
_Tp
,
class
_Tp1
,
bool
__thr
,
int
__inst
>
template
<
class
_Tp
,
class
_Tp1
,
bool
__thr
,
int
__inst
>
struct
_Alloc_traits
<
_Tp
,
struct
_Alloc_traits
<
_Tp
,
__allocator
<
_Tp1
,
__allocator
<
_Tp1
,
...
@@ -1024,6 +1029,7 @@ struct _Alloc_traits<_Tp,
...
@@ -1024,6 +1029,7 @@ struct _Alloc_traits<_Tp,
typedef
__allocator
<
_Tp
,
__default_alloc_template
<
__thr
,
__inst
>
>
typedef
__allocator
<
_Tp
,
__default_alloc_template
<
__thr
,
__inst
>
>
allocator_type
;
allocator_type
;
};
};
#endif
template
<
class
_Tp
,
class
_Tp1
,
class
_Alloc
>
template
<
class
_Tp
,
class
_Tp1
,
class
_Alloc
>
struct
_Alloc_traits
<
_Tp
,
__allocator
<
_Tp1
,
debug_alloc
<
_Alloc
>
>
>
struct
_Alloc_traits
<
_Tp
,
__allocator
<
_Tp1
,
debug_alloc
<
_Alloc
>
>
>
...
...
libstdc++/stlinst.cc
View file @
2370ed1f
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
#include <alloc.h>
#include <alloc.h>
#ifndef __USE_MALLOC
template
class
__default_alloc_template
<
__NODE_ALLOCATOR_THREADS
,
0
>
;
template
class
__default_alloc_template
<
__NODE_ALLOCATOR_THREADS
,
0
>
;
#endif
template
class
__malloc_alloc_template
<
0
>
;
template
class
__malloc_alloc_template
<
0
>
;
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