mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-27 13:22:14 +03:00
src/jemalloc.c: Avoid copy() attribute in Clang
This commit is contained in:
parent
94874781ae
commit
4575c2b19e
1 changed files with 6 additions and 1 deletions
|
|
@ -3334,7 +3334,12 @@ JEMALLOC_EXPORT void *(*__memalign_hook)(size_t alignment, size_t size) =
|
|||
* be implemented also, so none of glibc's malloc.o functions are added to the
|
||||
* link.
|
||||
*/
|
||||
# define ALIAS(je_fn) __attribute__((alias (#je_fn), copy(je_fn)))
|
||||
# ifdef __clang__
|
||||
/* Clang doesn't support GCC's copy() attribute. */
|
||||
# define ALIAS(je_fn) __attribute__((alias (#je_fn), used))
|
||||
# else
|
||||
# define ALIAS(je_fn) __attribute__((alias (#je_fn), copy(je_fn)))
|
||||
# endif
|
||||
/* To force macro expansion of je_ prefix before stringification. */
|
||||
# define PREALIAS(je_fn) ALIAS(je_fn)
|
||||
# ifdef JEMALLOC_OVERRIDE___LIBC_CALLOC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue