http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49442
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-21 12:50:11 UTC --- Created attachment 24572 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24572 gcc47-assume-aligned.patch Current version of the __builtin_assume_aligned support. On top of the previous patch. Still unfinished areas: 1) vectorizer/data-refs unfortunately ignores the computed alignment, should use get_pointer_alignment/get_object_alignment. 2) it would be nice if the builtin was special cased in the C/C++ FEs and acted like template <typename T> T __builtin_assume_aligned (T, size_t, ...); (for pointer types only) instead of void *__builtin_assume_aligned (const void *, size_t, ...); 3) testcases need to be added.