Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <andrii@xxxxxxxxxx>: On Tue, 13 Feb 2024 17:35:43 +0000 you wrote: > Due to internal differences between LLVM and GCC the current > implementation for the CO-RE macros does not fit GCC parser, as it will > optimize those expressions even before those would be accessible by the > BPF backend. > > As examples, the following would be optimized out with the original > definitions: > - As enums are converted to their integer representation during > parsing, the IR would not know how to distinguish an integer > constant from an actual enum value. > - Types need to be kept as temporary variables, as the existing type > casts of the 0 address (as expanded for LLVM), are optimized away by > the GCC C parser, never really reaching GCCs IR. > > [...] Here is the summary with links: - [v2,bpf-next] libbpf: add support to GCC in CORE macro definitions https://git.kernel.org/bpf/bpf-next/c/12bbcf8e840f You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html