From owner-freebsd-ports@FreeBSD.ORG Sun Jul 3 00:52:53 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63AD316A4C4; Sun, 3 Jul 2005 00:52:44 +0000 (GMT) (envelope-from ps@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4418144345; Sun, 3 Jul 2005 00:32:58 +0000 (GMT) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id 0B581656B4; Sat, 2 Jul 2005 17:29:31 -0700 (PDT) X-Original-To: ps@mu.org Delivered-To: ps@mu.org Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by elvis.mu.org (Postfix) with ESMTP id 070A35C965 for ; Fri, 5 Nov 2004 14:08:25 -0800 (PST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 3B39A5749E; Fri, 5 Nov 2004 22:08:04 +0000 (GMT) (envelope-from owner-freebsd-current@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 3DC5F16A519; Fri, 5 Nov 2004 22:07:58 +0000 (GMT) Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDEE016A4CE; Fri, 5 Nov 2004 22:07:51 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FE0E43D3F; Fri, 5 Nov 2004 22:07:51 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B84FB513D2; Fri, 5 Nov 2004 14:10:20 -0800 (PST) From: Kris Kennaway To: Michael Johnson Message-ID: <20041105221020.GA39140@xor.obsecurity.org> References: <20041102222000.GA65845@xor.obsecurity.org> <639522fe041103144732ea6683@mail.gmail.com> <1099522198.59328.4.camel@blueheron.ahze.net> <200411050919.09547.freebsd.nospam@mekanix.dk> <20041105215220.GA32961@xor.obsecurity.org> <7CBFDBE9-2F75-11D9-8D06-000A958C81C6@ahze.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <7CBFDBE9-2F75-11D9-8D06-000A958C81C6@ahze.net> User-Agent: Mutt/1.4.2.1i X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Sender: owner-freebsd-current@freebsd.org Errors-To: owner-freebsd-current@freebsd.org X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on elvis.mu.org X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.0 X-Spam-Level: Cc: FreeBSD ports , current@freebsd.org, Kris Kennaway Subject: Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0 X-BeenThere: freebsd-ports@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sun, 03 Jul 2005 00:52:53 -0000 X-Original-Date: Fri, 5 Nov 2004 14:10:20 -0800 X-List-Received-Date: Sun, 03 Jul 2005 00:52:53 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 05, 2004 at 04:56:03PM -0500, Michael Johnson wrote: >=20 > On Nov 5, 2004, at 4:52 PM, Kris Kennaway wrote: >=20 > >On Fri, Nov 05, 2004 at 09:19:08AM +0100, Bjarne Wichmann Petersen=20 > >wrote: > >>On Wednesday 03 November 2004 23:49, Michael Johnson wrote: > >>>On Wed, 2004-11-03 at 15:47 -0700, Jie Gao wrote: > >>>>I just wonder if it is safe to use -O2 -pipe for kernel + world on > >>>>5-STABLE now. > >>>works okay for me > >> > >>And ports on 5-STABLE? >=20 > >Same as on 6.x - the bugs are in the ports themselves. Don't do it if > >you want your ports to work correctly. >=20 > Is there a list of what's broke with -O2 in ports anywhere? Some of the bugs are probably silent. For example, different versions of gcc sometimes have bugs at higher optimization levels or with certain CPUTYPE values. gcc 3.4 will warn about aliasing bugs (grep for "type-punning" in the logs) with -O2. I don't know if it always warns, or if you have to enable the warning with -Wmumble. In the last 6.0 build there were about 360 packages that emitted such warnings. -O2 will also cause build errors in other ways, e.g. if functions in a library are improperly declared static and not referenced internally (but are referenced externally by another application trying to link with the library), since -O2 may optimize them out completely. Kris --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBi/pMWry0BWjoQKURAou8AJ42fRZUzl5XuhoGXGn1NtDe/aMEvwCcC+bG NtwiTecnsrewAMffSIAIAAY= =7KZc -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--