From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A12053858407; Thu, 9 Dec 2021 09:50:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A12053858407 From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103622] ICE: Segmentation fault (in altivec_resolve_new_overloaded_builtin) Date: Thu, 09 Dec 2021 09:50:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: error-recovery X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: cc 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: Thu, 09 Dec 2021 09:50:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103622 Kewen Lin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bergner at gcc dot gnu.org, | |linkw at gcc dot gnu.org, | |segher at gcc dot gnu.org, | |wschmidt at gcc dot gnu.org --- Comment #1 from Kewen Lin --- Confirmed, this requires one e300c3 cross build to reproduce: 2944=E2=94=82 for (; instance !=3D NULL; instance =3D instance->nex= t) 2945=E2=94=82 { 2946=E2=94=82 bool mismatch =3D false; 2947=E2=94=9C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80> tree nextparm =3D TYPE_ARG_TYPES (= instance->fntype); 2948=E2=94=82 2949=E2=94=82 for (unsigned int arg_i =3D 0; (gdb) p instance->fntype $1 =3D The overloaded bif fntype for RS6000_INST_VSEEQP relies on type usi_ftype_t= f. rs6000_instance_info[RS6000_INST_VSEEQP].fntype =3D usi_ftype_tf; if (float128_type_node) usi_ftype_tf =3D build_function_type_list ( unsigned_intSI_type_node, float128_type_node, NULL_TREE) But on e300c3 there is no float128 type support (float128_type_node is NULL= ). One thought seems to check instance->fntype first and take (skip) it as mismatch if it's NULL.=