diff options
author | Jan Hubicka <jh@suse.cz> | 2009-04-24 11:35:19 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-04-24 09:35:19 +0000 |
commit | e762c6f4c649f2d59374e9b48702c80dbf49b652 (patch) | |
tree | ca7fdfbd6a54e70c271f298827f42551d7baa40a /libstdc++-v3/include/ext/rc_string_base.h | |
parent | aa829fa1ea55388cc933daf31b4bb648ffa360b2 (diff) | |
download | gcc-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/rc_string_base.h')
-rw-r--r-- | libstdc++-v3/include/ext/rc_string_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/ext/rc_string_base.h b/libstdc++-v3/include/ext/rc_string_base.h index dce5e06..6d8c430 100644 --- a/libstdc++-v3/include/ext/rc_string_base.h +++ b/libstdc++-v3/include/ext/rc_string_base.h @@ -546,7 +546,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) return _S_empty_rep._M_refcopy(); // NB: Not required, but considered best practice. - if (__builtin_expect(__is_null_pointer(__beg) && __beg != __end, 0)) + if (__is_null_pointer(__beg) && __beg != __end) std::__throw_logic_error(__N("__rc_string_base::" "_S_construct NULL not valid")); |