Message ID | 20220913085150.0F518139B3@imap2.suse-dmz.suse.de |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp2252617wrt; Tue, 13 Sep 2022 01:52:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR5SLQW5K6qFmRP1AR/14mXqzzlMMF/AhfXi8j0aJ00XjabU9DIJasIPTwfqtzb1jThOTR9N X-Received: by 2002:a50:ef03:0:b0:44e:82bf:28e6 with SMTP id m3-20020a50ef03000000b0044e82bf28e6mr24022136eds.270.1663059161569; Tue, 13 Sep 2022 01:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663059161; cv=none; d=google.com; s=arc-20160816; b=xbL+76/BcbZtXa4f/wLAdXaTPMsVHgQvXQAuzCXX/lKm9U8xye4pfoD4xxjb875FPD tP7IiODTQL0w8uDVr6TJKIp82nZLTGDe5vk0HgU+AJVEWCSjQqc4CRdsGYYIY+NzhWQA LNXKMVDuEL/84bhlXTwoYYBg/lpHG55E8FATiBt1Rk398NC75gBDhgtYe4Nv2M4o5EtM 4V/EYwS481xHRWAVFvrNtIM7EVbIwX2HOM8QoqgxN5Acjxd/NIG58Pa6TtytL91b3w+f LHgT5dnGcRWGH4razZ3yXYCe7+nnWozT23qUvU5ZmyRv3JnUrgrVs0E8F2sJorOIoaie y4xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:message-id :mime-version:subject:to:date:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=QY/fT2rSMyFZxTc+KKesNNqxdNA7x4rvpZ1qzE21ppQ=; b=sD1FdRdc/3g93qhzgpw4x0X/vmNIkipJ8w1Bt3FZj8OjRQE8XzFTnDuiogG00tCGKh fhevWknBrdHh3tyZ7KzkhlTTXI+MQmXRSi7Sgk0oEeNpHYeEYdHBJgaIbct4To1vnZh/ 2xlEx+qXVqZb2yNFj2FTcN3icEqDsXYuwHeKJejhejqpQFFzX1wGGM3PZSifio1m+XuJ bzLaOXWEF5oCTojVxq/DABLymPHREm5ravm6eMxBtS0dCQUGPIVaiF4w2fJe/Tr1QAa8 mACiCECEDoCmvQ3nQ341CDGofnWt28JPnD1UEG7N+I3DkIH4JVkTl+o73ZKVpZl3Y8af 2Zdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=aAUU6aOX; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ev6-20020a056402540600b00451b3df02c6si4334669edb.617.2022.09.13.01.52.41 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 01:52:41 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=aAUU6aOX; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6C97A385117C for <ouuuleilei@gmail.com>; Tue, 13 Sep 2022 08:52:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C97A385117C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663059158; bh=QY/fT2rSMyFZxTc+KKesNNqxdNA7x4rvpZ1qzE21ppQ=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=aAUU6aOXDA9UBcXlyBigLUCecagg175Bam9SmT2K4Gf2KNyPC4SEQ9cacfdNLOZ7q jeLb91n8PxljeiCSZ4xvnNAYzZOKNz3T2omUYdaLuTYcZ1zKl4yE/2STIxVT+suJpw XjNJhpKuy0YRIIGHQBlulhJSb2d4P/jgpKbIa9XU= 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 [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id 498673858C33 for <gcc-patches@gcc.gnu.org>; Tue, 13 Sep 2022 08:51:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 498673858C33 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 21AF65C04A for <gcc-patches@gcc.gnu.org>; Tue, 13 Sep 2022 08:51:50 +0000 (UTC) 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 0F518139B3 for <gcc-patches@gcc.gnu.org>; Tue, 13 Sep 2022 08:51:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Uzy0AqZEIGP8IQAAMHmgww (envelope-from <rguenther@suse.de>) for <gcc-patches@gcc.gnu.org>; Tue, 13 Sep 2022 08:51:50 +0000 Date: Tue, 13 Sep 2022 10:51:49 +0200 (CEST) To: gcc-patches@gcc.gnu.org Subject: [PATCH] tree-optimization/106913 - ICE with -da and -Wuninitialized MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-Id: <20220913085150.0F518139B3@imap2.suse-dmz.suse.de> X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Richard Biener via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Richard Biener <rguenther@suse.de> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1743843923192956650?= X-GMAIL-MSGID: =?utf-8?q?1743843923192956650?= |
Series |
tree-optimization/106913 - ICE with -da and -Wuninitialized
|
|
Commit Message
Richard Biener
Sept. 13, 2022, 8:51 a.m. UTC
The following avoids setting and not clearing an auto_bb_flag on EXIT_BLOCK which we don't verify for such stale flags but dump_bb_info still asserts on them. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. PR tree-optimization/106913 * tree-ssa-uninit.cc (warn_uninitialized_vars): Do not set ft_reachable on EXIT_BLOCK. --- gcc/tree-ssa-uninit.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/gcc/tree-ssa-uninit.cc b/gcc/tree-ssa-uninit.cc index 4a1c333d9cb..eae29f88f9d 100644 --- a/gcc/tree-ssa-uninit.cc +++ b/gcc/tree-ssa-uninit.cc @@ -1013,11 +1013,9 @@ warn_uninitialized_vars (bool wmaybe_uninit) if (ee) bb = ee->dest; else - { - bb = get_immediate_dominator (CDI_POST_DOMINATORS, bb); - if (!bb || bb->index == EXIT_BLOCK) - break; - } + bb = get_immediate_dominator (CDI_POST_DOMINATORS, bb); + if (!bb || bb->index == EXIT_BLOCK) + break; } FOR_EACH_BB_FN (bb, cfun)