On Fri, 26 Aug 2016, Florian Weimer wrote:

> The crucial question is whether GCC will start assuming that pointers returned
> by malloc (or attribute-malloc functions) have such an alignment.  That seems
> impossible.

GCC's assumptions about the alignment of pointers returned by malloc are 
more conservative (MALLOC_ABI_ALIGNMENT, default BITS_PER_WORD) - those 
assumptions need to allow for malloc replacements as well as that in 
standard libc.  Of course any user code using malloc to allocate storage 
containing __float128 or _Decimal128 is implicitly requiring it to be 
sufficiently aligned (GCC will generate SSE loads / stores for such 
objects that require 16-byte alignment).  But most code avoids that issue 
just as most code wasn't hit by the powerpc problems (despite GCC being 
able to generate AltiVec loads / stores for long double on powerpc32).

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to