From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 76A813987410; Wed, 16 Sep 2020 19:21:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76A813987410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600284064; bh=UQGXtKOHuUS19opVPLym/NGjzNWSeqWx84Tj6kjPEO4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UuV1BtQcjj4zj99lN6xNnWAmttvpMQzblRznecXin2AoygSneVTrsqZSkDQ4ALlhC niI+W8Z0DpgoyRUbraInuz5GDjlxgtzjoFatRHkkSHrKx2rF6/L81JsCvKFoaztRDv MuXB1VlbIInzw+YY0rCpqHqG/1Izt6OeBajDHYPo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/94755] [9/10/11 Regression] internal compiler error: Segmentation fault Date: Wed, 16 Sep 2020 19:21:04 +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: Wed, 16 Sep 2020 19:21:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94755 --- Comment #3 from CVS Commits --- The releases/gcc-9 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:d6a341eb9170fdb21aee235142d1f09e6dc5c5cd commit r9-8886-gd6a341eb9170fdb21aee235142d1f09e6dc5c5cd 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. (cherry picked from commit 26d76be7af6db75aaab662f4e93395f4ff8acb38)=