From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNjzf-0008UF-U3 for qemu-devel@nongnu.org; Wed, 12 Mar 2014 10:18:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNjza-0006bI-Um for qemu-devel@nongnu.org; Wed, 12 Mar 2014 10:18:51 -0400 Message-ID: <53206CC5.6040902@suse.de> Date: Wed, 12 Mar 2014 15:18:45 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1394630689-11913-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] target-m68k: Remove custom qemu_assert() function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , QEMU Developers Cc: QEMU Trivial , Stefan Weil , Patch Tracking Am 12.03.2014 15:15, schrieb Peter Maydell: > On 12 March 2014 13:24, Peter Maydell wrote: >> Remove the custom qemu_assert() function defined by target-m68k/transl= ate.c >> in favour of either using glib g_assert_not_reached() (for the genuine= ly >> can't-happen cases) or cpu_abort() (for the "this isn't implemented", >> in line with other unimplemented cases in the target). >> >> This has the benefit of silencing some clang warnings about >> variables used while uninitialized (which are emitted because >> clang can't figure out that qemu_assert(0, something) never >> returns. >> >> Signed-off-by: Peter Maydell >=20 > Andreas pointed out that we've had one attempt to fix this > late last year: > http://lists.gnu.org/archive/html/qemu-devel/2013-12/msg02177.html > which didn't work because hw_assert() is not present in user-mode > compiles. This version of the patch doesn't suffer from that issue. Reviewed-by: Andreas F=C3=A4rber Looks fine then, except that cpu_abort() will conflict with my series. Regards, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg