From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoNHe-0004ko-03 for qemu-devel@nongnu.org; Thu, 07 Apr 2016 23:40:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoNHa-0004Fa-QN for qemu-devel@nongnu.org; Thu, 07 Apr 2016 23:40:33 -0400 Received: from mail-qg0-x241.google.com ([2607:f8b0:400d:c04::241]:35704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoNHa-0004FW-Jf for qemu-devel@nongnu.org; Thu, 07 Apr 2016 23:40:30 -0400 Received: by mail-qg0-x241.google.com with SMTP id b32so9084778qgf.2 for ; Thu, 07 Apr 2016 20:40:30 -0700 (PDT) Sender: Richard Henderson References: <1460044433-19282-1-git-send-email-sergey.fedorov@linaro.org> <1460044433-19282-2-git-send-email-sergey.fedorov@linaro.org> <5706A3C6.7030707@twiddle.net> <5706B206.904@weilnetz.de> <5706C506.5070607@weilnetz.de> From: Richard Henderson Message-ID: <5707282A.5040701@twiddle.net> Date: Thu, 7 Apr 2016 20:40:26 -0700 MIME-Version: 1.0 In-Reply-To: <5706C506.5070607@weilnetz.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 01/11] tci: Fix build regression List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , Sergey Fedorov , qemu-devel@nongnu.org Cc: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Sergey Fedorov , Paolo Bonzini , Peter Crosthwaite , Michael Roth , Peter Maydell On 04/07/2016 01:37 PM, Stefan Weil wrote: > I just tested a variant with tcg_debug_assert. It creates less efficient > code when debugging is disabled. Here is the code size for x86_64: > > with normal tcg_debug_assert: > > text data bss dec hex filename > 8293 0 128 8421 20e5 > bin/ndebug/x86_64-linux-gnu,tci/x86_64-softmmu/tci.o > > In gdb I can also see assembler code for op_size at the beginning > of the for loop in tcg_qemu_tb_exec. This slows down the interpreter. Please file a gcc bug. A branch across __builtin_unreachable is supposed to fold to a simple compile-time assert, providing extra information to the compiler but not generating code. r~