From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 68FFC3852231; Wed, 23 Nov 2022 17:43:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68FFC3852231 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669225403; bh=/Gvqr8s14Qfdt52fgYNHegfGl7oQuWjlWQsckJiWDNU=; h=From:To:Subject:Date:From; b=r8SfDucDYgJAifwrjnK4yJkkDwBZNHH5KBWHTwElv0Ezzko38jsTqEcltnN19SVOf RquJuSHSsnkTKnAYikFKMn2Bl4WHKpiS8Uk0PWkMB3kYq7BIN9rG8zbTOxMv1fSqNv mCnyzYTgNVxvwz0TYxv5b4yYQjrZDCBG3e2QrWIw= From: "gabravier at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107845] New: __builtin_init_trampoline ICEs on invalid arguments Date: Wed, 23 Nov 2022 17:43:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gabravier at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D107845 Bug ID: 107845 Summary: __builtin_init_trampoline ICEs on invalid arguments Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gabravier at gmail dot com Target Milestone: --- void f() { __builtin_init_trampoline(0, 0, 0); } This crashes GCC with the following error: during RTL pass: expand : In function 'f': :3:5: internal compiler error: in expand_builtin_init_trampoline, at builtins.cc:5683 3 | __builtin_init_trampoline(0, 0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x2008dee internal_error(char const*, ...) ???:0 0x95c468 fancy_abort(char const*, int, char const*) ???:0 0xac9c55 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ???:0 0xc1031c expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Compiler returned: 1 It looks like `expand_builtin_init_trampoline` just uses `gcc_assert` to ch= eck its arguments instead of the proper error handling other builtins do=