> Lovely. I'm surprised it doesn't work with -fPIC and _mm_malloc; I > don't think stack alignment should matter in that case. With the > aligned local variable, it's obvious that GCC's generating code that > assumes 16-byte alignment of the stack.
It seems this has been the case since GCC 2.95.1:
http://lkml.indiana.edu/hypermail/linux/kernel/9909.2/0563.html
> Lovely. I'm surprised it doesn't work with -fPIC and _mm_malloc; I
> don't think stack alignment should matter in that case. With the
> aligned local variable, it's obvious that GCC's generating code that
> assumes 16-byte alignment of the stack.
It seems this has been the case since GCC 2.95.1:
http:// lkml.indiana. edu/hypermail/ linux/kernel/ 9909.2/ 0563.html