Speed up builtin_lisp_symbol when not optimizing
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Jan 2024 01:18:23 +0000 (17:18 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Jan 2024 04:02:18 +0000 (20:02 -0800)
commitdf7c6211cb960b88bc0aaef85babf7e9384d5f2e
treee4de866b952553b40acda6c129101aed97fdc5f1
parent7e490dd63979e2695605205f0bb4fa5131f8c2d9
Speed up builtin_lisp_symbol when not optimizing

This should help when building with --enable-checking and
compiling with gcc -O0.  Problem reorted by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2024-01/msg00770.html
* src/lisp.h (lisp_h_builtin_lisp_symbol): New macro,
with a body equivalent in effect to the old ‘builtin_lisp_symbol’
but faster when not optimizing.
(builtin_lisp_symbol): Use it.
If DEFINE_KEY_OPS_AS_MACROS, also define as macro.
src/lisp.h