Date: Sun, 3 Jan 2016 17:17:16 -0800 From: Tim Kientzle <tim@kientzle.com> To: Bertram Scharpf <lists@bertram-scharpf.de> Cc: Freebsd hackers list <freebsd-hackers@freebsd.org> Subject: Re: variables optimized out Message-ID: <93DD470E-39F0-482E-B949-40C42234D779@kientzle.com> In-Reply-To: <20160103145923.GA16970@becker.bs.l> References: <CAA99N-OKyxzVaJ4ayXRUGAoovNtHFXTpOXPkwhdw9k3LEMnOtw@mail.gmail.com> <20160103145923.GA16970@becker.bs.l>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Jan 3, 2016, at 6:59 AM, Bertram Scharpf <lists@bertram-scharpf.de> wrote: > > Hi, > > On Sunday, 03. Jan 2016, 14:38:33 +0100, robbinson defau wrote: >> Im debugging some issues in the kernel and as the kernel is compiled by >> default with -O2, a lot of variables are optimized out. So i made changes >> to make.conf (CFLAGS and COPTFLAGS).\ >> >> All builds fine, but I get the weirdest of panics that most certainly not >> happen with -O2. [...] > > I just had a look at "man make.conf" and that says: > > CFLAGS (str) Controls the compiler setting when compiling C code. > Optimization levels other than -O and -O2 are not sup‐ > ported. > > At least to me this is a surprise. I'm really disappointed > about what programming style has become common. This comment really just means that noone has stepped up to test the kernel when compiled with other settings and fix the problems uncovered by it. If you have time and skills to do so, I'm sure patches would be appreciated... Cheers, Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?93DD470E-39F0-482E-B949-40C42234D779>
