Re: PATCH] Use -mpreferred-stack-boundary=3 on x86-64 if supported

From: Andi Kleen
Date: Sat Jun 23 2012 - 12:13:25 EST


> This patch uses -mpreferred-stack-boundary=3 on x86-64 if it is supported.
> I have been running 3.4 kernel compiled with this option for weeks.

But why?

All the SSE code in the kernel should adjust manually. And the other
code doesn't need it.

Besides the entry points do not guarantee alignment.

For the kernel it would be probably more useful to have a attribute
per function that forces alignment.

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/