From owner-freebsd-hackers@freebsd.org Sun Jan 3 14:59:34 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 3475CA60EE6 for ; Sun, 3 Jan 2016 14:59:34 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 875E319E6 for ; Sun, 3 Jan 2016 14:59:32 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.10.248]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0LfzrP-1ZruZr3oXD-00pd7q for ; Sun, 03 Jan 2016 15:59:25 +0100 Received: from bsch by becker.bs.l with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aFk7v-000851-Mn for freebsd-hackers@freebsd.org; Sun, 03 Jan 2016 15:59:23 +0100 Date: Sun, 3 Jan 2016 15:59:23 +0100 From: Bertram Scharpf To: freebsd-hackers@freebsd.org Subject: Re: variables optimized out Message-ID: <20160103145923.GA16970@becker.bs.l> Mail-Followup-To: freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: Bertram Scharpf X-Provags-ID: V03:K0:NpDXK0W4a/c7Q45JA6jTnl0mzLSh6vQKPxuL5t1K9rPRNxCJyWq 0BCKGh5SHedZJ9Kqq5eNwBs1V/uJ/wWpBlcPrPFyZFn4LVquWPCarKVvRrm4p4sB5/1TkvR PiA/hPtMlkIZP40apw5sA/+gYAGBfc8GL7YmTuW6klMkG9cXo4AY2r0tH/yybCo3wspp5pE IRkJfGdPqBzju+5schb2w== X-UI-Out-Filterresults: notjunk:1;V01:K0:tQenCKCz1ik=:FwYQhEw4aHD/3F8NDs92dd 3qKi1/MMeAaalMZxbCjLK0kjksP9LvVZK0Gm7NE4lwJkyaCN0DC3qT6nVdvyDUQzZUact97Zy xWj1P4fYbeJvswKfycXyWUbKWHesSfPIpd+9r6huLhBDl55GMBPbUjdgQynXoFMK2Li7bMcgS JPmjCcUwn4L5ET3h8iI6tM6gaw2aosmwxYQL9D7yiARkiHvmNhSKcm+Y63rnfTTd4D11oTOiv ogdNNFmjzF2lzaNdNrU0leausgqsyBw9PSd7cAsYI5urxhSJAFgXtvjZfjCPR6Rur1V4VLxkz Ov/cB1UYGrBUxDm9ZxsffZZvhlvLAEeOLyMIj4gVU9/zzKtLhzWC4Gg/bOFXrLCChwFOWCiUV Rshbh5KGSN2DLRzkpeCi6J/u3NHA4N42h4/T6taHvnOk71b8WXb7c7HRfpnmt73HAWfEad6Nx H+6xk07ePAHYhB5Vl5lY+3dxVuAXjdJ9h07Ih45Sx7nGG76Y1kP+QlJiiA75MhbwAGIrowMXL B+cAmJF6JWvm8G/Gh1gxtNqdNJ8aaspUh+QMiaV6b62rhpKvn08B7XWxmw+Tcp8Ihs2SK1W+k jkCAJyPpCx/AbkjAJqqcCsizVXgKLkAe0JXp280oSZ0t86Ip6pQizHSJLUMq/l2if+T5KNty5 6nE2DI95uM4TBDads6csKiTOL1VXAnLxhiXLQlZmalxQRjlY1Tvep0WWLlD7ft7sBSzk= 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: Sun, 03 Jan 2016 14:59:34 -0000 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).\ >=20 > 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=E2=80=90 ported. At least to me this is a surprise. I'm really disappointed about what programming style has become common. Bertram --=20 Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de