aboutsummaryrefslogtreecommitdiffstats
path: root/config.bat
diff options
context:
space:
mode:
authorPaul Eggert2012-07-28 16:05:32 -0700
committerPaul Eggert2012-07-28 16:05:32 -0700
commite32a579975bc219bc24d403deeb1fa89187fc51e (patch)
tree957a729b7f4eb64980359a57828f02d29e6758e7 /config.bat
parent01bd1b0df605d644ae31e8f1f81d926a5d8c7099 (diff)
downloademacs-e32a579975bc219bc24d403deeb1fa89187fc51e.tar.gz
emacs-e32a579975bc219bc24d403deeb1fa89187fc51e.zip
Use Gnulib stdalign and environ modules (Bug#9772, Bug#9960).
* .bzrignore: Add lib/stdalign.h. * config.bat: Do not set NO_DECL_ALIGN; no longer needed. Copy lib/stdalign.in.h to lib/stdalign.in-h as needed. * configure.ac (HAVE_ATTRIBUTE_ALIGNED): Remove the code that fiddles with this, as gnulib now does this for us. * admin/merge-gnulib: Add environ, stdalign. * m4/environ.m4: New file, from gnulib. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * lib/stdalign.in.h, m4/stdalign.m4: New files, from gnulib. * sed2v2.inp (HAVE_ATTRIBUTE_ALIGNED): Remove edit. * sedlibmk.inp (STDALIGN_H, @GL_GENERATE_STDALIGN_H_TRUE@) (GL_GENERATE_STDALIGN_H_FALSE): New edits. * nt/config.nt (HAVE_ATTRIBUTE_ALIGNED): Remove. * src/alloc.c (XMALLOC_BASE_ALIGNMENT, GC_POINTER_ALIGNMENT, pure_alloc): Simplify by using alignof. (pure_alloc) [! USE_LSB_TAG]: Don't over-align EMACS_INT values. * src/lisp.h: Include <stdalign.h>. (GCALIGNMENT): New macro and constant. (DECL_ALIGN): Remove. All uses replaced by alignas (GCALIGNMENT). (USE_LSB_TAG): ifdef on alignas, not on DECL_ALIGN. (stdalign): New macro, if not already defined.
Diffstat (limited to 'config.bat')
-rw-r--r--config.bat18
1 files changed, 1 insertions, 17 deletions
diff --git a/config.bat b/config.bat
index 4803ad899c1..d3443d450d6 100644
--- a/config.bat
+++ b/config.bat
@@ -161,22 +161,6 @@ if exist config.in sed -f ../msdos/sed2x.inp < config.in > config.tmp
161if exist ..\autogen\config.in sed -f ../msdos/sed2x.inp < ..\autogen\config.in > config.tmp 161if exist ..\autogen\config.in sed -f ../msdos/sed2x.inp < ..\autogen\config.in > config.tmp
162:src4 162:src4
163sed -f ../msdos/sed2v2.inp <config.tmp >config.h2 163sed -f ../msdos/sed2v2.inp <config.tmp >config.h2
164Rem See if DECL_ALIGN can be supported with this GCC
165rm -f junk.c junk.o junk junk.exe
166echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c
167rem Two percent signs because it is a special character for COMMAND.COM/CMD
168rem Filter thru Sed because "&" is special for CMD.EXE
169echo int main(void) { return (unsigned long)"&"foo %% 8; } | sed "s/.&./\&/" >>junk.c
170gcc -o junk junk.c
171if not exist junk.exe coff2exe junk
172junk
173If Not ErrorLevel 1 Goto alignOk
174Echo WARNING: Your GCC does not support 8-byte aligned variables.
175Echo WARNING: Therefore Emacs cannot support buffers larger than 128MB.
176rem The following line disables DECL_ALIGN which in turn disables USE_LSB_TAG
177rem For details see lisp.h where it defines USE_LSB_TAG
178echo #define NO_DECL_ALIGN >>config.h2
179:alignOk
180Rem See if they have libxml2 later than v2.2.0 installed 164Rem See if they have libxml2 later than v2.2.0 installed
181Echo Checking whether libxml2 v2.2.1 or later is installed ... 165Echo Checking whether libxml2 v2.2.1 or later is installed ...
182rm -f junk.c junk.o junk junk.exe 166rm -f junk.c junk.o junk junk.exe
@@ -281,6 +265,7 @@ Rem Rename files like djtar on plain DOS filesystem would.
281If Exist build-aux\snippet\c++defs.h update build-aux/snippet/c++defs.h build-aux/snippet/cxxdefs.h 265If Exist build-aux\snippet\c++defs.h update build-aux/snippet/c++defs.h build-aux/snippet/cxxdefs.h
282If Exist alloca.in.h update alloca.in.h alloca.in-h 266If Exist alloca.in.h update alloca.in.h alloca.in-h
283If Exist getopt.in.h update getopt.in.h getopt.in-h 267If Exist getopt.in.h update getopt.in.h getopt.in-h
268If Exist stdalign.in.h update stdalign.in.h stdalign.in-h
284If Exist stdbool.in.h update stdbool.in.h stdbool.in-h 269If Exist stdbool.in.h update stdbool.in.h stdbool.in-h
285If Exist signal.in.h update signal.in.h signal.in-h 270If Exist signal.in.h update signal.in.h signal.in-h
286If Exist stdalign.in.h update stdalign.in.h stdalign.in-h 271If Exist stdalign.in.h update stdalign.in.h stdalign.in-h
@@ -346,4 +331,3 @@ set nodebug=
346set djgpp_ver= 331set djgpp_ver=
347set sys_malloc= 332set sys_malloc=
348set libxml= 333set libxml=
349