[PATCH] libsanitizer: Use pre-computed size of struct ustat for Linux
H.J. Lu
hjl.tools@gmail.com
Thu May 24 19:57:00 GMT 2018
On Thu, May 24, 2018 at 11:32 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Thu, May 24, 2018 at 11:20:02AM -0700, H.J. Lu wrote:
>> Here is the patch cherry-picked from compiler-rt revision 333213.
>> OK for trunk?
>>
>> Thanks.
>>
>>
>> --
>> H.J.
>
>> From 9569b61168b963a6cea7b782fd350dee489ad42c Mon Sep 17 00:00:00 2001
>> From: "H.J. Lu" <hjl.tools@gmail.com>
>> Date: Mon, 21 May 2018 13:17:55 -0700
>> Subject: [PATCH] libsanitizer: Use pre-computed size of struct ustat for Linux
>>
>> Cherry-pick compiler-rt revision 333213:
>>
>> <sys/ustat.h> has been removed from glibc 2.28 by:
>>
>> commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7
>> Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
>> Date: Sun Mar 18 11:28:59 2018 +0800
>>
>> Deprecate ustat syscall interface
>>
>> This patch uses pre-computed size of struct ustat for Linux.
>>
>> PR sanitizer/85835
>> * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
>> include <sys/ustat.h> for Linux.
>> (SIZEOF_STRUCT_USTAT): New.
>> (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
>
> Ok, thanks.
>
OK to backport to released branches?
--
H.J.
More information about the Gcc-patches
mailing list