Whilst Clang does not use these, recent GCC does, and so on systems such
as FreeBSD that wish to use compiler-rt as the system runtime library
but also wish to support building programs with GCC these interfaces are
This is a light adaptation of the code committed to GCC by Sebastian Pop
<email@example.com>, relicensed with permission for use in compiler-rt.