From owner-svn-src-head@FreeBSD.ORG Fri Sep 6 13:16:54 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5DC81817; Fri, 6 Sep 2013 13:16:54 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from smtpauth2.wiscmail.wisc.edu (wmauth2.doit.wisc.edu [144.92.197.222]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 333822954; Fri, 6 Sep 2013 13:16:53 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) id <0MSP00D00EDVLR00@smtpauth2.wiscmail.wisc.edu>; Fri, 06 Sep 2013 08:16:52 -0500 (CDT) X-Spam-PmxInfo: Server=avs-2, Version=6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.9.6.130619, SenderIP=0.0.0.0 X-Spam-Report: AuthenticatedSender=yes, SenderIP=0.0.0.0 Received: from comporellon.tachypleus.net (adsl-76-208-67-185.dsl.mdsnwi.sbcglobal.net [76.208.67.185]) by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTPSA id <0MSP0093UGW30C20@smtpauth2.wiscmail.wisc.edu>; Fri, 06 Sep 2013 08:16:52 -0500 (CDT) Message-id: <5229D5C3.6070302@freebsd.org> Date: Fri, 06 Sep 2013 08:16:51 -0500 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130810 Thunderbird/17.0.8 To: Roman Divacky Subject: Re: svn commit: r255273 - in head/sys/powerpc: aim include References: <201309052300.r85N0OLX076496@svn.freebsd.org> <20130906085301.GA44778@freebsd.org> In-reply-to: <20130906085301.GA44778@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2013 13:16:54 -0000 On 09/06/13 03:53, Roman Divacky wrote: > On Thu, Sep 05, 2013 at 11:00:24PM +0000, Nathan Whitehorn wrote: >> Author: nwhitehorn >> Date: Thu Sep 5 23:00:24 2013 >> New Revision: 255273 >> URL: http://svnweb.freebsd.org/changeset/base/255273 >> >> Log: >> Align stacks of kernel threads correctly at 16-byte boundaries rather than >> making sure they are all misaligned at +8 bytes. This fixes clang builds >> of powerpc64 kernels (aside from a required increase in KSTACK_PAGES which >> will come later). >> >> This commit from FreeBSD/powerpc64 with a clang-built kernel. > The increased KSTACK_PAGES is needed because the kernel you're using is built > with O0. I suppose O2 kernel will be fine. Needs to be tested. > > Anyway, this is a great step forward and I believe PowerPC64 is basically ready > to be compiled with clang instead of gcc :) > > Congrats! > > Roman I think you are the one who did all the hard work here, so thanks a great deal. As an update for the list, this is where we currently are for clang/ppc64: 1) We need to update the in-tree clang to a more recent version 2) Kernel and world both appear to work perfectly 3) We need a few minor updates to clang so that we can enable -integrated-as by default, which is important to work around some limitations of our ancient binutils (-g will break as otherwise) 4) KDB currently relies on a deprecated scheme of PPC64 ELF symbol declarations to provide stack traces. We either need to add it to clang or fix KDB to give meaningful output on panics with the default symbol emission strategy. 5) clang/ppc32 is not as advanced and we need to figure out a way to build /usr/lib32. This is a pretty short list of TODOs. Once (1) and (3) are done, we will start encouraging testing of WITH_CLANG_IS_CC (with WITHOUT_LIB32 due to #5). If we can figure out a solution to #5, and nothing untoward happens in testing, WITH_CLANG_IS_CC will become the default on ppc64. Thanks in particular to Roman for working very hard for a very long time to make this happen. -Nathan