forked from OSchip/llvm-project
[sanitizer] fix the ppc32 build (patch by Jakub Jelinek)
llvm-svn: 196489
This commit is contained in:
parent
f03bd30854
commit
f2c93b2973
|
@ -142,23 +142,32 @@ namespace __sanitizer {
|
||||||
int gid;
|
int gid;
|
||||||
int cuid;
|
int cuid;
|
||||||
int cgid;
|
int cgid;
|
||||||
#ifdef __powerpc64__
|
#ifdef __powerpc__
|
||||||
unsigned mode;
|
unsigned mode;
|
||||||
unsigned __seq;
|
unsigned __seq;
|
||||||
|
u64 __unused1;
|
||||||
|
u64 __unused2;
|
||||||
#else
|
#else
|
||||||
unsigned short mode;
|
unsigned short mode;
|
||||||
unsigned short __pad1;
|
unsigned short __pad1;
|
||||||
unsigned short __seq;
|
unsigned short __seq;
|
||||||
unsigned short __pad2;
|
unsigned short __pad2;
|
||||||
|
#if defined(__x86_64__) && !defined(_LP64)
|
||||||
|
u64 __unused1;
|
||||||
|
u64 __unused2;
|
||||||
|
#else
|
||||||
|
unsigned long __unused1;
|
||||||
|
unsigned long __unused2;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
uptr __unused1;
|
|
||||||
uptr __unused2;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct __sanitizer_shmid_ds {
|
struct __sanitizer_shmid_ds {
|
||||||
__sanitizer_ipc_perm shm_perm;
|
__sanitizer_ipc_perm shm_perm;
|
||||||
#ifndef __powerpc__
|
#ifndef __powerpc__
|
||||||
uptr shm_segsz;
|
uptr shm_segsz;
|
||||||
|
#elif !defined(__powerpc64__)
|
||||||
|
uptr __unused0;
|
||||||
#endif
|
#endif
|
||||||
uptr shm_atime;
|
uptr shm_atime;
|
||||||
#ifndef _LP64
|
#ifndef _LP64
|
||||||
|
@ -290,17 +299,20 @@ namespace __sanitizer {
|
||||||
typedef long __sanitizer_clock_t;
|
typedef long __sanitizer_clock_t;
|
||||||
|
|
||||||
#if SANITIZER_LINUX
|
#if SANITIZER_LINUX
|
||||||
#if defined(_LP64) || defined(__x86_64__)
|
#if defined(_LP64) || defined(__x86_64__) || defined(__powerpc__)
|
||||||
typedef unsigned __sanitizer___kernel_uid_t;
|
typedef unsigned __sanitizer___kernel_uid_t;
|
||||||
typedef unsigned __sanitizer___kernel_gid_t;
|
typedef unsigned __sanitizer___kernel_gid_t;
|
||||||
typedef long long __sanitizer___kernel_off_t;
|
|
||||||
#else
|
#else
|
||||||
typedef unsigned short __sanitizer___kernel_uid_t;
|
typedef unsigned short __sanitizer___kernel_uid_t;
|
||||||
typedef unsigned short __sanitizer___kernel_gid_t;
|
typedef unsigned short __sanitizer___kernel_gid_t;
|
||||||
|
#endif
|
||||||
|
#if defined(__x86_64__) && !defined(_LP64)
|
||||||
|
typedef long long __sanitizer___kernel_off_t;
|
||||||
|
#else
|
||||||
typedef long __sanitizer___kernel_off_t;
|
typedef long __sanitizer___kernel_off_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__powerpc64__)
|
#if defined(__powerpc__)
|
||||||
typedef unsigned int __sanitizer___kernel_old_uid_t;
|
typedef unsigned int __sanitizer___kernel_old_uid_t;
|
||||||
typedef unsigned int __sanitizer___kernel_old_gid_t;
|
typedef unsigned int __sanitizer___kernel_old_gid_t;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue