Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2006 00:17:12 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        freebsd-current@freebsd.org, olli@lurza.secnetix.de
Subject:   Re: for review: sys/dev/md/md.c patch
Message-ID:  <20060131.001712.99374123.imp@bsdimp.com>
In-Reply-To: <200601301212.k0UCCnu6054149@lurza.secnetix.de>
References:  <20060129050435.A5945@xorpc.icir.org> <200601301212.k0UCCnu6054149@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200601301212.k0UCCnu6054149@lurza.secnetix.de>
            Oliver Fromme <olli@lurza.secnetix.de> writes:
: Luigi Rizzo <rizzo@icir.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060131.001712.99374123.imp>