From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 859823858C2D; Mon, 27 Nov 2023 21:43:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 859823858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701121416; bh=DgRkCg7RRREDYoAapR3VfrNPuMYaUGCKc0jsAg0aBfo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VpYBPh2ZdnCGng/tqEAlPXQsp0zACVccLAmWLu9l24II9zbYxBOMsIiTLc8pYLUGk XzVAGV/NhqjzY4Mmc2nwQQHIO0s0MrzRhDQgez7RU+BFC0YDAz6q2qYlSRYp6rM73h xbEpCZHw6usAcJRviTMv/5+7Ij3R77bFC3KYOvIM= From: "ibhagat at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/112656] btf: function prototypes generated with name Date: Mon, 27 Nov 2023 21:43:36 +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: ibhagat 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112656 Indu Bhagat changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ibhagat at gcc dot gnu.org --- Comment #4 from Indu Bhagat --- Noted that the issue is not repeatable on x86_64. $ cat foo.c static int log_event(const char *event_name, void *dev_ptr) { return 666; } int foo () { return log_event ("foobar", ((void *)0)); } $ gcc -O2 -gbtf -c foo.c $ bpftool btf dump file foo.o [1] INT 'int' size=3D4 bits_offset=3D0 nr_bits=3D32 encoding=3DSIGNED [2] FUNC_PROTO '(anon)' ret_type_id=3D1 vlen=3D0 [3] FUNC_PROTO '(anon)' ret_type_id=3D1 vlen=3D2 'event_name' type_id=3D6 'dev_ptr' type_id=3D7 [4] INT 'char' size=3D1 bits_offset=3D0 nr_bits=3D8 encoding=3DSIGNED [5] CONST '(anon)' type_id=3D4 [6] PTR '(anon)' type_id=3D5 [7] PTR '(anon)' type_id=3D0 [8] FUNC 'foo' type_id=3D2 linkage=3Dglobal [9] FUNC 'log_event' type_id=3D3 linkage=3Dstatic=