libstdc++: Use __builtin_expect in __glibcxx_assert
authorJonathan Wakely <jwakely@redhat.com>
Mon, 21 Sep 2020 22:43:25 +0000 (23:43 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 21 Sep 2020 22:43:25 +0000 (23:43 +0100)
commit7db5967f1050eb2b45e920b13d495d92ba4f16f4
tree900f738d28b4bce44d6cdbae4799fadee0123778
parentaecea4158f4e547af349657a3d16cb031a30ec3b
libstdc++: Use __builtin_expect in __glibcxx_assert

libstdc++-v3/ChangeLog:

* include/bits/c++config (__replacement_assert): Add noreturn
attribute.
(__glibcxx_assert_impl): Use __builtin_expect to hint that the
assertion is expected to pass.
libstdc++-v3/include/bits/c++config