diff options
author | Jia Tan <jiat0218@gmail.com> | 2024-03-05 00:34:46 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2024-03-05 00:34:46 +0800 |
commit | 4e1c97052b5f14f4d6dda99d12cbbd01e66e3712 (patch) | |
tree | cd28d0c0d5fb472596adaff9f36ed9686124ef38 /src/liblzma/check/crc64_fast.c | |
parent | Build: Require attribute no_profile_instrument_function for ifunc usage. (diff) | |
download | xz-4e1c97052b5f14f4d6dda99d12cbbd01e66e3712.tar.xz |
liblzma: Use attribute no_profile_instrument_function with ifunc.
Thanks to Sam James for determining this was the attribute needed to
workaround the GCC bug and for his version of the patch in Gentoo.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/check/crc64_fast.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/liblzma/check/crc64_fast.c b/src/liblzma/check/crc64_fast.c index f29fe3d3..5728b45e 100644 --- a/src/liblzma/check/crc64_fast.c +++ b/src/liblzma/check/crc64_fast.c @@ -98,6 +98,9 @@ typedef uint64_t (*crc64_func_type)( # pragma GCC diagnostic ignored "-Wunused-function" #endif +#ifdef CRC_USE_IFUNC +__attribute__((__no_profile_instrument_function__)) +#endif static crc64_func_type crc64_resolve(void) { |