]> git.eshelyaron.com Git - emacs.git/commit
Remove too-tricky make_lisp_symbol optimization
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Jan 2024 07:35:22 +0000 (23:35 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 24 Jan 2024 18:31:53 +0000 (19:31 +0100)
commit98a34454a4556130b4c24bf768a1ef5e718c6ec5
tree3728494fcf6867c73ef017dc0fd65b317616eb07
parent65363d3f6ad3055091ccd57fb591ff946d1071d8
Remove too-tricky make_lisp_symbol optimization

Simplify optimization for make_lisp_symbol, so that
it’s less tricky and works well enough for gcc -Og or -O2.
* src/lisp.h (lisp_h_builtin_lisp_symbol): Remove.
(builtin_lisp_symbol) [DEFINE_KEY_OPS_AS_MACROS]: Remove.
(make_lisp_symbol_nodebug): New internal static function,
which is like the old make_lisp_symbol but without the eassert.
(make_lisp_symbol, builtin_lisp_symbol): Use it, so that
make_lisp_symbol has the eassert but builtin_lisp_symbol doesn’t.
Co-authored-by: Paul Eggert <eggert@cs.ucla.edu>
(cherry picked from commit 802821b81ac5ad0dee7f26caa519326251b262c1)
src/lisp.h