Re: [PATCH] libsanitizer: Use pre-computed size of struct ustat for Linux

2018-09-21 Thread Matthias Klose
On 24.05.2018 21:59, Jakub Jelinek wrote:
> On Thu, May 24, 2018 at 12:56:23PM -0700, H.J. Lu wrote:
 This patch uses pre-computed size of struct ustat for Linux.

   PR sanitizer/85835
   * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
   include  for Linux.
   (SIZEOF_STRUCT_USTAT): New.
   (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
>>>
>>> Ok, thanks.
>>>
>>
>> OK to backport to released branches?
> 
> Yes.

Backported to the gcc-6-branch as well.

Matthias


Re: [PATCH] libsanitizer: Use pre-computed size of struct ustat for Linux

2018-05-24 Thread Jakub Jelinek
On Thu, May 24, 2018 at 12:56:23PM -0700, H.J. Lu wrote:
> >> This patch uses pre-computed size of struct ustat for Linux.
> >>
> >>   PR sanitizer/85835
> >>   * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
> >>   include  for Linux.
> >>   (SIZEOF_STRUCT_USTAT): New.
> >>   (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
> >
> > Ok, thanks.
> >
> 
> OK to backport to released branches?

Yes.

Jakub


Re: [PATCH] libsanitizer: Use pre-computed size of struct ustat for Linux

2018-05-24 Thread H.J. Lu
On Thu, May 24, 2018 at 11:32 AM, Jakub Jelinek  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" 
>> 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:
>>
>>  has been removed from glibc 2.28 by:
>>
>> commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7
>> Author: Adhemerval Zanella 
>> 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  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.


Re: [PATCH] libsanitizer: Use pre-computed size of struct ustat for Linux

2018-05-24 Thread Jakub Jelinek
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" 
> 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:
> 
>  has been removed from glibc 2.28 by:
> 
> commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7
> Author: Adhemerval Zanella 
> 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  for Linux.
>   (SIZEOF_STRUCT_USTAT): New.
>   (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.

Ok, thanks.

Jakub