[MPS] Temporarily scan SAFE_ALLOCA'd memory (bug#75754)

This is not a permanent solution, and requires statement expressions.

* src/lisp.h (SAFE_ALLOCA): Define in terms of SAFE_NALLOCA, which
already uses this workaround.
This commit is contained in:
Pip Cet 2025-01-22 18:01:47 +00:00
parent 7009edab10
commit 4fda39cb16

View file

@ -6122,6 +6122,17 @@ void igc_xfree (void *p);
} \
} while (false)
/* Temporarily avoid bug#75754. The code above is painstakingly written
to avoid statement expressions; no easy way to do that in this case,
unfortunately.
FIXME/igc: find a permanent fix for these bugs. */
#undef SAFE_ALLOCA
#define SAFE_ALLOCA(size) \
({ void *buf; \
SAFE_NALLOCA (buf, size, 1); \
buf; })
#endif
/* SAFE_ALLOCA_STRING allocates a C copy of a Lisp string. */