From owner-freebsd-sparc64@FreeBSD.ORG Fri Dec 30 12:53:37 2011 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 971DE1065672; Fri, 30 Dec 2011 12:53:37 +0000 (UTC) (envelope-from flo@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7ECC18FC0A; Fri, 30 Dec 2011 12:53:37 +0000 (UTC) Received: from bender.solomo.local (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBUCrZY6001463; Fri, 30 Dec 2011 12:53:36 GMT (envelope-from flo@freebsd.org) Message-ID: <4EFDB44F.9060708@freebsd.org> Date: Fri, 30 Dec 2011 13:53:35 +0100 From: Florian Smeets User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111223 Thunderbird/9.0 MIME-Version: 1.0 To: Ed Schouten References: <20111227231243.GB1895@hoeg.nl> <20111228000723.GA77332@alchemy.franken.de> <20111228091817.GC1895@hoeg.nl> In-Reply-To: <20111228091817.GC1895@hoeg.nl> X-Enigmail-Version: undefined Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: sparc64@freebsd.org, mips@freebsd.org, Marius Strobl Subject: Re: [Updated patch] (Finally) migrate MIPS and SPARC64 to libcompiler_rt X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2011 12:53:37 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28.12.2011 10:18, Ed Schouten wrote: > Hi Marius, > > * Marius Strobl , 20111228 01:07: >> Before making libcompiler_rt the default for sparc64 could you >> please also look into adding the optimized versions of _divsi3 >> and _modsi3 (see contrib/gcc/config/sparc/lb1spc.asm) to >> libcompiler_rt? They're taken from/based on the SPARC V8 >> Architecture Manual and IIRC I once compared them and there >> actually was little difference so there should be no licensing >> issues. > > Just to make sure we don't get into license problems, I copied the > code from the architecture manual and regenerated the assembly > files. I compared them against the ones used by GCC and they should > work. > > Please forget the previous patch I sent and use the one attached. > If the attachment is missing, you can download the patch here: > > http://80386.nl/pub/compiler-rt.txt > > The code isn't that beautiful yet, but I'll clean it up before I > send it to the compiler-rt folks. > Ed, at least on sparc64 the resulting toolchain is broken. I cannot even compile a simple c file. http://tb.smeets.im/~flo/sparc64-cc-crash.txt Anything i can provide for analysis? Florian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk79tE8ACgkQapo8P8lCvwkd8QCfR+ykkbR2WX1tLaJ2o8r1X9a5 V3UAn3j7UfMieSLFMtVeS38OXJ/pyZD0 =M2+X -----END PGP SIGNATURE-----