https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83292

--- Comment #3 from Andrew Church <achurch+gcc at achurch dot org> ---
I use __builtin_return(__builtin_apply(...)) in library function wrappers for
failure injection in tests, so that I don't need to explicitly write out all
the arguments multiple times for each wrapped function.  As such, I don't need
the full functionality of __builtin_apply() in being able to save and later
return an arbitrary value, but it would be useful to have an equivalent to the
combination __builtin_return(__builtin_apply(...)) -- perhaps something which
restored the register/stack state to that at function entry and jumped to the
target function (e.g., jmp *%eax/rax on x86).

Reply via email to