As GCC15 is now strict on dynamic function as
    int *func()
to mean exactly zero arguments via its default -std=gnu23, I'm looking into a dynamic option that would work for C23 and recognized libffi being built as part of GCC and being part of its source tree, which possibly is a way to go (unknown amount of arguments between 0 and 252)

But then I've seen that GCC's in-tree libffi was last updated in 2021, while the current one is from this year.

So I do wonder:

1 Which parts of GCC use libffi?
2 Is it linked in statically for GCC's usage (I'd see no problem via its
  MIT license to put it anywhere)?
3 Is there a reason to _not_ update it in GCC16 to the most current
  version?


Bonus question: for my call of functions with a compile-time unknown amount of arguments for function pointer that is shared - would you suggest to use something else?

Reply via email to