Received: from eggs.gnu.org ([2001:4830:134:3::10]:49534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an8tj-0004zF-Bj for qemu-devel@nongnu.org; Mon, 04 Apr 2016 14:06:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1an8ti-0007pw-LH for qemu-devel@nongnu.org; Mon, 04 Apr 2016 14:06:47 -0400 References: <1459767918-796-1-git-send-email-sergey.fedorov@linaro.org> <5702567E.6060701@weilnetz.de> <57026A7E.1000506@gmail.com> <5702AA32.507@weilnetz.de> From: Sergey Fedorov Message-ID: <5702AD2D.8050406@gmail.com> Date: Mon, 4 Apr 2016 21:06:37 +0300 MIME-Version: 1.0 In-Reply-To: <5702AA32.507@weilnetz.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] tci: Fix build with no '-DNDEBUG' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , Sergey Fedorov , qemu-devel@nongnu.org Cc: QEMU Trivial , Peter Maydell On 04/04/16 20:53, Stefan Weil wrote: > Am 04.04.2016 um 15:22 schrieb Sergey Fedorov: >> On 04/04/16 14:56, Stefan Weil wrote: > [...] >>> There is indeed a regression in the current code. Commit >>> d38ea87ac54af64ef611de434d07c12dc0399216 added an include statement >>> which includes assert.h before NDEBUG is defined. This is wrong and >>> needs a fix. Could you please try tci.c starting like this? >>> >>> /* Defining NDEBUG disables assertions (which makes the code faster). */ >>> #if !defined(CONFIG_DEBUG_TCG) && !defined(NDEBUG) >>> # define NDEBUG >>> #endif >>> >>> #include "qemu/osdep.h" >>> >> Doing so really helps. So what are the plans of how to fix the problem? >> >> Thanks, >> Sergey > > The correct fix needs a little bit more code because my first try (see > above) did not get the definition of macro CONFIG_DEBUG_TCG. > > My patch was now sent to the list. Thanks!