From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5CF2C393BC07; Mon, 27 Apr 2020 14:10:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5CF2C393BC07 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587996645; bh=F6kocm04MotSZ+Pv1E5d7jcsg2Pn0+VArrUcoVNPkN8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XZwkJLhluYXLSA2hvNCgE0KeF1eL+yDNe0vdiACY+wdNKE6NvWCQWVuWKLZLVyPTu axbN3GHlrkHY7S/t9Fhq0XgDph0O1ATIuAh2Eqbl7D0WII85k9CUoGE3n4D+b1pzWq w8uCNG6U1ephddcQOC9PvSuDyNsjVNXUmzfZ6Tws= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/94755] [9/10 Regression] internal compiler error: Segmentation fault Date: Mon, 27 Apr 2020 14:10:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 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, 27 Apr 2020 14:10:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94755 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:26d76be7af6db75aaab662f4e93395f4ff8acb38 commit r10-7989-g26d76be7af6db75aaab662f4e93395f4ff8acb38 Author: Jakub Jelinek Date: Mon Apr 27 16:05:03 2020 +0200 c-family: Fix ICE on __builtin_speculation_safe_value () [PR94755] When this builtin has no parameters, speculation_safe_value_resolve_call returns BUILT_IN_NONE, but resolve_overloaded_builtin uselessly dereferences the first param just to return error_mark_node immediately. The following patch rearranges it so that we only read the first parame= ter if fncode is not BUILT_IN_NONE. 2020-04-27 Jakub Jelinek PR c/94755 * c-common.c (resolve_overloaded_builtin): Return error_mark_no= de for fncode =3D=3D BUILT_IN_NONE before initialization of first_para= m. * c-c++-common/pr94755.c: New test.=