aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/ext/mt_allocator.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2009-04-24 11:35:19 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2009-04-24 09:35:19 +0000
commite762c6f4c649f2d59374e9b48702c80dbf49b652 (patch)
treeca7fdfbd6a54e70c271f298827f42551d7baa40a /libstdc++-v3/include/ext/mt_allocator.h
parentaa829fa1ea55388cc933daf31b4bb648ffa360b2 (diff)
downloadgcc-e762c6f4c649f2d59374e9b48702c80dbf49b652.zip
gcc-e762c6f4c649f2d59374e9b48702c80dbf49b652.tar.gz
gcc-e762c6f4c649f2d59374e9b48702c80dbf49b652.tar.bz2
array (at): Do not use builtin_expect.
* include/tr1_impl/array (at): Do not use builtin_expect. * include/ext/throw_allocator.h (allocate): Likewise. * include/ext/pool_allocator.h (allocate): Likweise. * include/ext/bitmap_allocator.h (allocate): Likewise. * include/ext/rc_string_base.h (_S_construct): Likewise. * include/ext/malloc_allocator.h (allocate): Likewise. * include/ext/mt_allocator.h (allocate): Likewise. * include/ext/sso_string_base.h (_M_construct): Likewise. * include/bits/basic_string.tcc (_S_construct): Likewise. From-SVN: r146681
Diffstat (limited to 'libstdc++-v3/include/ext/mt_allocator.h')
-rw-r--r--libstdc++-v3/include/ext/mt_allocator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/ext/mt_allocator.h b/libstdc++-v3/include/ext/mt_allocator.h
index fc31fe8..e44b98d 100644
--- a/libstdc++-v3/include/ext/mt_allocator.h
+++ b/libstdc++-v3/include/ext/mt_allocator.h
@@ -674,7 +674,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
__mt_alloc<_Tp, _Poolp>::
allocate(size_type __n, const void*)
{
- if (__builtin_expect(__n > this->max_size(), false))
+ if (__n > this->max_size())
std::__throw_bad_alloc();
__policy_type::_S_initialize_once();