From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDjA3-0004sn-FH for qemu-devel@nongnu.org; Mon, 17 Sep 2012 17:47:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDjA2-0002hS-IT for qemu-devel@nongnu.org; Mon, 17 Sep 2012 17:47:23 -0400 Received: from mail-qa0-f45.google.com ([209.85.216.45]:43901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDjA2-0002gs-Bu for qemu-devel@nongnu.org; Mon, 17 Sep 2012 17:47:22 -0400 Received: by qadc10 with SMTP id c10so1925096qad.4 for ; Mon, 17 Sep 2012 14:47:21 -0700 (PDT) Sender: Richard Henderson Message-ID: <50579A67.7020204@twiddle.net> Date: Mon, 17 Sep 2012 14:47:19 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1347897649-23236-1-git-send-email-pbonzini@redhat.com> <1347897649-23236-6-git-send-email-pbonzini@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 05/10] exec: small adjustments for TCG separation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Paolo Bonzini , qemu-devel@nongnu.org On 09/17/2012 12:17 PM, Blue Swirl wrote: >> > +void tcg_exec_init(unsigned long tb_size) >> > +{ >> > +#ifndef CONFIG_TCG >> > + /* We cannot yet use tcg_enabled() here, it is set below. */ >> > + return; > This leaves a lot of unreachable code after return, possibly > introducing warnings and with low enough optimization level, maybe > break linking. Please add #else and move #endif to end of the > function. > No, this really should work all the time. Certainly gcc will not warn for unreachable code after return, and will even at -O0 remove it. r~