1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 22:20:52 -08:00

* Work around GCC bug affecting Garbage Collection (bug#65727).

* src/lisp.h (flush_stack_call_func): Prevent GCC sibling call
optimization to run with an asm inline.
This commit is contained in:
Andrea Corallo 2024-05-18 08:59:17 +02:00
parent db039399cc
commit 19c983dded

View file

@ -4479,6 +4479,12 @@ flush_stack_call_func (void (*func) (void *arg), void *arg)
{
__builtin_unwind_init ();
flush_stack_call_func1 (func, arg);
/* Work around GCC sibling call optimization making
'__builtin_unwind_init' ineffective (bug#65727).
See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115132>. */
#if defined __GNUC__ && !defined __clang__
asm ("");
#endif
}
extern void garbage_collect (void);