From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A580E3858D32; Mon, 16 Jan 2023 22:07:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A580E3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673906855; bh=8sHmpfQP+5hVe7Q2+ZLPD1lJ6HsZKK9uNHtiNPV5Qn0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TRBzoRf6jcrdarBSgjoiDycVNI5Izx/b86UmQVCrg1eURPRZp+Q92XVSP+IFUxBJX KjMrmMEiklVql73klLragFUxSfxTTM05p2o0BYVr0EUSQATHYCxX8MZRnHKCHb283Q hYSaCZZ50k5Ut+Dmt75zllAsXsZ89p1WfAraRVtw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/108426] [13 regression] SEGV in contains_struct_check Date: Mon, 16 Jan 2023 22:07:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108426 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > Confirmed. > The following builtins are missing from the go front-end: > BUILT_IN_CLZL > BUILT_IN_CTZL >=20 > The {,LL} versions are there but not the L version. This should fix that: diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index a4a0e5d903e..eea361b4f70 100644 --- a/gcc/go/go-gcc.cc +++ b/gcc/go/go-gcc.cc @@ -627,6 +627,11 @@ Gcc_backend::Gcc_backend() unsigned_type_node, NULL_TREE), builtin_const); + this->define_builtin(BUILT_IN_CTZL, "__builtin_ctzl", "ctzl", + build_function_type_list(integer_type_node, + long_unsigned_type_node, + NULL_TREE), + builtin_const); this->define_builtin(BUILT_IN_CTZLL, "__builtin_ctzll", "ctzll", build_function_type_list(integer_type_node, long_long_unsigned_type_nod= e, @@ -637,6 +642,11 @@ Gcc_backend::Gcc_backend() unsigned_type_node, NULL_TREE), builtin_const); + this->define_builtin(BUILT_IN_CLZL, "__builtin_clzl", "clzl", + build_function_type_list(integer_type_node, + long_unsigned_type_node, + NULL_TREE), + builtin_const); this->define_builtin(BUILT_IN_CLZLL, "__builtin_clzll", "clzll", build_function_type_list(integer_type_node, long_long_unsigned_type_nod= e,=