Received: from eggs.gnu.org ([2001:4830:134:3::10]:46162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWQPl-0001LD-Pu for qemu-devel@nongnu.org; Tue, 02 Jan 2018 12:31:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWQPj-0000Hs-6s for qemu-devel@nongnu.org; Tue, 02 Jan 2018 12:31:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60480) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eWQPi-0000GW-WF for qemu-devel@nongnu.org; Tue, 02 Jan 2018 12:31:47 -0500 References: <20171215150659.1811-1-marcandre.lureau@redhat.com> <20171215150659.1811-5-marcandre.lureau@redhat.com> From: Paolo Bonzini Message-ID: Date: Tue, 2 Jan 2018 18:31:36 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 04/13] build-sys: add AddressSanitizer when --enable-debug if possible List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , QEMU Cc: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , Peter Maydell , Fam Zheng On 02/01/2018 16:49, Marc-Andr=C3=A9 Lureau wrote: >>> If necessary, we could consider a seperate configure option, although >>> I like the idea to have it enabled by default with --enable-debug. >> Peter, Paolo, Fam, any thoughts about having ASAN enabled by default >> with --enable-debug? (when available) >> >> Slow down is not really noticeable to me when running make check, but >> I can do some measurements if that helps. >> >> thanks > ping, thanks >=20 Sounds good, but: 1) please remove --enable-debug from existing docker tests and add a new one based on tests/docker/test-full; 2) I think removing -O2 from --enable-debug should be removed at the same time. That pretty much guarantees that nobody will use --enable-debug, and optimized builds are decently debuggable nowadays. The best would be to detect -Og, and add either -Og or -O1 depending on presence. Paolo