X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail.wilcox-tech.com (mail.wilcox-tech.com [45.32.83.9]) by lists.alpinelinux.org (Postfix) with ESMTP id DB59B5C593B for ; Wed, 25 Oct 2017 19:17:37 +0000 (GMT) Received: (qmail 24725 invoked from network); 25 Oct 2017 19:17:34 -0000 Received: from 107-131-85-28.lightspeed.tulsok.sbcglobal.net (HELO ?192.168.1.57?) (awilcox@wilcox-tech.com@107.131.85.28) by mail.wilcox-tech.com with ESMTPA; 25 Oct 2017 19:17:34 -0000 Subject: Re: [alpine-devel] force compile flag for musl? To: alpine-devel@lists.alpinelinux.org References: <20171025164614.14c4c57e@ncopa-desktop.copa.dup.pw> From: "A. Wilcox" X-Enigmail-Draft-Status: N1110 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: <59F0E348.6020807@adelielinux.org> Date: Wed, 25 Oct 2017 14:17:28 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 In-Reply-To: <20171025164614.14c4c57e@ncopa-desktop.copa.dup.pw> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VlQbEiQ62cpgVganoDM14ClxdS77U992N" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --VlQbEiQ62cpgVganoDM14ClxdS77U992N Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 25/10/17 09:46, Natanael Copa wrote: > Hi, >=20 >=20 > I wonder what you think about overriding the -Os compile flag for=20 > musl, and hardcode it to -O2. Possibly. Is there some benchmarks available, maybe using libc-test or such? > What do you think? >=20 > + # force -O2 compile flag for better performance + > CFLAGS=3D"-O2" \ No. Stuff in abuild.conf needs to be preserved and -O2 tacked on the end (GCC will only honour last -O flag passed, so this is what you want).= This is INCREDIBLY important to us at Ad=E9lie because for instance ppc64 BE requires -fno-inline-small-functions due to GCC bug elsewise it will cause ABI issues with long double. We also use -march / -mcpu which would be discarded here as well, which would cause it to be slower on some platforms (-O2 won't help as much on x86_32 as it would on -march=3Dpentium4 x86_32, for instance). I agree with the idea of using -O2 but not with the implementation of blowing away all other CFLAGS. Best, --arw --=20 A. Wilcox (awilfox) Project Lead, Ad=E9lie Linux http://adelielinux.org --VlQbEiQ62cpgVganoDM14ClxdS77U992N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZ8ONJAAoJEMspy1GSK50UAOMP/3EpjJ4C/FlSymJiLPASxcUB cbDilxZ42XOXtkXDZRAizfsxTUbWAkTEHr8OvFznFptBOS29sxn1YL0h3BdRyygc MLH4vjGrg1M7ZbBOaAZWBr5NF8vizWgK8KBMBgg86T9JGX9EcwvNX/b0lav/IXaC sWHaoNtUqW/pYlpc82R+tuLiZ98lI7TpU1WMgFLncdlSTBOmSiiengaO2wpzw91e Sond56IrATg+xdxrPYJq+Mm55FVKkhp3n1eOuzwu8EugrbpZZxeXFOlgkTYgGJLP HnVQem14GoxP5ViTslXw35V6FJULHeyO8217YSG3zJbYtBwZ4lYamKIgo8F6qva2 o1XUSwIw7Y4105YQfzKDQ0r2zDRTuJ53rkaaazI+vmkTCc7T/rb9rzZdxNa3y4Sk /SoRpXq6xoGl0OOOkL7OwJdDjmZ4yYmowfhxmL1sw7a1wAWF626mjB10L6+JtYUM TzDysckj/xnWpbz6gKtT+aKd+b5gguuKu+tTfM+XmwnafKZqUQ7gogmJYkJZHCur RPKt0/IGBbPBb/zYRuuFtvGYxjwPLwyWUL8vldi/WpG9SWO1mDcOsim8eNtTFh0S OmFyluVhPlEm4fDcnynUxDzql0camAVU60niGz0cG/IuOPbCkoyaEeuJluOKWgQL kKNvfTfyAPz+SmtmLQGu =JiNr -----END PGP SIGNATURE----- --VlQbEiQ62cpgVganoDM14ClxdS77U992N-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---