From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8ABA93951889; Tue, 8 Sep 2020 14:49:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8ABA93951889 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599576580; bh=iJmuZnx9u/vU9wAE+n+dxnCV4I+s7jJMV6oKfxdzm5A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mEGK3WWkNFm3VMJ4uf0ss6HBS95Lio3yX8ixrF/gUjgw4LEdh3828h6YShCuuWsRd YJ/YRZEAmoWSl2V9PmHW11br65txcqfcUtMvZSHJbIIzfeQk4vlJO2jOjrdvtSnTaG NcapDgJiUG8Mf53l6fG6uDrdigTrCgtz/eceMjEM= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/96962] [11 Regression] ICE in gimple_call_arg, at gimple.h:3256 Date: Tue, 08 Sep 2020 14:49:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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: Tue, 08 Sep 2020 14:49:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96962 --- Comment #2 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:47997a32e63b77ec88a7131a5d540f108c698661 commit r11-3050-g47997a32e63b77ec88a7131a5d540f108c698661 Author: David Malcolm Date: Mon Sep 7 17:16:37 2020 -0400 analyzer: fix ICE on machine-specific builtins [PR96962] In g:ee7bfbe5eb70a23bbf3a2cedfdcbd2ea1a20c3f2 I added a switch (DECL_UNCHECKED_FUNCTION_CODE (callee_fndecl)) to region_model::on_call_pre guarded by fndecl_built_in_p (callee_fndecl). I meant to handle only normal built-ins, whereas this single-argument overload of fndecl_built_in_p returns true for any kind of built-in. PR analyzer/96962 reports a case where this matches for a machine-specific builtin, leading to an ICE. Fixed thusly. gcc/analyzer/ChangeLog: PR analyzer/96962 * region-model.cc (region_model::on_call_pre): Fix guard on swi= tch on built-ins to only consider BUILT_IN_NORMAL, rather than other kinds of build-ins.=