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] libio: Add small optimization on fmemopen


On 09/22/2016 10:17 PM, Ondřej Bílka wrote:
Couldn't you just use __attribute__((aligned(16))) or is that also
buggy?

I don't see how that would help. It would make the structure more aligned than it already is, giving GCC even more license to use "unsafe" optimizations.

Or were you thinking of "__attribute__ ((packed))"? That might do it (someone would have to investigate). My guess is that it would cause other problems, though.


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