Options of fixing biggest alignment in PR target/38736

H.J. Lu hjl.tools@gmail.com
Fri Jan 9 01:15:00 GMT 2009


On Thu, Jan 8, 2009 at 3:35 PM, Ian Lance Taylor <iant@google.com> wrote:
> "Richard Guenther" <richard.guenther@gmail.com> writes:
>
>> I don't think we should encourage more uses of __attribute__((aligned)).
>
> But then how can one write a general purpose portable memory
> allocator?

Your C library may provide

int posix_memalign(void **memptr, size_t alignment, size_t size);


-- 
H.J.



More information about the Gcc mailing list