Skip to content
Snippets Groups Projects

Add old gcc support

Merged 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
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading