diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-02-02 21:28:45 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-02-02 22:58:20 -0800 |
commit | e080d019f41d2738ba0db721c1b89ea57413439b (patch) | |
tree | 0112d0f4515e2b2bb2aa599ad9137c309d34cc14 /lisp/calc | |
parent | ce88155d83ba84e84321ed69a39c82f40117dd1f (diff) | |
download | emacs-e080d019f41d2738ba0db721c1b89ea57413439b.tar.gz emacs-e080d019f41d2738ba0db721c1b89ea57413439b.tar.bz2 emacs-e080d019f41d2738ba0db721c1b89ea57413439b.zip |
Re-port alloc.c to Solaris sparc and simplify
alloc.c had bitrotted a bit, and used an undefined symbol
stack_base when Emacs was built on Solaris sparc, leading to
compilation failures. Also, code related to __builtin_unwind_init
was unnecessarily duplicated. Fix the bitrot and remove some
duplication.
* src/alloc.c: Remove uses of GC_SAVE_REGISTERS_ON_STACK, since it
is never defined.
(test_setjmp) [!HAVE___BUILTIN_UNWIND_INIT && GC_SETJMP_WORKS]:
Define a no-op dummy, to simplify use.
(test_setjmp) [!GC_SETJMP_WORKS]: Test setjmp_tested_p here rather
than in the caller, to simplify use.
(stacktop_sentry): New type.
(__builtin_unwind_init) [!HAVE___BUILTIN_UNWIND_INIT]: New macro.
(SET_STACK_TOP_ADDRESS): New macro, containing code that was duplicated.
(flush_stack_call_func, Fgarbage_collect): Use it.
(init_alloc): Omit unnecessary initialization.
After dumping, Emacs need not re-test setjmp.
Diffstat (limited to 'lisp/calc')
0 files changed, 0 insertions, 0 deletions