From owner-freebsd-current@FreeBSD.ORG Tue Jan 31 07:17:17 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 9D77C16A420 for ; Tue, 31 Jan 2006 07:17:17 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37E2843D49 for ; Tue, 31 Jan 2006 07:17:17 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k0V7H1ZC024387; Tue, 31 Jan 2006 00:17:01 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 31 Jan 2006 00:17:12 -0700 (MST) Message-Id: <20060131.001712.99374123.imp@bsdimp.com> To: freebsd-current@freebsd.org, olli@lurza.secnetix.de From: "M. Warner Losh" In-Reply-To: <200601301212.k0UCCnu6054149@lurza.secnetix.de> References: <20060129050435.A5945@xorpc.icir.org> <200601301212.k0UCCnu6054149@lurza.secnetix.de> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 31 Jan 2006 00:17:02 -0700 (MST) Cc: Subject: Re: for review: sys/dev/md/md.c patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 07:17:17 -0000 In message: <200601301212.k0UCCnu6054149@lurza.secnetix.de> Oliver Fromme writes: : Luigi Rizzo wrote: : > just discovered, trying to resurrect picobsd on -current, : > that the compiler in 6.x/7.x has become smart and, at least : > with the default compilation flags, will optimize out : > the "end_mfs_root" string from the object. : : Shouldn't it be sufficient to declare the string as volatile? : That should prevent it from being optimized by the compiler. I know that for the arm board I'm working on, MFS works great. The proposed patch looks interesting, but I'm not sure why it is necessary. I think removing the 'static' would be sufficient... Warner