From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 02140386F831; Mon, 29 Jun 2020 17:14:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02140386F831 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593450858; bh=/ENZ1MSVmWCVdft3eZZnPMJWC6CeUviMQjhDkjzAehM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=A/s+fHHRAjSTDotkBYFjSqLpOl7v1tkeajmD94HS9FQMguPs4cfdT41rCIMwv1E5F YJn8g66mUUs7+RJuyvL5BD6IWvVJp4l4Mq9qrOjNEBenFTcDgwkFeXcLwlvaxlHf6w CCs++ewu/j+kZCoMkDl/rYNZ3Vwd6/c4/pO36qDk= From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBib290c3RyYXAvOTU5NzBdIGdjYy9nby9nb2Zyb250ZW5k?= =?UTF-8?B?L3R5cGVzLmNjOjE0NzQ6MzQ6IHdhcm5pbmc6IOKAmHRoaXPigJkgcG9pbnRl?= =?UTF-8?B?ciBudWxs?= Date: Mon, 29 Jun 2020 17:14:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2020 17:14:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95970 --- Comment #2 from Martin Sebor --- I think the warning is a false positive. The problem call is introduced by early inlining and is eliminated by path isolation, but the -Wnonnull warni= ng code runs before that happens (by the post_ipa_warn pass). Here's the relevant portion of the path isolation dump showing the removal: ;; Function Named_type::do_type_descriptor (_ZN10Named_type18do_type_descriptorE P4GogoPS_, funcdef_no=3D8125, decl_uid=3D214219, cgraph_uid=3D3913, symbol_order=3D4835) Pass statistics of "isolate-paths": ---------------- ... Removing basic block 11 ;; basic block 11, loop depth 0 ;; pred:=20=20=20=20=20=20 _20 =3D MEM[(int (*) () *)_19 + 96B]; _21 =3D OBJ_TYPE_REF(_20;(struct Type)0B->12) (0B, gogo_9(D), 0B); this_7(D)->seen_alias_ =3D 0; goto ; [100.00%] ;; succ: 10=