From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14455 invoked by alias); 27 Jul 2007 22:08:04 -0000 Received: (qmail 14447 invoked by uid 22791); 27 Jul 2007 22:08:03 -0000 X-Spam-Check-By: sourceware.org Received: from ns1.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 27 Jul 2007 22:08:00 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 61FC712368 for ; Sat, 28 Jul 2007 00:07:57 +0200 (CEST) From: Andi Kleen To: Jan Hubicka Subject: Re: Allow preferred-stack-boundary of 3 for x86-64 Date: Fri, 27 Jul 2007 22:33:00 -0000 User-Agent: KMail/1.9.6 Cc: gcc-patches@gcc.gnu.org References: <20070723230503.GA10270@kam.mff.cuni.cz> In-Reply-To: <20070723230503.GA10270@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707280007.54813.ak@suse.de> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg02019.txt.bz2 On Tuesday 24 July 2007 01:05:03 Jan Hubicka wrote: > Hi, > Andi Kleen raised point that while x86-64 ABI requires 16byte alignment, > kernel preffers to save stack psace by 8 byte alignment even though it > breaks some of features (such as XMM support or variadic arguments of > types aligned to 16 bytes, such as long double). > > This patch thus makes GCC to tolerate this option and updates > documentation accrodingly. I will install it tomorrow if there are no > complains. Bootstrapped/regtested i686-linux. I tested the patch now and I get a ICE while compiling the x86_64 linux kernel with -mpreferred-stack-boundary=3 and 070727 SVN checkout + patch /home/lsrc/quilt/linux/init/do_mounts.c: In function 'change_floppy': /home/lsrc/quilt/linux/init/do_mounts.c:390: internal compiler error: in ix86_compute_frame_layout, at config/i386/i386.c:5745 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Test case is in http://www.firstfloor.org/~andi/do_mounts.i Compile with -mpreferred-stack-boundary=3 -Os -Andi