diff options
| author | Paul Eggert | 2016-01-30 14:20:57 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-01-30 15:26:08 -0800 |
| commit | 7fdc3cf046ee112b883752ea15ca8cb05444d12f (patch) | |
| tree | 3656fb91c2100d280d0a70d3b81ead2a63ed317e /src/gmalloc.c | |
| parent | a4817d834e7d125d31049dfb6fd0a0df4782bad0 (diff) | |
| download | emacs-7fdc3cf046ee112b883752ea15ca8cb05444d12f.tar.gz emacs-7fdc3cf046ee112b883752ea15ca8cb05444d12f.zip | |
Build lib/e-*.o only on platforms that need it
* configure.ac (hybrid malloc): Simplify configuration.
(SHEAP_OBJ): Remove; no longer needed.
(HYBRID_MALLOC): New var. Subst it.
(HYBRID_MALLOC_LIB): New Automake conditional.
* lib/Makefile.am (noinst_LIBRARIES): Add libegnu.a only if
HYBRID_MALLOC_LIB.
(libegnu_a_CPPFLAGS): Omit AM_CPPFLAGS; not needed.
(MOSTLYCLEANFILES): Add libegnu.a.
* src/Makefile.in (SHEAP_OBJ): Remove.
(HYBRID_MALLOC): New macro.
(base_obj): Use it to conditionally add sheap.o.
(LIBEGNU_ARCHIVE): New macro.
($(LIBEGNU_ARCHIVE)): New rule, replacing $(lib)/libegnu.a.
All uses of the latter replaced by the former.
* src/alloc.c (USE_ALIGNED_ALLOC): Simplify configuration.
Correct misspelling ALIGNED_ALLOC to HAVE_ALIGNED_ALLOC.
* src/gmalloc.c: Update comment.
* src/lisp.h (aligned_alloc)
[!DOUG_LEA_MALLOC && !HYBRID_MALLOC && !SYSTEM_MALLOC]:
New decl.
(Bug#22086)
Diffstat (limited to 'src/gmalloc.c')
| -rw-r--r-- | src/gmalloc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c index 4feff83a2d1..ca862767bb2 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c | |||
| @@ -65,13 +65,7 @@ extern void *__default_morecore (ptrdiff_t); | |||
| 65 | however, will use the system malloc, realloc.... In other source | 65 | however, will use the system malloc, realloc.... In other source |
| 66 | files, malloc, realloc... are renamed hybrid_malloc, | 66 | files, malloc, realloc... are renamed hybrid_malloc, |
| 67 | hybrid_realloc... via macros in conf_post.h. hybrid_malloc and | 67 | hybrid_realloc... via macros in conf_post.h. hybrid_malloc and |
| 68 | friends are wrapper functions defined later in this file. | 68 | friends are wrapper functions defined later in this file. */ |
| 69 | aligned_alloc is defined as a macro only in alloc.c. | ||
| 70 | |||
| 71 | As of this writing (August 2014), Cygwin is the only platform on | ||
| 72 | which HYBRID_MACRO is defined. Any other platform that wants to | ||
| 73 | define it will have to define the macros DUMPED and | ||
| 74 | ALLOCATED_BEFORE_DUMPING, defined below for Cygwin. */ | ||
| 75 | #undef malloc | 69 | #undef malloc |
| 76 | #undef realloc | 70 | #undef realloc |
| 77 | #undef calloc | 71 | #undef calloc |