• Paul Eggert's avatar
    Fix performance regression with gcc -O0 · 09663d9b
    Paul Eggert authored
    This fixes the smaller performance hit that I noted in:
    https://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00357.html
    * src/alloc.c (macro_XPNTR_OR_SYMBOL_OFFSET, macro_XPNTR):
    * src/puresize.h (puresize_h_PURE_P)
    (puresize_h_CHECK_IMPURE):
    New macros, with the old contents of the functions.
    * src/alloc.c (XPNTR_OR_SYMBOL_OFFSET, XPNTR):
    * src/puresize.h (PURE_P, CHECK_IMPURE):
    Use the new macros.  Also macros, if DEFINE_KEY_OPS_AS_MACROS.
    * src/conf_post.h (ATTRIBUTE_UNUSED):
    * src/lisp.h (DEFINE_KEY_OPS_AS_MACROS): New macros.
    09663d9b
puresize.h 3.36 KB