From ec097d85ff08b07bf5c9a59e183a959c004aae35 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 9 Sep 2023 10:00:17 +0800 Subject: [PATCH] Micro-optimize sfnt_interpret_trap * src/sfnt.c (AVOID) [TEST]: Define to its standard value in lisp.h. (sfnt_interpret_trap): Label AVOID. --- src/sfnt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sfnt.c b/src/sfnt.c index efdf7b7f764..ae7660a456e 100644 --- a/src/sfnt.c +++ b/src/sfnt.c @@ -93,6 +93,9 @@ xfree (void *ptr) /* Needed for tests. */ #define ARRAYELTS(arr) (sizeof (arr) / sizeof (arr)[0]) +/* Also necessary. */ +#define AVOID _Noreturn ATTRIBUTE_COLD void + #else #define TEST_STATIC #include "lisp.h" @@ -5805,7 +5808,7 @@ enum sfnt_interpreter_run_context After this is called, it is probably okay to reuse INTERPRETER. However, instructions must always be reloaded. */ -_Noreturn static void +static AVOID sfnt_interpret_trap (struct sfnt_interpreter *interpreter, const char *reason) { -- 2.39.5