]> git.eshelyaron.com Git - emacs.git/commitdiff
Micro-optimize sfnt_interpret_trap
authorPo Lu <luangruo@yahoo.com>
Sat, 9 Sep 2023 02:00:17 +0000 (10:00 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 9 Sep 2023 02:00:17 +0000 (10:00 +0800)
* src/sfnt.c (AVOID) [TEST]: Define to its standard value in
lisp.h.
(sfnt_interpret_trap): Label AVOID.

src/sfnt.c

index efdf7b7f7649cad03832456dfaac20ef522c87f7..ae7660a456eb12318cc0ae3c3f8b9a7b82203320 100644 (file)
@@ -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)
 {