Received: from eggs.gnu.org ([2001:4830:134:3::10]:52825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c76Fp-0000wc-5d for qemu-devel@nongnu.org; Wed, 16 Nov 2016 14:52:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c76Fo-0007Ah-Ii for qemu-devel@nongnu.org; Wed, 16 Nov 2016 14:52:21 -0500 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:33305) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c76Fo-0007AM-CL for qemu-devel@nongnu.org; Wed, 16 Nov 2016 14:52:20 -0500 Received: by mail-wm0-x241.google.com with SMTP id u144so14522328wmu.0 for ; Wed, 16 Nov 2016 11:52:20 -0800 (PST) Sender: Richard Henderson From: Richard Henderson Date: Wed, 16 Nov 2016 20:51:49 +0100 Message-Id: <1479325910-9060-14-git-send-email-rth@twiddle.net> In-Reply-To: <1479325910-9060-1-git-send-email-rth@twiddle.net> References: <1479325910-9060-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [RFC 13/14] tcg: Use temp number 0 again List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net, peter.maydell@linaro.org Now that we're storing pointers, we don't have to reserve index 0 to avoid the apperance of a NULL pointer. Signed-off-by: Richard Henderson --- tcg/tcg.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index a2a0b90..d4409ad 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -330,11 +330,6 @@ void tcg_context_init(TCGContext *s) memset(s, 0, sizeof(*s)); - /* Reserve global 0 so that, when foxing these integrals - as pointers, NULL is unused. */ - s->nb_globals = 1; - s->nb_temps = 1; - /* Count total number of arguments and allocate the corresponding space */ total_args = 0; -- 2.7.4