[lkml]   [2012]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: PATCH] Use -mpreferred-stack-boundary=3 on x86-64 if supported
On Sat, Jun 23, 2012 at 9:17 AM, H. Peter Anvin <> wrote:
> To keep gcc from paddong the stack to maintain a nonexistent alignment.
> Andi Kleen <> wrote:
>>> This patch uses -mpreferred-stack-boundary=3 on x86-64 if it is
>>> 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.

There was an attempt from you to do it in 2007:

But the gcc patch was never checked in.


 \ /
  Last update: 2012-06-23 19:21    [W:0.054 / U:2.804 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site