diff options
author | Eric Le Bihan <eric.le.bihan.dev@free.fr> | 2016-07-14 20:44:01 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2016-09-26 22:13:07 (GMT) |
commit | df0d273a07b0ca5ea4a9d8e140e1fa6425430e4a (patch) | |
tree | 8c126add128ac843179b2166ac71334d50dd96a9 | |
parent | 5ff18391331a0d56b01ddce3e37cd1c7a2b439a2 (diff) | |
download | jemalloc-df0d273a07b0ca5ea4a9d8e140e1fa6425430e4a.zip jemalloc-df0d273a07b0ca5ea4a9d8e140e1fa6425430e4a.tar.gz jemalloc-df0d273a07b0ca5ea4a9d8e140e1fa6425430e4a.tar.bz2 |
Fix LG_QUANTUM definition for sparc64
GCC 4.9.3 cross-compiled for sparc64 defines __sparc_v9__, not
__sparc64__ nor __sparcv9. This prevents LG_QUANTUM from being defined
properly. Adding this new value to the check solves the issue.
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal.h.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal.h.in b/include/jemalloc/internal/jemalloc_internal.h.in index c35280f..086726d 100644 --- a/include/jemalloc/internal/jemalloc_internal.h.in +++ b/include/jemalloc/internal/jemalloc_internal.h.in @@ -232,7 +232,7 @@ typedef unsigned szind_t; # ifdef __alpha__ # define LG_QUANTUM 4 # endif -# if (defined(__sparc64__) || defined(__sparcv9)) +# if (defined(__sparc64__) || defined(__sparcv9) || defined(__sparc_v9__)) # define LG_QUANTUM 4 # endif # if (defined(__amd64__) || defined(__x86_64__) || defined(_M_X64)) |