From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF6D2385DC26; Mon, 4 Dec 2023 10:01:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF6D2385DC26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701684079; bh=MAO0o+kgNidD9LBP9DMKKvadLYAgNBng1dYDcnp7bJo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dwDopc6lsdMp5xuGNQSA/PFzZTsCiiDP34PFDws8EiCRhW5X5k1PQxpXweWc7Vp3M uIqOSntaeNXYo+7r00FcNYAH4pNI3lWrnQ+/oauCpnSDlVRlFSMBaymLzHycdSJ5sX cXYk4PBne55mef1tWqPHxXHa5jzHAekD5cit/cVE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/112656] btf: function prototypes generated with name Date: Mon, 04 Dec 2023 10:01:18 +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: btf-debug, wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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 #8 from GCC Commits --- The master branch has been updated by Indu Bhagat : https://gcc.gnu.org/g:b6abc5dbfa5342347828b9feb4d9060071ff819c commit r14-6112-gb6abc5dbfa5342347828b9feb4d9060071ff819c Author: Indu Bhagat Date: Mon Dec 4 01:57:34 2023 -0800 BTF: fix PR debug/112656 PR debug/112656 - btf: function prototypes generated with name With this patch, all BTF_KIND_FUNC_PROTO will appear anonymous in the generated BTF section. As noted in the discussion in the bugzilla, the number of BTF_KIND_FUNC_PROTO types output varies across targets (BPF with -mco-re vs non-BPF targets). Hence the check in the test case merely checks that all BTF_KIND_FUNC_PROTO appear anonymous. gcc/ChangeLog: PR debug/112656 * btfout.cc (btf_asm_type): Fixup ctti_name for all BTF types of kind BTF_KIND_FUNC_PROTO. gcc/testsuite/ChangeLog: PR debug/112656 * gcc.dg/debug/btf/btf-function-7.c: New test.=