From owner-freebsd-net@FreeBSD.ORG Mon Jan 30 08:47:00 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9039D16A420 for ; Mon, 30 Jan 2006 08:47:00 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from proof.pobox.com (proof.pobox.com [207.106.133.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CAF143D46 for ; Mon, 30 Jan 2006 08:47:00 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from proof (localhost [127.0.0.1]) by proof.pobox.com (Postfix) with ESMTP id B9BB741B3D; Mon, 30 Jan 2006 03:46:59 -0500 (EST) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by proof.sasl.smtp.pobox.com (Postfix) with ESMTP id 874D612FEA; Mon, 30 Jan 2006 03:46:58 -0500 (EST) Received: from brian by mappit.local.linnet.org with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1F3Ugb-000IMx-DM; Mon, 30 Jan 2006 08:46:57 +0000 Date: Mon, 30 Jan 2006 08:46:57 +0000 From: Brian Candler To: Aluminium Oxide Message-ID: <20060130084657.GA70583@uk.tiscali.com> References: <1136167766.17477.250884723@webmail.messagingengine.com> <20060103153312.GB11044@uk.tiscali.com> <1138522806.15997.253010448@webmail.messagingengine.com> <20060129101434.GA67244@uk.tiscali.com> <1138573200.6772.253038464@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1138573200.6772.253038464@webmail.messagingengine.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: /usr/src/lib/libc/net/res_debug.c: compile problem fixed X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2006 08:47:00 -0000 On Mon, Jan 30, 2006 at 08:50:00AM +1030, Aluminium Oxide wrote: > Awwww... > > You're right, but there's only a handlful of these that stop buildworld > with -O3.... I think the issue is that although you may be able to get FreeBSD to *build* using -O3, it's quite unlikely that it will *work* properly. If I understand correctly, gcc -O3 makes a lot of assumptions about when it's OK to keep values around in registers, which may not be valid when there are interrupts or other threads modifying memory. I think it's possible to make the code -O3 safe, e.g. by putting loads of 'volatile' declarations in, but catching every single case where this is required is extremely different. This may be more of a problem with the kernel than with userland though. Regards, Brian.