From patchwork Wed Nov 24 09:17:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 48055 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C5F6D3857C6B for ; Wed, 24 Nov 2021 09:20:01 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 48A513858430 for ; Wed, 24 Nov 2021 09:17:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 48A513858430 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 178D01FD2F; Wed, 24 Nov 2021 09:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1637745448; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bZyORvT1iNzLdY9cBiH4l71SMWUyq3uJNjgGyhFS5J0=; b=gDB/WYnqyDoLkD7xchl5G5kX8+xDbExrp+xzpIxOnxfQg+f21jb/l5FFMVLMjLaJcU62KU hWDYcBZQ7NVVfTgqnaAufiSZdwgF5fIGCcuxoTIgulZL0FlyC1f3bOLeMpOar5KJTpH6r9 GxU/VIkbbFOAWbiV0JId15VD+et/buk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1637745448; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bZyORvT1iNzLdY9cBiH4l71SMWUyq3uJNjgGyhFS5J0=; b=DuWe5OORyip1ppKHfwouz/1OgfYejDyyU0A2tAT1icFxr8YaAcsr4+Xjw6Zf28PCvBPncS pOJzP8ECc7da8TBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0339113EC4; Wed, 24 Nov 2021 09:17:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Cg5sOycDnmGLQAAAMHmgww (envelope-from ); Wed, 24 Nov 2021 09:17:27 +0000 Message-ID: Date: Wed, 24 Nov 2021 10:17:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH][pushed] jit: Initialize function::m_blocks in ctor To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" This resolves the problem reported here: https://mail.gnu.org/archive/html/bug-gnu-emacs/2021-11/msg00606.html https://bugzilla.opensuse.org/show_bug.cgi?id=1192951 I'm going to push it as obvious. Martin gcc/jit/ChangeLog: * jit-playback.c (function): Initialize m_blocks vector. --- gcc/jit/jit-playback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/jit/jit-playback.c b/gcc/jit/jit-playback.c index 59399dee251..b412eae6aa8 100644 --- a/gcc/jit/jit-playback.c +++ b/gcc/jit/jit-playback.c @@ -1484,7 +1484,8 @@ function (context *ctxt, : m_ctxt(ctxt), m_inner_fndecl (fndecl), m_inner_bind_expr (NULL), - m_kind (kind) + m_kind (kind), + m_blocks () { if (m_kind != GCC_JIT_FUNCTION_IMPORTED) {