https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69759
--- Comment #3 from Andreas Schwab <sch...@linux-m68k.org> --- The manpage says, "On many systems alloca() cannot be used inside the list of arguments of a function call", so your function bar is not portable.