Skip to content

Add old gcc support

Naoya Hatta requested to merge dalance/softfloat-sys:old_gcc into master

softfloat-sys fails to compile at gcc 4.8.5 like below:

cargo:warning=berkeley-softfloat-3/source/include/softfloat.h:60:1: error: unknown type name ‘_Thread_local’
cargo:warning= extern THREAD_LOCAL uint_fast8_t softfloat_detectTininess;
cargo:warning= ^

This is because gcc 4.8 doesn't support _Thread_local. This PR adds gcc version detection and switching from _Thread_local to __thread for older gcc.

Merge request reports

Loading