alloca
Allocates memory in the calling function's stack frame, freed automatically when that function returns.
It is fast — one subtraction from the stack pointer — and has a reputation to match. It is in neither the C standard nor POSIX, it cannot report failure, and an oversized request runs straight off the end of the stack. The function also needs a frame pointer, since the offsets to its locals are no longer known at compile time. GCC refuses to inline functions that call it, because an alloca inside a loop would then grow with every iteration.
C99's VLAs do the same job with nicer syntax but are freed at the end of the block. C11 made them optional, and the Linux kernel purged them in 2018. In LLVM IR every local variable is an alloca, but that is a different animal: the mem2reg pass turns most of them into registers straight away.