Blame view

buildroot/buildroot-2016.08.1/package/jemalloc/0001-Fix-LG_QUANTUM-definition-for-sparc64.patch 1.15 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  From b3211bd6363ee6884c8db64008dc325a9c711bfb Mon Sep 17 00:00:00 2001
  From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
  Date: Thu, 14 Jul 2016 22:44:01 +0200
  Subject: [PATCH] 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.
  
  Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
  ---
   include/jemalloc/internal/jemalloc_internal.h.in | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
  
  diff --git a/include/jemalloc/internal/jemalloc_internal.h.in b/include/jemalloc/internal/jemalloc_internal.h.in
  index 51bf897..ece15b2 100644
  --- a/include/jemalloc/internal/jemalloc_internal.h.in
  +++ b/include/jemalloc/internal/jemalloc_internal.h.in
  @@ -234,7 +234,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))
  -- 
  2.4.11