Date: Wed, 20 Feb 2008 18:17:41 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-stable@FreeBSD.ORG, blackdragon@highveldmail.co.za Subject: Re: tmpfs: strange behaviour Message-ID: <200802201717.m1KHHfQv098088@lurza.secnetix.de> In-Reply-To: <b53f6f940802162335t70e5ab8eqc5bd49e2453733d4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
David Naylor wrote: > Oliver Fromme wrote: > > What is the exact CFLAGS setting that you use? > > Do you use -O2 (or -Os) without -fno-strict-aliasing? > > I have managed to isolate the problem and it is definitely tmpfs > related. If the directory that I'm installing into is tmpfs then it > will fail, if it is ufs then it works. > > I recompiled tmpfs module (and reloaded) with CFLAGS='' with the same result. > > As an aside I have found that the default CFLAGS for src are: -O2 > -fno-strict-aliasing -pipe. For most parts of src, but some override it. > Would -fstrict-aliasing break anything in base/sys? I think src/sys is clean with regards to aliasing, but I'm not 100% sure. Someone please correct me if I'm wrong. I recommend not to put a CFLAGS line in /etc/make.conf at all. So far I haven't seen an example of a really useful CFLAGS line in this thread, but several examples that could possibly cause damage. It's best not to override the default (which is there for a reason). If you want better optimization, a appropriate CPUTYPE=... line is probably a better idea. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing." -- Mother Teresa
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802201717.m1KHHfQv098088>