lkml.org 
[lkml]   [2023]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Misbehavior with setsockopt timeval structure with -fpack-struct enabled
Hi David!
Thanks for your answer. Just to feed my curiosity, why? Of course I
could use:
#pragma pack(1, push)
...
#pragma pack(pop)
to pack only what is needed, but in the first place I was thinking about
keeping as much free memory as possible (to make things optimized). And
keep other things intact, but is it not a good practice placing
-fpack-struct into compile-time params?

Kind regards,
Drew.

On 2023-07-19 13:36, David Laight wrote:
> ...
>> with -fpack-struct enabled,
>
> Don't even think of enabling that.
>
> David
>
> -
> Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes,
> MK1 1PT, UK
> Registration No: 1397386 (Wales)

\
 
 \ /
  Last update: 2023-07-19 16:15    [W:0.035 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site