From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GnEDW-0002c6-29 for garchives@archives.gentoo.org; Thu, 23 Nov 2006 13:02:14 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kANCwjxI017092; Thu, 23 Nov 2006 12:58:45 GMT Received: from pollux.warande.net (pollux.sshunet.nl [145.97.192.42]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kANCwhZ5026568 for ; Thu, 23 Nov 2006 12:58:44 GMT Received: from localhost (localhost.localdomain [127.0.0.1]) by pollux.warande.net (Postfix) with ESMTP id E65FD58000F for ; Thu, 23 Nov 2006 13:58:39 +0100 (CET) Received: from pollux.warande.net ([127.0.0.1]) by localhost (pollux [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02426-01 for ; Thu, 23 Nov 2006 13:58:39 +0100 (CET) Received: from [192.168.0.3] (67pc222.sshunet.nl [145.97.222.67]) by pollux.warande.net (Postfix) with ESMTP for ; Thu, 23 Nov 2006 13:58:39 +0100 (CET) From: Jan Jitse Venselaar To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Another package that doesn't like GCC 4 Date: Thu, 23 Nov 2006 13:58:36 +0100 User-Agent: KMail/1.9.5 References: <200611221628.33584.prh@gotadsl.co.uk> <200611231139.36213.prh@gotadsl.co.uk> In-Reply-To: <200611231139.36213.prh@gotadsl.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart9481028.dci08qjLne"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200611231358.40124.janjitse@gmail.com> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at sshunet.nl X-Archives-Salt: e8fe47f2-879d-4d46-b03b-0750f8e1159b X-Archives-Hash: 02188e6d5b7c36e2b7e5dd2c7913e3c1 --nextPart9481028.dci08qjLne Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 23 November 2006 12:39, Peter Humphrey wrote: > On Wednesday 22 November 2006 16:28, I wrote: > > So now I suppose I have a lot of CFLAGS to juggle to find out which one > > hurts gnupg so that I can report it. > > It didn't take too long after all. I found that omitting, or > removing, -fmerge-all-constants from CFLAGS enabled gnupg to compile > with -ldap. I don't think gnupg uses C++ so I didn't play with CXXFLAGS. > > # grep FLAGS /etc/make.conf > CFLAGS=3D"-march=3Dk8 -Os -pipe -frename-registers -fweb -freorder-blocks= \ > -freorder-blocks-and-partition -combine -funit-at-a-time \ > -ftree-pre -fgcse-sm -fgcse-las -fgcse-after-reload -fmerge-all-constants" > CXXFLAGS=3D"-march=3Dk8 -Os -pipe -frename-registers -fweb -freorder-bloc= ks \ > -funit-at-a-time -ftree-pre -fgcse-sm -fgcse-las -fgcse-after-reload > -fmerge-all-constants" > > #cat /etc/portage/env/app-crypt/gnupg > CFLAGS=3D${CFLAGS//-fmerge-all-constants} > > I haven't decided whether it's worth reporting a bug; perhaps it's enough > that people here know what's needed. > > -- > Rgds > Peter Sorry, but using that flag is just asking for trouble. =46rom the GCC man-page: =2Dfmerge-all-constants "Languages like C or C++ require each non-automatic variable to have distin= ct=20 location, so using this option will result in non-conforming behavior. " Also, have you benchmarked in any way the effect of all these optimizations= on=20 the programs you run? You basically do -Os and then turn almost everything = on=20 which differs -O2 from -Os, negating the size difference, plus some extra=20 very experimental flags, which might increase or decrease performance (sorr= y,=20 but GCC works that way, extra optimizations could actually by=20 pessimizations), and probably break some programs.=20 Playing on your own computer is fine, but don't be surprised if something=20 breaks, and please don't bother other people with it. It certainly is not a= =20 GCC 4.x problem. Jan Jitse --nextPart9481028.dci08qjLne Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFZZsAe5JQSdZZ+OYRApvKAKCucVZAMCcAoLzvHi+BKGzR1jvKBQCeOd7Z roX1D3+Y9WW5DZKCpM6vJjc= =/KYL -----END PGP SIGNATURE----- --nextPart9481028.dci08qjLne-- -- gentoo-amd64@gentoo.org mailing list