Re: for review: sys/dev/md/md.c patch
- From: "M. Warner Losh" <imp@xxxxxxxxxx>
- Date: Tue, 31 Jan 2006 00:17:12 -0700 (MST)
In message: <200601301212.k0UCCnu6054149@xxxxxxxxxxxxxxxxx>
Oliver Fromme <olli@xxxxxxxxxxxxxxxxx> writes:
: Luigi Rizzo <rizzo@xxxxxxxx> 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
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- References:
- for review: sys/dev/md/md.c patch
- From: Luigi Rizzo
- Re: for review: sys/dev/md/md.c patch
- From: Oliver Fromme
- for review: sys/dev/md/md.c patch
- Prev by Date: Re: xorg 6.9.0 mem leak
- Next by Date: Re: KDE 3.5.0 seems much chubbier than 3.4.2
- Previous by thread: Re: for review: sys/dev/md/md.c patch
- Next by thread: lor in drm_drv/vm_glue?
- Index(es):
Relevant Pages
|
|