This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 06/25] Add struct scratch_buffer and its internal helper functions


On 03/23/2015 07:41 PM, Joseph Myers wrote:

>> Since C allows platforms where pointers and/or floating-point values have
>> alignments stricter than intmax_t, I suggest using 'max (__alignof__
>> (intmax_t), __alignof__ (max_align_t))' along with a comment explaining why
>> you don't trust max_align_t here.
> 
> max_align_t was added to stddef.h in GCC 4.7, so we can't rely on it in 
> glibc without appropriate conditionals.

We compile glibc in -std=gnu99 mode, and max_align_t appears available.
 Suggestions?

I was confused about the max_align_t semantics, it's not a problem using
it here if we can get it.

-- 
Florian Weimer / Red Hat Product Security


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]