2018-08-10 Martin Liska <mliska@suse.cz>
* libsupc++/new_op.cc (new): Remove __builtin_expect as malloc
predictor can handle that.
* libsupc++/new_opa.cc: Likewise.
* libsupc++/new_opnt.cc (new): Likewise.
From-SVN: r263470
+2018-08-10 Martin Liska <mliska@suse.cz>
+
+ * libsupc++/new_op.cc (new): Remove __builtin_expect as malloc
+ predictor can handle that.
+ * libsupc++/new_opa.cc: Likewise.
+ * libsupc++/new_opnt.cc (new): Likewise.
+
2018-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR target/85904
if (sz == 0)
sz = 1;
- while (__builtin_expect ((p = malloc (sz)) == 0, false))
+ while ((p = malloc (sz)) == 0)
{
new_handler handler = std::get_new_handler ();
if (! handler)
#endif
using __gnu_cxx::aligned_alloc;
- while (__builtin_expect ((p = aligned_alloc (align, sz)) == 0, false))
+ while ((p = aligned_alloc (align, sz)) == 0)
{
new_handler handler = std::get_new_handler ();
if (! handler)
if (sz == 0)
sz = 1;
- while (__builtin_expect ((p = malloc (sz)) == 0, false))
+ while ((p = malloc (sz)) == 0)
{
new_handler handler = std::get_new_handler ();
if (! handler)