aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2023-09-09 10:00:17 +0800
committerPo Lu2023-09-09 10:00:17 +0800
commitec097d85ff08b07bf5c9a59e183a959c004aae35 (patch)
tree0708bde3f0a79825e5e89e0b9466b433f06b0340 /src
parent285210bee561a2534250f7fed016b409c2febcc5 (diff)
downloademacs-ec097d85ff08b07bf5c9a59e183a959c004aae35.tar.gz
emacs-ec097d85ff08b07bf5c9a59e183a959c004aae35.zip
Micro-optimize sfnt_interpret_trap
* src/sfnt.c (AVOID) [TEST]: Define to its standard value in lisp.h. (sfnt_interpret_trap): Label AVOID.
Diffstat (limited to 'src')
-rw-r--r--src/sfnt.c5
1 files changed, 4 insertions, 1 deletions
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)
93/* Needed for tests. */ 93/* Needed for tests. */
94#define ARRAYELTS(arr) (sizeof (arr) / sizeof (arr)[0]) 94#define ARRAYELTS(arr) (sizeof (arr) / sizeof (arr)[0])
95 95
96/* Also necessary. */
97#define AVOID _Noreturn ATTRIBUTE_COLD void
98
96#else 99#else
97#define TEST_STATIC 100#define TEST_STATIC
98#include "lisp.h" 101#include "lisp.h"
@@ -5805,7 +5808,7 @@ enum sfnt_interpreter_run_context
5805 After this is called, it is probably okay to reuse INTERPRETER. 5808 After this is called, it is probably okay to reuse INTERPRETER.
5806 However, instructions must always be reloaded. */ 5809 However, instructions must always be reloaded. */
5807 5810
5808_Noreturn static void 5811static AVOID
5809sfnt_interpret_trap (struct sfnt_interpreter *interpreter, 5812sfnt_interpret_trap (struct sfnt_interpreter *interpreter,
5810 const char *reason) 5813 const char *reason)
5811{ 5814{