Skip to content

Commit

Permalink
Enable ifunc on ARM/AArch64/Power/Power64 for GCC 4.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Jul 2, 2016
1 parent e5b5a09 commit a098436
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ jl_get_ptls_states_func jl_get_ptls_states_getter(void)
// is not guaranteed to be reliable, we still need to fallback to the wrapper
// version as the symbol address if we didn't find the static version in `ifunc`.
#if defined(__GLIBC__) && (defined(_CPU_X86_64_) || defined(_CPU_X86_) || \
defined(_CPU_AARCH64_) || defined(_CPU_ARM_))
((defined(_CPU_AARCH64_) || defined(_CPU_ARM_) || \
defined(_CPU_PPC64_) || defined(_CPU_PPC_)) && \
(__GNUC__ >= 5 || __GNUC_MINOR__ >= 9)))
// Skip the `__GNUC__ >= 4` check since we require GCC 4.7+
// Only enable this on architectures that are tested.
// For example, GCC doesn't seem to support the `ifunc` attribute on power yet.
# if __GLIBC_PREREQ(2, 12)
Expand Down

0 comments on commit a098436

Please sign in to comment.