]> git.eshelyaron.com Git - emacs.git/commit
Port to recent gcc -fsanitize=undefined
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Apr 2019 03:34:03 +0000 (20:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Apr 2019 04:16:26 +0000 (21:16 -0700)
commitf67bc3f12b8ebe4ff0d133063e3c41ab772dbd45
treef1f3482421b2358e0d95d1be4a62654c70a49a61
parent3a618e5f89c86bc96925b06647fb33568c8fa2c9
Port to recent gcc -fsanitize=undefined

* src/alloc.c (XPNTR): Add ATTRIBUTE_NO_SANITIZE_UNDEFINED and
remove ATTRIBUTE_UNUSED.  Do not define as a macro, so that
ATTRIBUTE_NO_SANITIZE_UNDEFINED works.
* src/lisp.h (lisp_h_XSYMBOL): Remove.  All uses removed.
With recent GCC the macro does not work with -fsanitize=undefined,
and the macro can be omitted as its only function is to optimize -O0.
src/alloc.c
src/lisp.h