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

            Bug ID: 107844
           Summary: error: argument is not a field access for
                    __builtin_preserve_field_info
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: james.hilliard1 at gmail dot com
  Target Milestone: ---

I'm seeing this error which does not occur in llvm for a bpf
test(test_core_reloc_existence.c) in bpf-next:

In file included from progs/test_core_reloc_existence.c:7:
progs/test_core_reloc_existence.c: In function 'test_core_existence':
/home/buildroot/bpf-next/tools/bpf/resolve_btfids/libbpf/include/bpf/bpf_core_read.h:132:9:
error: argument is not a field access
  132 |         __builtin_preserve_field_info(___bpf_field_ref(field),
BPF_FIELD_EXISTS)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
progs/test_core_reloc_existence.c:66:13: note: in expansion of macro
'bpf_core_field_exists'
   66 |         if (bpf_core_field_exists(struct core_reloc_existence, arr))
      |             ^~~~~~~~~~~~~~~~~~~~~

Reply via email to