From owner-freebsd-mips@freebsd.org Thu Sep 19 22:04:17 2019 Return-Path: Delivered-To: freebsd-mips@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5096312FAED for ; Thu, 19 Sep 2019 22:04:17 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh502-vm9.bullet.mail.kks.yahoo.co.jp (nh502-vm9.bullet.mail.kks.yahoo.co.jp [183.79.56.154]) by mx1.freebsd.org (Postfix) with SMTP id 46Z9qN3Tmtz4LT3 for ; Thu, 19 Sep 2019 22:04:16 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.141] by nh502.bullet.mail.kks.yahoo.co.jp with NNFMP; 19 Sep 2019 22:04:09 -0000 Received: from [183.79.100.137] by t504.bullet.mail.kks.yahoo.co.jp with NNFMP; 19 Sep 2019 22:04:09 -0000 Received: from [127.0.0.1] by omp506.mail.kks.yahoo.co.jp with NNFMP; 19 Sep 2019 22:04:09 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 957697.28012.bm@omp506.mail.kks.yahoo.co.jp X-YMail-OSG: PwPf8zwVM1ncv3UW6KoUPa76FTCPCYGQ.NIh3IdB5MsCWmvStEPx0jWVtP4Sn4O ir__08AZMy.zZqzXMNtBk50rgLupnfCciXPx9ecvBssbldU0zDWNzZo8NDCCt.q89.Q9Ypt3eyxx Kwp1t.qLRNdYllaN4_he9yKv7Si57ZuMWIsishAKDzcEIbb_oHLgZmYL1wrD9lnR5p_nw9bwfWxA qZSa7FOsSca4vxw2VJ5AtDtGKXNXxUQgksicfnRZytQpw5hI.0xQxVXKT8r4Sm.2ydrelANura2i l_grx5RFuZlnxysaechcBfslOFdRXx0z0UcDlixDc0VByRAxvZbh3m0VR2r6IKglC6ljn1bonBY3 0bcKR5quVs4EF2pF8VS3tTzp5OyFAgt6q1406uXugx8aMw9Xl7CXmTGXrA8MqjXDPkxJ9TbScEN5 g5pCxs3EDR5txVqUXD8Wh_VDzLVRDRCfNJZzqgX5bTLNxNYDC9sikVrz7.JRO4K2aQq0hvsKrPYl icU0_Y8N63foS3qQnNuAvMRZHCYfwZugXmoaKwGwt3bYTLM58E_vOkudePo48idNPKFvaEsDYxhZ FFFtvKnZMCCq5WOxUR8OnDc9FVMRFretByS8kXiq7zgOeJMo9.VpRxpRKpbAAFInxu61MdLRspc3 HDP5zqGwDECdk3_psOZ97mw8.ApQGhV9M0jg8L4Csvr0- Received: from jws703105.mail.ssk.yahoo.co.jp by sendmailws603.mail.ssk.yahoo.co.jp; Fri, 20 Sep 2019 07:04:09 +0000; 1568930649.267 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1568930649; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=w2TvwlXnWFxur9LcsCYLI9k/IBgrAR3p9faWxhiH7t8=; b=nbrHtAZT/J3rU2IIJrF+QrHOX7RhVJy6tfyEj2SY/NsZA57zjujlPRXxbYcbKzRx nJG3SiXgurJRb469LS1j9gUZARKg5RSCTz7KxvQCvFOlibRsgu2kvMlSqWNmTC7GPgn 7mDiHmcpi22Mk6/TTleSlbld9NO64rg9sJkSeA3w= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Cc:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=UKePx+Dd6eZfFX74pcD6hRc9KEIhvsqhxFLDTxvQdLSOXDDMRcGsO/sfu64Sutrn HaP+fC2PsdsDn0gM/U7SkhhDfJMAnYJuiXjTrIg5x4VllT7AyMpoc1Qgq06JDewQn7r tv3ha/b5mRikBfusI7INst/lsTWZFeQFZCyZ+hkI=; Date: Fri, 20 Sep 2019 07:04:08 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: Kyle Evans , Warner Losh Cc: "freebsd-mips@freebsd.org" , Ed Maste Message-ID: <897680955.2289971.1568930648721.JavaMail.yahoo@jws703105.mail.ssk.yahoo.co.jp> In-Reply-To: References: <441318706.278852.1566618835359.JavaMail.yahoo.ref@jws705006.mail.kks.yahoo.co.jp> <441318706.278852.1566618835359.JavaMail.yahoo@jws705006.mail.kks.yahoo.co.jp> Subject: Re: gcc 4.2.1 will delete MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 46Z9qN3Tmtz4LT3 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=nbrHtAZT; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 183.79.56.154 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [-2.90 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:183.79.0.0/16:c]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:24572, ipnet:183.79.0.0/16, country:JP]; IP_SCORE(0.00)[ip: (-3.06), ipnet: 183.79.0.0/16(1.49), asn: 24572(1.19), country: JP(-0.02)]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[154.56.79.183.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[154.56.79.183.rep.mailspike.net : 127.0.0.17] X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Sep 2019 22:04:17 -0000 Hi. I want try clang on mips. When can use it ? I think clang is better than external gcc. Because of ZRouter have build setting for arm and armv7 by clang already. Hiroki Mori ----- Original Message ----- >From: Kyle Evans >To: Warner Losh =20 >Cc: Mori Hiroki ; freebsd-mips@freebsd.org; Ed Mast= e >Date: 2019/8/28, Wed 02:18 >Subject: Re: gcc 4.2.1 will delete >=20 >On Tue, Aug 27, 2019 at 11:59 AM Kyle Evans wrote: >> >> (CC'ing emaste@ as well, because this is a bit of a status report) >> >> On Fri, Aug 23, 2019 at 11:01 PM Warner Losh wrote: >> > >> > On Fri, Aug 23, 2019, 9:54 PM Mori Hiroki wrot= e: >> > >> > > Hi >> > > >> > > gcc 4.2.1 will delete. >> > > >> > > How about go mips architecture ? >> > > >> > > https://reviews.freebsd.org/rS351429 >> > >> > >> > There is good support for an external toolchain today. Clang has some >> > support, but it works a lot better in llvm 9.0,=C2=A0 which is due in = about a >> > month. >> > >> > Warner >> > >> >> I have the following open work for mips32 w/ in-tree llvm (and llvm90 >> has the same issues for some of them): >> - https://reviews.freebsd.org/D21435 (_mcount needs to be explicitly >> placed in .text; clang will emit ".section .mdebug.abi32" before >> everything else so _mcount ends up in it -- I don't think we can >> really blame clang, we probably should've specified) >> >> - https://people.freebsd.org/~kevans/mips-llvm.diff (.eh_frame ends up >> with some relocations we can't have in non-writable section; dirty >> dirty hack to make .eh_frame writable in clang and making sure the >> synthetic section that lld produces is also writable [this part's even >> dirtier than the first]) >> >> - https://people.freebsd.org/~kevans/mips-opts.diff (fusefs tests >> currently hang and I haven't had time to figure out why or try and >> reproduce it against llvm90; the rest of the diff is simply enabling >> full LLVM/LLD world) >> >> With these three I can make build and install a world w/ MALTA kernel, >> all otherwise modified, and things generally work except kldxref: >> >> Building /boot/kernel/linker.hints >> kldxref: /boot/kernel/kernel: too many segments >> >> root@:~ # uname -a >> FreeBSD=C2=A0 13.0-CURRENT FreeBSD 13.0-CURRENT #0 >> b101f7f4b1d-c262228(mips-llvm)-dirty: Tue Aug 27 09:42:00 CDT 2019 >> root@viper.audeuro.com:/usr/obj/usr/src/mips-llvm/sys/MALTA=C2=A0 mips >> >> Next step, I'll fudge this into freebsd-wifi-build and test it on the >> hardware in my test lab... >> > >I almost forgot this one: > >- https://people.freebsd.org/~kevans/mips-csu.diff > >I pulled a .cprestore directive out of thin air because, AFAICT, it >really doesn't matter. We do similar hijinks in >^/sys/mips/include/profile.h, apparently, in MCOUNT. > > >