http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60660
Bug ID: 60660 Summary: alloca function for inlines that allocates on caller stack Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: josh at joshtriplett dot org To implement certain helper functions, it would help greatly to have the ability to perform stack allocations in the parent function from an inline function. If the function is guaranteed to be inline (for instance, with always_inline), this seems straightforward. A function like __builtin_alloca_caller() would make it possible to write something like alloca_sprintf safely, without multiple evaluation of the variable arguments as a macro would.