Re: for review: sys/dev/md/md.c patch

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Tue, 31 Jan 2006 00:17:12 -0700 (MST)
In message: <200601301212.k0UCCnu6054149_at_lurza.secnetix.de>
            Oliver Fromme <olli_at_lurza.secnetix.de> writes:
: Luigi Rizzo <rizzo_at_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
Received on Tue Jan 31 2006 - 06:17:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:51 UTC