From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1427F3858418; Tue, 21 Nov 2023 19:45:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1427F3858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700595930; bh=iUkn59vNVrUD+BJlw+y7B3WOpFoUbqK5n472PpsPSog=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wox9njOvJCVdiyxFXgwYKpAhlocIXjZYKw04yaLYosbP8Z4NdacfSnWLwUpJeV/FO dPII91AyU6yWAiabmJe8093ge/NhD4dGfp5XcoltNRBMyV67f8vOsLQVJ+nT5L679L 3NiNNP4XCa4KIM64T/FG2GXWTp2aM5bscSnrYB0k= From: "jemarch at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/112656] btf: function prototypes generated with name Date: Tue, 21 Nov 2023 19:45:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jemarch 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: 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=3D112656 --- Comment #2 from Jose E. Marchesi --- The btf_collect_datasec function in btf2out.cc traverses the cgraph and, for each function, transforms its CTF_K_FUNCTION into a pair of BTF_KIND_FUNC_P= ROTO and BTF_KIND_FUNC. But if the function is inlined I don't think the transformation is performed. Thats probably why no BTF_KIND_FUNC is genera= ted for the function with inline enabled.=