Ivan,
the native build is fine after the small fix below in your last commit
(the issue I encountered was on my side), we just have to fix the
correctness ;)
return (int)__atomic_compare_exchange_n(&addr->AO_whole,
- &old_val->AO_whole /* p_expected */,
+ &old_val.AO_whole /* p_expected */,
Yvan