[Bug c++/80857] slow compare_exchange_weak with unintegral type

2017-05-26 Thread sv_91 at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80857 --- Comment #1 from sv_91 at inbox dot ru --- A simpler example for demonstrates the problem struct MyStruct { int64_t value; }; inline MyStruct operator+(const MyStruct , const MyStruct ) { return MyStruct{first.value + second.value

[Bug c++/80857] New: slow compare_exchange_weak with unintegral type

2017-05-22 Thread sv_91 at inbox dot ru
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sv_91 at inbox dot ru Target Milestone: --- Created attachment 41403 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41403=edit example Compared to gcc 6.2.0, function func2 work slower: gcc 6.2.0 Res