Skip to content

Commit

Permalink
Merge pull request #17238 from JuliaLang/yyc/threads/ifunc-gcc
Browse files Browse the repository at this point in the history
Enable ifunc on ARM/AArch64/Power/Power64 for GCC 4.9+
  • Loading branch information
vtjnash authored Jul 2, 2016
2 parents 767ddc7 + a098436 commit 7b1ef04
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 7b1ef04

Please sign in to comment.