Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755589Ab2FWQNc (ORCPT ); Sat, 23 Jun 2012 12:13:32 -0400 Received: from one.firstfloor.org ([213.235.205.2]:37220 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755280Ab2FWQNb (ORCPT ); Sat, 23 Jun 2012 12:13:31 -0400 Date: Sat, 23 Jun 2012 18:13:24 +0200 From: Andi Kleen To: "H.J. Lu" Cc: LKML , Andi Kleen , "H. Peter Anvin" Subject: Re: PATCH] Use -mpreferred-stack-boundary=3 on x86-64 if supported Message-ID: <20120623161324.GS11413@one.firstfloor.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 713 Lines: 21 > 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@linux.intel.com -- Speaking for myself only. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/