From owner-freebsd-stable@FreeBSD.ORG Wed Sep 13 10:21:47 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3361516A782 for ; Wed, 13 Sep 2006 10:21:47 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id C06A043D66 for ; Wed, 13 Sep 2006 10:21:34 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id E8B4D5DCB for ; Wed, 13 Sep 2006 14:21:33 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id C80D55DC4 for ; Wed, 13 Sep 2006 14:21:33 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id k8DALZUc014213 for freebsd-stable@FreeBSD.ORG; Wed, 13 Sep 2006 14:21:35 +0400 (MSD) (envelope-from ru) Date: Wed, 13 Sep 2006 14:21:35 +0400 From: Ruslan Ermilov To: freebsd-stable@FreeBSD.ORG Message-ID: <20060913102135.GB13946@rambler-co.ru> References: <4507CC9B.60704@sun-fish.com> <200609130926.k8D9Q0XZ063753@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H+4ONPRPur6+Ovig" Content-Disposition: inline In-Reply-To: <200609130926.k8D9Q0XZ063753@lurza.secnetix.de> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: Subject: Re: optimization levels for 6-STABLE build{kernel,world} X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2006 10:21:47 -0000 --H+4ONPRPur6+Ovig Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 13, 2006 at 11:26:00AM +0200, Oliver Fromme wrote: > Stefan Lambrev wrote: > > Oliver Fromme wrote: > > > The default CFLAGS are "-O2 -pipe -fno-strict-aliasing". > > > Anything above -O2 isn't supported, and using -O2 without > > > -fno-strict-aliasing also isn't supported (and will create > > > broken code for some programs). A common mistake is to > > > specify CFLAGS=3D"-O2 -pipe" and omit -fno-strict-aliasing. > > > That'll shot you in the foot sooner or later. > >=20 > > May be default flags have to be set here: > > /usr/src/share/examples/etc/make.conf ? > > I'm asking because in this file I read: > >=20 > > # CFLAGS controls the compiler settings used when compiling C code. > > # Note that optimization settings other than -O and -O2 are not recomm= ended > > # or supported for compiling the world or the kernel - please revert a= ny > > # nonstandard optimization settings to "-O" or -O2 before submitting b= ug > > # reports without patches to the developers. > > # > > #CFLAGS=3D -O -pipe > >=20 > > May be "-fno-strict-aliasing" have to be added here then ? >=20 > Yes, you are right. I think a clarification should > be added to the make.conf(5) manual page and to the > /usr/share/examples/etc/make.conf file. >=20 > Someone care to submit a PR ...? >=20 Should be fixed in src/share/examples/etc/make.conf,v 1.277. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --H+4ONPRPur6+Ovig Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFB9uvqRfpzJluFF4RAholAJ0QvR8eODNp49f1ndQQBrUrWe6JlgCggj8z 7j5fzEriQVqZNubb6Z/DQFk= =9C7R -----END PGP SIGNATURE----- --H+4ONPRPur6+Ovig--