Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755624Ab2FWQOu (ORCPT ); Sat, 23 Jun 2012 12:14:50 -0400 Received: from mail-qc0-f170.google.com ([209.85.216.170]:39754 "EHLO mail-qc0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755403Ab2FWQOt (ORCPT ); Sat, 23 Jun 2012 12:14:49 -0400 X-Greylist: delayed 490 seconds by postgrey-1.27 at vger.kernel.org; Sat, 23 Jun 2012 12:14:49 EDT MIME-Version: 1.0 Date: Sat, 23 Jun 2012 09:06:38 -0700 Message-ID: Subject: PATCH] Use -mpreferred-stack-boundary=3 on x86-64 if supported From: "H.J. Lu" To: LKML , Andi Kleen , "H. Peter Anvin" Content-Type: multipart/mixed; boundary=00248c768dc604985a04c325eff9 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2314 Lines: 52 --00248c768dc604985a04c325eff9 Content-Type: text/plain; charset=ISO-8859-1 Hi, -mpreferred-stack-boundary=3 can be used on x86-64 with GCC 4.8.0: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53383 I backported it to hjl/x32/gcc-4_7-branch branch at http://gcc.gnu.org/git/?p=gcc.git;a=summary http://gcc.gnu.org/git/?p=gcc.git;a=commit;h=96828b1f869a31e3a1227afa420b8f28e71 e006c 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. H.J. --00248c768dc604985a04c325eff9 Content-Type: application/octet-stream; name="0001-Use-mpreferred-stack-boundary-3-if-supported.patch" Content-Disposition: attachment; filename="0001-Use-mpreferred-stack-boundary-3-if-supported.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h3svse7i0 RnJvbSA1ZTA2NzM3NmU3M2ZlM2JmODZiNzFjMjU2MGUwM2M1ZDM1YTdiNTM3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiAiSC5K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o= --00248c768dc604985a04c325eff9-- -- 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/