From owner-freebsd-toolchain@FreeBSD.ORG Wed Feb 16 00:43:10 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DCE81065693 for ; Wed, 16 Feb 2011 00:43:10 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by mx1.freebsd.org (Postfix) with SMTP id 175898FC1F for ; Wed, 16 Feb 2011 00:43:09 +0000 (UTC) Received: (qmail 73804 invoked from network); 16 Feb 2011 00:43:08 -0000 Received: from 195.135.221.2 (HELO trevally) (195.135.221.2) by relay01.pair.com with SMTP; 16 Feb 2011 00:43:08 -0000 X-pair-Authenticated: 195.135.221.2 Date: Wed, 16 Feb 2011 01:43:07 +0100 (CET) From: Gerald Pfeifer To: David Schultz In-Reply-To: Message-ID: References: <20110206221335.GA76984@zim.MIT.EDU> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: "Pedro F. Giffuni" , freebsd-toolchain@freebsd.org Subject: Re: -fno-math-errno by default X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 00:43:10 -0000 On Mon, 7 Feb 2011, Gerald Pfeifer wrote: > I'll see what I can do about it. (I also checked, and this plus > the one on -mfancy-math-387 are the only open issues from someone > @freebsd.org.) Good news, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37072 does not actually seem to apply to upstream GCC since the change apparently was a local one introduced by obrien in 2000. The thing that puzzles me is why the documentation would state other- wise, but I tracked this down to a commit in March 2002 and will check with the original author That said, if any of you introduce any changes to the system compiler or are aware of any that have not been addressed upstream yet, please advise and I'll see what can be done. Gerald From owner-freebsd-toolchain@FreeBSD.ORG Wed Feb 16 02:19:34 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D01D106564A for ; Wed, 16 Feb 2011 02:19:34 +0000 (UTC) (envelope-from giffunip@tutopia.com) Received: from nm5-vm0.bullet.mail.sp2.yahoo.com (nm5-vm0.bullet.mail.sp2.yahoo.com [98.139.91.204]) by mx1.freebsd.org (Postfix) with SMTP id 38B5F8FC0C for ; Wed, 16 Feb 2011 02:19:33 +0000 (UTC) Received: from [98.139.91.69] by nm5.bullet.mail.sp2.yahoo.com with NNFMP; 16 Feb 2011 02:19:33 -0000 Received: from [98.139.91.13] by tm9.bullet.mail.sp2.yahoo.com with NNFMP; 16 Feb 2011 02:19:33 -0000 Received: from [127.0.0.1] by omp1013.mail.sp2.yahoo.com with NNFMP; 16 Feb 2011 02:19:33 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 860265.83207.bm@omp1013.mail.sp2.yahoo.com Received: (qmail 89815 invoked by uid 60001); 16 Feb 2011 02:19:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1297822773; bh=dNbQNpR/y2eoGxirS7bzzxu0YPNOXAIRPWjp2cU1Ui8=; h=Message-ID:X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=zh4Ktar6qNFd8Y2LW8jbukM22GPVkhknVl4QpXbjrJxw235K/Z5bI0TdyLbij5OR4xN3X4yJrBaxNm2JZ6WKZkGwab81mC6EdzVmyGz9Y5FZCwM99iYRlAaN6FwUToFmLmO+7a+CiEwy3CKyg9gsUtSRZtwhbupGya63zOH7KDc= Message-ID: <7685.89758.qm@web113507.mail.gq1.yahoo.com> X-YMail-OSG: .VQEygIVM1kG2e_nMH7ApvOxWiChSvX7XulNVrUC_Qz6Gwt furHrifWFXvdQpdw85Zzxjd0uAl2vPmy.DFonmIWKgdDe38ublutwwZ0tZtE aDeCpjt_ztj6mQ5l5clU4DnVihIzfp5EjiRNRI5rYw0Dygh51iQWtVU98ewS vP4y5eDUZIcLYYVijtkv_rKquD726mp8afGuPvCbmtM8ss5JGVAK1KEyQ9Bi 0oUMAo6up1cREbsDgf2pHnbbwzA5UBoSccR3GF_CYn2cVXd_4za0vymyqyhy xwJzTlDdQKHRSlVafgO9Nd7EjVoaqiP.fiEEhgYZlpCfUJsVV_L3t2n2Kr3z _oOAG1g7jsaw_1v2d8djH9594pDK94FjwSoBBWXgKiVzk4LLg8.u0.yD2Wq1 WP2dAC3C.fRcUaw-- Received: from [190.157.140.248] by web113507.mail.gq1.yahoo.com via HTTP; Tue, 15 Feb 2011 18:19:32 PST X-RocketYMMF: giffunip X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.108.291010 Date: Tue, 15 Feb 2011 18:19:32 -0800 (PST) From: "Pedro F. Giffuni" To: Gerald Pfeifer In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-toolchain@freebsd.org Subject: Re: -fno-math-errno by default X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: giffunip@tutopia.com List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 02:19:34 -0000 Hi Gerald; --- On Tue, 2/15/11, Gerald Pfeifer wrote: ... > > That said, if any of you introduce any changes to the > system compiler or are aware of any that have not > been addressed upstream yet, please advise and I'll > see what can be done. > I think gcc/config/i386/freebsd.h needs an integral revision. The FreeBSD port already uses CC1_SPEC and ASM_SPEC, just like is done for linux in upstream gcc. cheers, Pedro. From owner-freebsd-toolchain@FreeBSD.ORG Wed Feb 16 02:27:08 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AB11106564A for ; Wed, 16 Feb 2011 02:27:08 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by mx1.freebsd.org (Postfix) with SMTP id 362258FC12 for ; Wed, 16 Feb 2011 02:27:07 +0000 (UTC) Received: (qmail 82347 invoked from network); 16 Feb 2011 02:27:06 -0000 Received: from 195.135.221.2 (HELO trevally) (195.135.221.2) by relay03.pair.com with SMTP; 16 Feb 2011 02:27:06 -0000 X-pair-Authenticated: 195.135.221.2 Date: Wed, 16 Feb 2011 03:27:05 +0100 (CET) From: Gerald Pfeifer To: "Pedro F. Giffuni" In-Reply-To: <7685.89758.qm@web113507.mail.gq1.yahoo.com> Message-ID: References: <7685.89758.qm@web113507.mail.gq1.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-toolchain@freebsd.org Subject: Re: -fno-math-errno by default X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 02:27:08 -0000 On Tue, 15 Feb 2011, Pedro F. Giffuni wrote: > I think gcc/config/i386/freebsd.h needs an integral revision. I understand Loren Rittle has done that some two years ago, which lead to quite some changes to upstream GCC. > The FreeBSD port already uses CC1_SPEC and ASM_SPEC, just like is > done for linux in upstream gcc. The system compiler based on GCC is obviously dying, so my focus is on upstream and in consequence the ports. Basically the question is what changes we are missing upstream, and I'm working through them 1 by 1 right now, where -fno-math-errno is in process and -mno-fancy-math looks like a docu issue only. Gerald From owner-freebsd-toolchain@FreeBSD.ORG Wed Feb 16 08:41:04 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E86431065670 for ; Wed, 16 Feb 2011 08:41:04 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 6018D8FC0A for ; Wed, 16 Feb 2011 08:41:03 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p1G8exQ2096805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Feb 2011 10:40:59 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p1G8exhl091693; Wed, 16 Feb 2011 10:40:59 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p1G8exmF091692; Wed, 16 Feb 2011 10:40:59 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 16 Feb 2011 10:40:59 +0200 From: Kostik Belousov To: Gerald Pfeifer Message-ID: <20110216084059.GF78089@deviant.kiev.zoral.com.ua> References: <7685.89758.qm@web113507.mail.gq1.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HHCbY6NP+6ACWQad" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: "Pedro F. Giffuni" , freebsd-toolchain@freebsd.org Subject: Re: -fno-math-errno by default X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 08:41:05 -0000 --HHCbY6NP+6ACWQad Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 16, 2011 at 03:27:05AM +0100, Gerald Pfeifer wrote: > On Tue, 15 Feb 2011, Pedro F. Giffuni wrote: > > I think gcc/config/i386/freebsd.h needs an integral revision. >=20 > I understand Loren Rittle has done that some two years ago, which > lead to quite some changes to upstream GCC. >=20 > > The FreeBSD port already uses CC1_SPEC and ASM_SPEC, just like is > > done for linux in upstream gcc. >=20 > The system compiler based on GCC is obviously dying, so my focus is > on upstream and in consequence the ports. >=20 > Basically the question is what changes we are missing upstream, and > I'm working through them 1 by 1 right now, where -fno-math-errno is > in process and -mno-fancy-math looks like a docu issue only. Another thing you could consider is enabling NEED_INDICATE_EXEC_STACK on HEAD, for x86 and PowerPC (both 32 and 64 bits). See r217098, r217396. Thanks. --HHCbY6NP+6ACWQad Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk1bjZoACgkQC3+MBN1Mb4i+qQCdGgu6mGSWodFWGteR1HirX4/S bo8An0sKMYhDWrv5qLOzHXnlTIPqCDS9 =k8V5 -----END PGP SIGNATURE----- --HHCbY6NP+6ACWQad-- From owner-freebsd-toolchain@FreeBSD.ORG Sat Feb 19 01:01:36 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id E0F621065670; Sat, 19 Feb 2011 01:01:36 +0000 (UTC) Date: Sat, 19 Feb 2011 01:01:36 +0000 From: Alexander Best To: freebsd-toolchain@freebsd.org Message-ID: <20110219010136.GA92824@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [RFC] code changes/removal in boot2.c and ufsread.c so clang can compile boot2 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 01:01:37 -0000 hi everybody, r218745 triggered quite a discussion about dead code in boot2.c. i talked to roman (rdivacky@) and we were trying to improve the situation so that boot2 would build with clang 2.8 (base) and the latest development version of clang (trunk). a lot of the ideas came from Bruce (bde@). i'd really appreciate, if somebody could have a look at this patchset. for me it strips down the boot2 code so clang is able to compile it just fine. please bear in mind that this has to work with boot2 supporting UFS1 *and* UFS2. so please be sure not to override BOOT2_UFS in your src.conf or some place else. you should be able to test the (hopefully sucessfully) compiled boot2 binary by copying it to /boot. please be sure to keep a backup of your existing boot2 file in case something breaks. the patchset (against a recent HEAD) can be found here: http://people.freebsd.org/~arundel/patches/boot2.c.diff2 cheers. alex -- a13x From owner-freebsd-toolchain@FreeBSD.ORG Sat Feb 19 11:51:26 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCC53106566C; Sat, 19 Feb 2011 11:51:26 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (lev.vlakno.cz [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 983B58FC0C; Sat, 19 Feb 2011 11:51:25 +0000 (UTC) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 7069B9CB22A; Sat, 19 Feb 2011 12:51:24 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by lev.vlakno.cz (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Oipn3TVW4xtT; Sat, 19 Feb 2011 12:51:12 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 795BD9CB32B; Sat, 19 Feb 2011 12:51:12 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.4/8.14.4/Submit) id p1JBpCx3065706; Sat, 19 Feb 2011 12:51:12 +0100 (CET) (envelope-from rdivacky) Date: Sat, 19 Feb 2011 12:51:12 +0100 From: Roman Divacky To: Alexander Best Message-ID: <20110219115112.GA65227@freebsd.org> References: <20110219010136.GA92824@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110219010136.GA92824@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-toolchain@freebsd.org Subject: Re: [RFC] code changes/removal in boot2.c and ufsread.c so clang can compile boot2 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 11:51:26 -0000 On Sat, Feb 19, 2011 at 01:01:36AM +0000, Alexander Best wrote: > hi everybody, > > r218745 triggered quite a discussion about dead code in boot2.c. i talked to > roman (rdivacky@) and we were trying to improve the situation so that boot2 > would build with clang 2.8 (base) and the latest development version of > clang (trunk). a lot of the ideas came from Bruce (bde@). > > i'd really appreciate, if somebody could have a look at this patchset. for me > it strips down the boot2 code so clang is able to compile it just fine. please > bear in mind that this has to work with boot2 supporting UFS1 *and* UFS2. so > please be sure not to override BOOT2_UFS in your src.conf or some place else. > > you should be able to test the (hopefully sucessfully) compiled boot2 binary > by copying it to /boot. please be sure to keep a backup of your existing boot2 > file in case something breaks. no, just copying it to /boot is not enough. you have to run bsdlabel -B to actually install it > the patchset (against a recent HEAD) can be found here: > http://people.freebsd.org/~arundel/patches/boot2.c.diff2 the patch is wrong - you cant remove a.out support as "loader" still uses that I like the int -> unsigned parts of the patch and also the memsize() removal may be interesting. roman From owner-freebsd-toolchain@FreeBSD.ORG Sat Feb 19 12:01:57 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 763AB1065672; Sat, 19 Feb 2011 12:01:57 +0000 (UTC) Date: Sat, 19 Feb 2011 12:01:57 +0000 From: Alexander Best To: Roman Divacky Message-ID: <20110219120157.GA52655@freebsd.org> References: <20110219010136.GA92824@freebsd.org> <20110219115112.GA65227@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110219115112.GA65227@freebsd.org> Cc: freebsd-toolchain@freebsd.org Subject: Re: [RFC] code changes/removal in boot2.c and ufsread.c so clang can compile boot2 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 12:01:57 -0000 On Sat Feb 19 11, Roman Divacky wrote: > On Sat, Feb 19, 2011 at 01:01:36AM +0000, Alexander Best wrote: > > hi everybody, > > > > r218745 triggered quite a discussion about dead code in boot2.c. i talked to > > roman (rdivacky@) and we were trying to improve the situation so that boot2 > > would build with clang 2.8 (base) and the latest development version of > > clang (trunk). a lot of the ideas came from Bruce (bde@). > > > > i'd really appreciate, if somebody could have a look at this patchset. for me > > it strips down the boot2 code so clang is able to compile it just fine. please > > bear in mind that this has to work with boot2 supporting UFS1 *and* UFS2. so > > please be sure not to override BOOT2_UFS in your src.conf or some place else. > > > > you should be able to test the (hopefully sucessfully) compiled boot2 binary > > by copying it to /boot. please be sure to keep a backup of your existing boot2 > > file in case something breaks. > > no, just copying it to /boot is not enough. you have to run bsdlabel -B to > actually install it oops. didn't know that. > > > the patchset (against a recent HEAD) can be found here: > > http://people.freebsd.org/~arundel/patches/boot2.c.diff2 > > the patch is wrong - you cant remove a.out support as "loader" still uses that > > I like the int -> unsigned parts of the patch and also the memsize() removal > may be interesting. also some bootinfo.bi_* stuff can go. bde@ mentioned that all we actually need are: "Support for disk geometry fields in bootinfo was lost long ago. This leaves only the following bootinfo fields supported (by boot2) and used: bi_version, bi_size, bi_symtab, bi_esymtab, bi_kernelname." let me re-add the a.out code amd see how that works. cheers. alex > > roman -- a13x