re PR sanitizer/63958 (bootstrap failure in the sanitizer libs on sparc-linux-gnu)
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Tue, 8 Nov 2016 22:06:02 +0000 (22:06 +0000)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Tue, 8 Nov 2016 22:06:02 +0000 (00:06 +0200)
commitfe7913f6887eaa6f5cdb150bd5315f8464d06beb
treefc0bf2b64ee3ceb7a6613aada60ab188be0bc2ac
parent1018981977de9f2056cdfcd8173458e85a3751f2
re PR sanitizer/63958 (bootstrap failure in the sanitizer libs on sparc-linux-gnu)

PR sanitizer/63958
Reapply:
2014-10-14  David S. Miller  <davem@davemloft.net>

* sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
Define at __kernel_time_t, as needed for sparc.
(struct __old_kernel_stat): Don't check if __sparc__ is defined.
* libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
(__sanitizer): Define struct___old_kernel_stat_sz,
struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
(__sanitizer_ipc_perm): Adjust for sparc targets.
(__sanitizer_shmid_ds): Likewsie.
(__sanitizer_sigaction): Likewise.
(IOC_SIZE): Likewsie.

From-SVN: r241978
libsanitizer/ChangeLog
libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc
libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h