From owner-freebsd-hackers@freebsd.org Sun Jan 3 16:23:18 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 8753DA60B28 for ; Sun, 3 Jan 2016 16:23:18 +0000 (UTC) (envelope-from stoa@gmx.us) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E354518B3 for ; Sun, 3 Jan 2016 16:23:17 +0000 (UTC) (envelope-from stoa@gmx.us) Received: from archlinux ([24.116.197.15]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MFi1J-1aTqRq0Dzx-00EcAg for ; Sun, 03 Jan 2016 17:23:15 +0100 Date: Sun, 3 Jan 2016 10:23:05 -0600 From: Dutch Ingraham To: freebsd-hackers@freebsd.org Subject: Re: variables optimized out Message-ID: <20160103162304.GA456@archlinux> References: <20160103145923.GA16970@becker.bs.l> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160103145923.GA16970@becker.bs.l> User-Agent: Mutt/1.5.24 (2015-08-30) X-Provags-ID: V03:K0:yxZfAYqBUsAiRlYAsyVsIEj+CzCVg2zhjDtdQIP8SGNoCDF+1ci +e/bVVSA2/bADKd8qC9Bylmd/VLls9rh37FTWwGQaITntiMaq3JoaHvvBWPzIyid92ZXHvL ATAunzVtnd2gqctVbP3XqpM+3GH14i3jV2aWOk1h5h8KY6k+NOO++AohvB8qthvveiXcRaS Qs89UO1SnxfbOryoc1VhQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:YyDTy63TZWs=:e28rE2iKfHdkQyl0mpEHhM rInNWTl32MCn0KoX/9ex19qdQ1yrFMsKhSCZGUpS2RERwe5bwhuo1PLShvbFBzCgG/5Mr9DfS KDCm6+dWF4ggkT4GUoji1gwqMrlxZJWKC0+SljJOBmITUsBs+vRpoWASV2wF72IKy9KBQlfO4 L4cju7NaUlJ1KzmRIgZGJQLB6vw/yVGBmLp7XS2pliRiXQjR3/3PKYgBbCYJh4S8cIDTBaQFg /oHMKXOv1qWYm5gkShn17xnkcqVihcrr4+Ph/LjysZwsefw+wmfFFnNiF9GQYBlU0jMqQyMtP Lo5HIQbYwjgPYlHEyuqY7EtZ8Jkp5ae+VX3yNOhaViuBBZb7YKDiT1bql2A+B2KvJ9469I1oi qgbpAMsS+aUTadh0XAlRsEXYLjN+mGVp0p+2IMQJDuMU6vK0jSxO/bwaAeHrfnPurSzq82e+f mw9A7jM0+aeh56eUjfspfKWjSR6UFXS/ruB5/VXOzeT89SJKvYHA8mi0kyVAfWAmfpO9Hsnz0 TuJREijd0wdmuD0OoriHaTFVOPIPxN1xGOEFYVSISpaIcnyJMDnSwgOV/IvuHdPLLMx7UtYwf DXmjebS5i3UMDWHdYyAlBOUymS68sXgoiMIROeThbfHaGUOTdkLQ/Rj8/sjP3yYbMbyxNjpy/ 38JEBg/gAHmLRPmH6PuEcSoDJFpE90tjrD9Ot0uJtm7EYzOwj4JEPKUA9tRbvhDz81QYkmphe PoLgSCPMry0DKbipeHIYoebRMm3U7HyT2PMBSKng6rhXisbMIfyWUFjroHg= 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 16:23:18 -0000 On Sun, Jan 03, 2016 at 03:59:23PM +0100, Bertram Scharpf wrote: > > 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. > > Bertram > I'm not sure what you mean by "programming style," but this optimization restriction seems limited to Freebsd and some of its derivatives. [1][2] [1] https://dev.gentoo.org/~zmedico/portage/doc/man/make.conf.5.html [2] https://www.dragonflybsd.org/cgi/web-man?command=make.conf§ion=5