diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-05-13 12:43:13 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-05-14 11:10:02 -0700 |
commit | cf5457764c1288ee34e01d82deb596950fc9f885 (patch) | |
tree | 5cb2e0ebca40ab00f292c744149ac894ed76bbc5 /autogen.sh | |
parent | 202ff53da267f9fa15f438e9c38603bbead6e890 (diff) | |
download | emacs-cf5457764c1288ee34e01d82deb596950fc9f885.tar.gz emacs-cf5457764c1288ee34e01d82deb596950fc9f885.tar.bz2 emacs-cf5457764c1288ee34e01d82deb596950fc9f885.zip |
Backport: fix broken build on m68k
The GCC + valgrind fix caused the m68k build to fail (Bug#35711).
Simplify string allocation a bit to make similar problems less
likely in the future.
* src/alloc.c (sdata, SDATA_NBYTES, SDATA_DATA) [GC_CHECK_STRING_BYTES]:
Use the same implementation as with !GC_CHECK_STRING_BYTES,
as the special case is no longer needed.
(SDATA_ALIGN): New constant.
(SDATA_SIZE): Remove this macro, replacing with ...
(sdata_size): ... this new function. All uses changed.
Properly account for sizes and alignments even in the m68k case,
and even if GC_CHECK_STRING_BYTES is not defined.
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions