From owner-freebsd-stable@FreeBSD.ORG Wed Aug 31 14:57:08 2005 Return-Path: X-Original-To: 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 3097216A41F for ; Wed, 31 Aug 2005 14:57:08 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id C14C843D45 for ; Wed, 31 Aug 2005 14:57:07 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 0344C5F72; Wed, 31 Aug 2005 10:57:07 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 35527-10; Wed, 31 Aug 2005 10:57:05 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-79-217.ny325.east.verizon.net [68.161.79.217]) by pi.codefab.com (Postfix) with ESMTP id D76EF5D5D; Wed, 31 Aug 2005 10:57:04 -0400 (EDT) Message-ID: <4315C541.7050000@mac.com> Date: Wed, 31 Aug 2005 10:57:05 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050801 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Jim C. Nasby" References: <55023220@srv.sem.ipt.ru> <20050828150947.GA58038@82-168-75-155-bbxl.xdsl.tiscali.nl> <4312B091.9090104@meijome.net> <20050831050137.GQ77007@decibel.org> In-Reply-To: <20050831050137.GQ77007@decibel.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: stable@freebsd.org Subject: Re: 6.0 and -O2 option 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, 31 Aug 2005 14:57:08 -0000 Jim C. Nasby wrote: > On Tue, Aug 30, 2005 at 10:57:53AM +1000, Robert Backhaus wrote: [ ... ] >> Simply because not every port works with -O2 optimisations. It caused >> bad code in some circumstances. > > Is there an automated way to identify those ports so they can be forced > not to use -O higer than -O1? Regrettably, no. Well, -Werror might be somewhere between overkill and helpful, assuming the compiler can recognize a potential type-punning situation. -- -Chuck