Opened 3 months ago

Last modified 3 months ago

#45 new defect

Add support for __atomic_* libcalls

Reported by: Vladimír Štill Owned by:
Priority: major Milestone: 5.0
Component: DiOS Keywords:
Cc:

Description

In some code (such as boost::lockfree), there are 128bit atomics, which are lowered to __atomic_* calls by clang (see https://llvm.org/docs/Atomics.html#libcalls-atomic). We should add support for these.

Normally, these functions are provided by libatomic.so which originates from GCC (https://github.com/gcc-mirror/gcc/tree/master/libatomic).
It seems we might be able to take them from compiler-rt (https://github.com/llvm-mirror/compiler-rt/blob/master/lib/builtins/atomic.c).

Change History (1)

comment:1 Changed 3 months ago by mornfall

Milestone: future5.0

Milestone renamed

Note: See TracTickets for help on using tickets.