https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109068
Jose E. Marchesi <jemarch at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Jose E. Marchesi <jemarch at gcc dot gnu.org> --- Fixed by: commit 6103df1e4fae5192c507484b1d32f00c42c70b54 Author: Jose E. Marchesi <jose.march...@oracle.com> Date: Thu Aug 10 10:53:16 2023 +0200 bpf: allow exceeding max num of args in BPF when always_inline BPF currently limits the number of registers used to pass arguments to functions to five registers. There is a check for this at function expansion time. However, if a function is guaranteed to be always inlined (and its body never generated) by virtue of the always_inline attribute, it can "receive" any number of arguments.