I have a large codebase using SSE intrinsics extensively, that has been developped under GCC for the x86_64 platform only. There are a lot of __m128 and float[4] allocated on the stack, which are always aligned to 16-byte when compiling with GCC on x86_64.
We are testing clang, and it crashes on misaligned SSE loads and stores, on the stack variables.
It seems I can fix all errors one by one by us __attribute__ ((aligned(16)))
Is there any way to force clang to align all variables to 16 bytes globally? I can't find any in the documentation.