https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112656

Indu Bhagat <ibhagat at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibhagat at gcc dot gnu.org

--- Comment #4 from Indu Bhagat <ibhagat at gcc dot gnu.org> ---
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=4 bits_offset=0 nr_bits=32 encoding=SIGNED
[2] FUNC_PROTO '(anon)' ret_type_id=1 vlen=0
[3] FUNC_PROTO '(anon)' ret_type_id=1 vlen=2
        'event_name' type_id=6
        'dev_ptr' type_id=7
[4] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=SIGNED
[5] CONST '(anon)' type_id=4
[6] PTR '(anon)' type_id=5
[7] PTR '(anon)' type_id=0
[8] FUNC 'foo' type_id=2 linkage=global
[9] FUNC 'log_event' type_id=3 linkage=static

Reply via email to