]> code.delx.au - gnu-emacs/commit
Fix performance regression with gcc -O0
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Dec 2015 03:27:51 +0000 (19:27 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Dec 2015 03:28:53 +0000 (19:28 -0800)
commit09663d9b91803882508bd805581b95f8990eb441
treea42fd5bacc97e94c2f60ee801cdc908b15b2df9a
parent95a5c23f741f42c6f68e283570cdce10b1946296
Fix performance regression with gcc -O0

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.
src/alloc.c
src/conf_post.h
src/lisp.h
src/puresize.h