From owner-freebsd-hackers@freebsd.org Mon Jan 4 01:17:33 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39C90A619CA for ; Mon, 4 Jan 2016 01:17:33 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (kientzle.com [142.254.26.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E04641A74 for ; Mon, 4 Jan 2016 01:17:32 +0000 (UTC) (envelope-from tim@kientzle.com) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id u041Ibs3022906; Mon, 4 Jan 2016 01:18:37 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.112] (192.168.1.101 [192.168.1.101]) by kientzle.com with SMTP id 23nhcgus6xbav7yh5bvqhqfz3s; Mon, 04 Jan 2016 01:18:37 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: variables optimized out From: Tim Kientzle In-Reply-To: <20160103145923.GA16970@becker.bs.l> Date: Sun, 3 Jan 2016 17:17:16 -0800 Cc: Freebsd hackers list Content-Transfer-Encoding: quoted-printable Message-Id: <93DD470E-39F0-482E-B949-40C42234D779@kientzle.com> References: <20160103145923.GA16970@becker.bs.l> To: Bertram Scharpf X-Mailer: Apple Mail (2.3112) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2016 01:17:33 -0000 > On Jan 3, 2016, at 6:59 AM, Bertram Scharpf = wrote: >=20 > Hi, >=20 > 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).\ >>=20 >> All builds fine, but I get the weirdest of panics that most certainly = not >> happen with -O2. [...] >=20 > I just had a look at "man make.conf" and that says: >=20 > CFLAGS (str) Controls the compiler setting when compiling C = code. > Optimization levels other than -O and -O2 are not = sup=E2=80=90 > ported. >=20 > 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