boost/boost-1.63.0-function-may-alias.patch
Jonathan Wakely 59415588c8 Patch boost::function to fix strict aliasing problem (#1422456)
Per packaging guidelines don't clean buildroot in %%install and %%clean.
2017-04-05 17:12:22 +01:00

12 lines
604 B
Diff

--- boost_1_63_0/boost/function/function_template.hpp.alias 2017-03-24 12:17:21.560125198 +0000
+++ boost_1_63_0/boost/function/function_template.hpp 2017-03-24 13:07:24.971891166 +0000
@@ -994,7 +994,7 @@
if (!f.empty()) {
this->vtable = f.vtable;
if (this->has_trivial_copy_and_destroy())
- this->functor = f.functor;
+ __builtin_memcpy(&this->functor, &f.functor, sizeof(f.functor));
else
get_vtable()->base.manager(f.functor, this->functor,
boost::detail::function::move_functor_tag);