__builtin_alloca is an compiler intrinsic, not a dynamic symbol
In that case it can be exposed as an inlined function?
Something like:#include <stdlib.h>
void* _alloca(size_t size) {
return __builtin_alloca(size);
}
and put that in a library?
No, since then _builtin_alloca would operate on the alloca function, and not on the function calling alloca.
The only decent way would be full alloca intrinsic support for FPC, but this is involved, since it might clash with many things (exceptions, automated types, interaction with any form of stack frame optimization etc). And then of course many uses (e.g. static classes) will probably lead to more extensions and before you know it you have a third (or fourth if you call objective C) object model inside FPC.
One should really consider if that is a direction you should want. Besides that, there might be some embedded use in the most constrained micros (and then I don't mean luxury limousines like Arduinos), but it is quite rare nowadays, and usually they are not really HLL targets in the first place.
But maybe I am mistaken and there are many great reasons for that that ARE supportable. Enlighten me please :-)