[PATCH] libio: Add small optimization on fmemopen

Paul Eggert eggert@cs.ucla.edu
Fri Sep 23 18:29:00 GMT 2016


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.



More information about the Libc-alpha mailing list