1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 14:01:43 -08:00
emacs/lib-src
Paul Eggert 9baeed3514 Improve stack-top heuristic
This is needed for gcc -Os -flto on x86-64; otherwise, GC misses part
of the stack when scanning for heap roots, causing Emacs to crash
later (Bug#28213).  The problem is that Emacs's hack for getting an
address near the stack top does not work when link-time optimization
moves stack variables around.
* configure.ac (HAVE___BUILTIN_FRAME_ADDRESS): New macro.
* lib-src/make-docfile.c (DEFUN_noinline): New constant.
(write_globals, scan_c_stream): Support noinline.
* src/alloc.c (NEAR_STACK_TOP): New macro.
(SET_STACK_TOP_ADDRESS): Use it.
(flush_stack_call_func, Fgarbage_collect): Now noinline.
2017-08-29 14:58:49 -07:00
..
ChangeLog.1 Update copyright year to 2017 2016-12-31 19:42:26 -08:00
COPYING
ctags.c Port ctags+etags build to Sun C 5.12. 2014-05-18 11:57:04 -07:00
ebrowse.c Use unlocked stdio more systematically 2017-06-22 11:22:53 -07:00
emacsclient.c Revert "Add support for arguments in ALTERNATE_EDITOR to emacsclient" 2017-08-07 21:58:55 +01:00
etags.c Fix the MS-Windows build 2017-08-17 17:43:19 +03:00
hexl.c Use unlocked stdio more systematically 2017-06-22 11:22:53 -07:00
make-docfile.c Improve stack-top heuristic 2017-08-29 14:58:49 -07:00
Makefile.in ; lib-src/Makefile.in (exp_archlibdir): Drop extra '&&' from previous commit 2017-03-24 20:09:58 -04:00
movemail.c Use unlocked stdio more systematically 2017-06-22 11:22:53 -07:00
ntlib.c Use Gnulib 'tempname' on MS-Windows 2017-08-12 11:29:37 +03:00
ntlib.h Use Gnulib 'tempname' on MS-Windows 2017-08-12 11:29:37 +03:00
pop.c Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
pop.h Update copyright year to 2017 2016-12-31 19:42:26 -08:00
profile.c Use unlocked stdio more systematically 2017-06-22 11:22:53 -07:00
rcs2log Fix copyright years by hand 2017-01-01 04:01:41 +00:00
README
update-game-score.c Use unlocked stdio more systematically 2017-06-22 11:22:53 -07:00

This directory contains the source code for the architecture-dependent
files that go in ${archlibdir}.  At present, these are mostly utility
programs used by GNU Emacs.