aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-05-22 09:20:27 -0700
committerPaul Eggert2012-05-22 09:20:27 -0700
commit34374650303af0e59ab406b516b91f13d7eb28d3 (patch)
tree85bf43c2209e27f9692b261c6cfbf109eb978378
parenta86e87a6ae7341c7b2581e84df8bdd51867b98a3 (diff)
downloademacs-34374650303af0e59ab406b516b91f13d7eb28d3.tar.gz
emacs-34374650303af0e59ab406b516b91f13d7eb28d3.zip
Remove src/m/*.
* configure.in: Remove all mention of src/m/*. (machine, machfile, M_FILE, config_machfile, and_machfile): Remove. All uses removed. (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG) (BITS_PER_LONG_LONG): Move to src/lisp.h. * lib/makefile.w32-in: Remove dependencies on $(EMACS_ROOT)/src/m/intel386.h. * make-dist: Don't make links to src/m. * admin/CPP-DEFINES: Do not mention src/m/*.h. (BITS_PER_EMACS_INT, BITS_PER_LONG, BITS_PER_CHAR) (BITS_PER_SHORT, BITS_PER_INT): Remove. * admin/MAINTAINERS: Remove src/m/. * lib-src/makefile.w32-in: Remove dependencies on $(EMACS_ROOT)/src/m/intel386.h. * msdos/mainmake.v2 (TAGS tags): Don't look at $(CURDIR)/src/m/intel386.h. * nt/config.nt: Do not include "m/intel386.h"; file was removed. (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG): Move to src/lisp.h. (EMACS_INT_MAX): New macro. This directory predates autoconf and is no longer needed nowadays. Move its few remaining bits of functionality to where they're needed. * src/m/README, src/m/alpha.h, src/m/amdx86-64.h, src/m/ia64.h, src/m/ibmrs6000.h: * src/m/ibms390x.h, src/m/intel386.h, src/m/m68k.h, src/m/macppc.h: * src/m/sparc.h, src/m/template.h: Remove. * src/Makefile.in (M_FILE): Remove. All uses removed. * src/alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS): * src/lisp.h (USE_LSB_TAG): * src/mem-limits.h (EXCEEDS_LISP_PTR): Use VAL_MAX, not VALBITS, in #if. * src/lisp.h (EMACS_INT_MAX): New macro, useful in #if. (EMACS_UINT): Define unconditionally now. (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG) (BITS_PER_EMACS_INT): New constants, replacing what used to be in config.h, but not useful in #if. (GCTYPEBITS, VALBITS): Define unconditionally, since m/* files don't define them any more. (VAL_MAX): New macro. (VALMASK): Use it. * src/puresize.h (PURESIZE_RATIO): Use EMACS_INT_MAX, not BITS_PER_EMACS_INT, in #if. * src/s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY) (BROKEN_SIGPOLL): Move here from m/ibmrs6000.h, which was removed. * src/s/gnu-linux.h (ULIMIT_BREAK_VALUE) [__i386__]: * src/s/ms-w32.h (DATA_START): Move here from removed file m/intel386.h. * src/s/gnu.h (NLIST_STRUCT): Remove undef; 'configure' does this. * src/s/irix6-5.h (_LP64): Remove; lisp.h no longer needs this.
-rw-r--r--ChangeLog12
-rw-r--r--admin/CPP-DEFINES7
-rw-r--r--admin/ChangeLog8
-rw-r--r--admin/MAINTAINERS2
-rw-r--r--configure.in168
-rw-r--r--lib-src/ChangeLog6
-rw-r--r--lib-src/makefile.w32-in9
-rw-r--r--lib/makefile.w32-in10
-rwxr-xr-xmake-dist6
-rw-r--r--msdos/ChangeLog5
-rw-r--r--msdos/mainmake.v23
-rw-r--r--nt/ChangeLog8
-rw-r--r--nt/config.nt35
-rw-r--r--src/ChangeLog32
-rw-r--r--src/Makefile.in7
-rw-r--r--src/alloc.c4
-rw-r--r--src/lisp.h45
-rw-r--r--src/m/README7
-rw-r--r--src/m/alpha.h53
-rw-r--r--src/m/amdx86-64.h35
-rw-r--r--src/m/ia64.h32
-rw-r--r--src/m/ibmrs6000.h46
-rw-r--r--src/m/ibms390x.h32
-rw-r--r--src/m/intel386.h29
-rw-r--r--src/m/m68k.h32
-rw-r--r--src/m/macppc.h24
-rw-r--r--src/m/sparc.h30
-rw-r--r--src/m/template.h34
-rw-r--r--src/mem-limits.h2
-rw-r--r--src/puresize.h2
-rw-r--r--src/s/aix4-2.h11
-rw-r--r--src/s/gnu-linux.h6
-rw-r--r--src/s/gnu.h2
-rw-r--r--src/s/irix6-5.h4
-rw-r--r--src/s/ms-w32.h2
35 files changed, 159 insertions, 591 deletions
diff --git a/ChangeLog b/ChangeLog
index f70731e0e67..9da0a32d568 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
12012-05-22 Paul Eggert <eggert@cs.ucla.edu> 12012-05-22 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Remove src/m/*.
4 * configure.in: Remove all mention of src/m/*.
5 (machine, machfile, M_FILE, config_machfile, and_machfile): Remove.
6 All uses removed.
7 (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG)
8 (BITS_PER_LONG_LONG): Move to src/lisp.h.
9 * lib/makefile.w32-in: Remove dependencies on
10 $(EMACS_ROOT)/src/m/intel386.h.
11 * make-dist: Don't make links to src/m.
12
132012-05-22 Paul Eggert <eggert@cs.ucla.edu>
14
3 * Makefile.in (ACLOCAL_INPUTS): Fix up gnulib-comp.m4 name. (Bug#11529) 15 * Makefile.in (ACLOCAL_INPUTS): Fix up gnulib-comp.m4 name. (Bug#11529)
4 Without this further fix, aclocal was being invoked unnecessarily. 16 Without this further fix, aclocal was being invoked unnecessarily.
5 17
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES
index d736f2354f7..c03bf6156ab 100644
--- a/admin/CPP-DEFINES
+++ b/admin/CPP-DEFINES
@@ -63,16 +63,11 @@ USER_FULL_NAME If defined, overrides the default pw->pw_gecos for getting at t
63 63
64** Replace, the definition is trivial: SWITCH_ENUM_CAST 64** Replace, the definition is trivial: SWITCH_ENUM_CAST
65 65
66** Defines from src/m/*.h and src/s/*.h. Some of these might not be used in the code anymore, so they can be removed. The HAVE_* definitions are probably handled by autoconf, so it might be possible to just remove them from src/[sm]/*.h. 66** Defines from src/s/*.h. Some of these might not be used in the code anymore, so they can be removed. The HAVE_* definitions are probably handled by autoconf, so it might be possible to just remove them from src/s/*.h.
67 67
68 68
69AIX 69AIX
70AMPERSAND_FULL_NAME 70AMPERSAND_FULL_NAME
71BITS_PER_EMACS_INT
72BITS_PER_LONG
73BITS_PER_CHAR
74BITS_PER_SHORT
75BITS_PER_INT
76BROKEN_DATAGRAM_SOCKETS 71BROKEN_DATAGRAM_SOCKETS
77BROKEN_FIONREAD 72BROKEN_FIONREAD
78BROKEN_GET_CURRENT_DIR_NAME 73BROKEN_GET_CURRENT_DIR_NAME
diff --git a/admin/ChangeLog b/admin/ChangeLog
index 5ee31127006..c9e9d4a1acc 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,3 +1,11 @@
12012-05-22 Paul Eggert <eggert@cs.ucla.edu>
2
3 Remove src/m/*.
4 * CPP-DEFINES: Do not mention src/m/*.h.
5 (BITS_PER_EMACS_INT, BITS_PER_LONG, BITS_PER_CHAR)
6 (BITS_PER_SHORT, BITS_PER_INT): Remove.
7 * MAINTAINERS: Remove src/m/.
8
12012-05-21 Paul Eggert <eggert@cs.ucla.edu> 92012-05-21 Paul Eggert <eggert@cs.ucla.edu>
2 10
3 Use full name for m4/gnulib-comp.m4. (Bug#11529) 11 Use full name for m4/gnulib-comp.m4. (Bug#11529)
diff --git a/admin/MAINTAINERS b/admin/MAINTAINERS
index bfac347eb15..86d319d65d5 100644
--- a/admin/MAINTAINERS
+++ b/admin/MAINTAINERS
@@ -171,7 +171,6 @@ src/insdel.c
171src/image.c 171src/image.c
172src/lastfile.c 172src/lastfile.c
173src/lread.c 173src/lread.c
174src/m/
175src/macros.c 174src/macros.c
176src/makefile.w32-in 175src/makefile.w32-in
177src/marker.c 176src/marker.c
@@ -220,4 +219,3 @@ src/xmenu.c
220src/xrdb.c 219src/xrdb.c
221src/xselect.c 220src/xselect.c
222src/xterm.c 221src/xterm.c
223
diff --git a/configure.in b/configure.in
index eb5e8482e9b..3a7e42965e8 100644
--- a/configure.in
+++ b/configure.in
@@ -375,8 +375,8 @@ case "${srcdir}" in
375 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; 375 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
376esac 376esac
377 377
378#### Given the configuration name, set machfile and opsysfile to the 378#### Given the configuration name, set opsysfile to the
379#### names of the m/*.h and s/*.h files we should use. 379#### name of s/*.h file we should use.
380 380
381### Canonicalize the configuration name. 381### Canonicalize the configuration name.
382 382
@@ -396,13 +396,11 @@ dnl quotation begins
396 396
397### If you add support for a new configuration, add code to this 397### If you add support for a new configuration, add code to this
398### switch statement to recognize your configuration name and select 398### switch statement to recognize your configuration name and select
399### the appropriate operating system and machine description files. 399### the appropriate operating system file.
400 400
401### You would hope that you could choose an m/*.h file pretty much 401### You would hope that you could choose an s/*.h
402### based on the machine portion of the configuration name, and an s/*.h
403### file based on the operating system portion. However, it turns out 402### file based on the operating system portion. However, it turns out
404### that each m/*.h file is pretty manufacturer-specific - for 403### that each s/*.h file is pretty manufacturer-specific.
405### example mips.h is MIPS
406### So we basically have to have a special case for each 404### So we basically have to have a special case for each
407### configuration name. 405### configuration name.
408### 406###
@@ -412,82 +410,40 @@ dnl quotation begins
412### prepared to handle anything reasonably. If version numbers 410### prepared to handle anything reasonably. If version numbers
413### matter, be sure /etc/MACHINES says something about it. 411### matter, be sure /etc/MACHINES says something about it.
414 412
415machine='' opsys='' unported=no 413opsys='' unported=no
416case "${canonical}" in 414case "${canonical}" in
417 415
418 ## GNU/Linux and similar ports 416 ## GNU/Linux and similar ports
419 *-*-linux* ) 417 *-*-linux* )
420 opsys=gnu-linux 418 opsys=gnu-linux
421 case ${canonical} in
422 alpha*) machine=alpha ;;
423 s390x-*) machine=ibms390x ;;
424 powerpc*) machine=macppc ;;
425 sparc*) machine=sparc ;;
426 ia64*) machine=ia64 ;;
427 m68k*) machine=m68k ;;
428 x86_64*) machine=amdx86-64 ;;
429 esac
430 ;; 419 ;;
431 420
432 ## FreeBSD ports 421 ## FreeBSD ports
433 *-*-freebsd* ) 422 *-*-freebsd* )
434 opsys=freebsd 423 opsys=freebsd
435 case "${canonical}" in
436 alpha*) machine=alpha ;;
437 amd64-*|x86_64-*) machine=amdx86-64 ;;
438 ia64-*) machine=ia64 ;;
439 i[3456]86-*) machine=intel386 ;;
440 powerpc-*) machine=macppc ;;
441 sparc-*) machine=sparc ;;
442 sparc64-*) machine=sparc ;;
443 esac
444 ;; 424 ;;
445 425
446 ## FreeBSD kernel + glibc based userland 426 ## FreeBSD kernel + glibc based userland
447 *-*-kfreebsd*gnu* ) 427 *-*-kfreebsd*gnu* )
448 opsys=gnu-kfreebsd 428 opsys=gnu-kfreebsd
449 case "${canonical}" in
450 alpha*) machine=alpha ;;
451 amd64-*|x86_64-*) machine=amdx86-64 ;;
452 ia64-*) machine=ia64 ;;
453 i[3456]86-*) machine=intel386 ;;
454 powerpc-*) machine=macppc ;;
455 sparc-*) machine=sparc ;;
456 sparc64-*) machine=sparc ;;
457 esac
458 ;; 429 ;;
459 430
460 ## NetBSD ports 431 ## NetBSD ports
461 *-*-netbsd* ) 432 *-*-netbsd* )
462 opsys=netbsd 433 opsys=netbsd
463 case "${canonical}" in
464 alpha*) machine=alpha ;;
465 x86_64-*) machine=amdx86-64 ;;
466 i[3456]86-*) machine=intel386 ;;
467 m68k-*) machine=m68k ;;
468 powerpc-*) machine=macppc ;;
469 sparc*-) machine=sparc ;;
470 esac
471 ;; 434 ;;
472 435
473 ## OpenBSD ports 436 ## OpenBSD ports
474 *-*-openbsd* ) 437 *-*-openbsd* )
475 opsys=openbsd 438 opsys=openbsd
476 case "${canonical}" in
477 alpha*) machine=alpha ;;
478 x86_64-*) machine=amdx86-64 ;;
479 i386-*) machine=intel386 ;;
480 powerpc-*) machine=macppc ;;
481 sparc*) machine=sparc ;;
482 esac
483 ;; 439 ;;
484 440
485 ## Apple Darwin / Mac OS X 441 ## Apple Darwin / Mac OS X
486 *-apple-darwin* ) 442 *-apple-darwin* )
487 case "${canonical}" in 443 case "${canonical}" in
488 i[3456]86-* ) machine=intel386 ;; 444 i[3456]86-* ) ;;
489 powerpc-* ) machine=macppc ;; 445 powerpc-* ) ;;
490 x86_64-* ) machine=amdx86-64 ;; 446 x86_64-* ) ;;
491 * ) unported=yes ;; 447 * ) unported=yes ;;
492 esac 448 esac
493 opsys=darwin 449 opsys=darwin
@@ -510,16 +466,16 @@ case "${canonical}" in
510 466
511 ## IBM machines 467 ## IBM machines
512 rs6000-ibm-aix4.[23]* ) 468 rs6000-ibm-aix4.[23]* )
513 machine=ibmrs6000 opsys=aix4-2 469 opsys=aix4-2
514 ;; 470 ;;
515 powerpc-ibm-aix4.[23]* ) 471 powerpc-ibm-aix4.[23]* )
516 machine=ibmrs6000 opsys=aix4-2 472 opsys=aix4-2
517 ;; 473 ;;
518 rs6000-ibm-aix[56]* ) 474 rs6000-ibm-aix[56]* )
519 machine=ibmrs6000 opsys=aix4-2 475 opsys=aix4-2
520 ;; 476 ;;
521 powerpc-ibm-aix[56]* ) 477 powerpc-ibm-aix[56]* )
522 machine=ibmrs6000 opsys=aix4-2 478 opsys=aix4-2
523 ;; 479 ;;
524 480
525 ## Silicon Graphics machines 481 ## Silicon Graphics machines
@@ -537,9 +493,9 @@ case "${canonical}" in
537 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \ 493 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
538 | x86_64-*-solaris2* | x86_64-*-sunos5*) 494 | x86_64-*-solaris2* | x86_64-*-sunos5*)
539 case "${canonical}" in 495 case "${canonical}" in
540 i[3456]86-*-* ) machine=intel386 ;; 496 i[3456]86-*-* ) ;;
541 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; 497 amd64-*-*|x86_64-*-*) ;;
542 sparc* ) machine=sparc ;; 498 sparc* ) ;;
543 * ) unported=yes ;; 499 * ) unported=yes ;;
544 esac 500 esac
545 case "${canonical}" in 501 case "${canonical}" in
@@ -571,7 +527,6 @@ case "${canonical}" in
571 527
572 ## Intel 386 machines where we don't care about the manufacturer. 528 ## Intel 386 machines where we don't care about the manufacturer.
573 i[3456]86-*-* ) 529 i[3456]86-*-* )
574 machine=intel386
575 case "${canonical}" in 530 case "${canonical}" in
576 *-cygwin ) opsys=cygwin ;; 531 *-cygwin ) opsys=cygwin ;;
577 *-darwin* ) opsys=darwin ;; 532 *-darwin* ) opsys=darwin ;;
@@ -610,11 +565,6 @@ if test $unported = yes; then
610Check `etc/MACHINES' for recognized configuration names.]) 565Check `etc/MACHINES' for recognized configuration names.])
611fi 566fi
612 567
613if test -n "$machine"; then
614 machfile="m/${machine}.h"
615else
616 machfile=
617fi
618opsysfile="s/${opsys}.h" 568opsysfile="s/${opsys}.h"
619 569
620 570
@@ -758,19 +708,6 @@ dnl if test "x$RANLIB" = x; then
758dnl AC_PROG_RANLIB 708dnl AC_PROG_RANLIB
759dnl fi 709dnl fi
760 710
761## Although we're running on an amd64 kernel, we're actually compiling for
762## the x86 architecture. The user should probably have provided an
763## explicit --build to `configure', but if everything else than the kernel
764## is running in i386 mode, we can help them out.
765if test "$machine" = "amdx86-64"; then
766 AC_CHECK_DECL([i386])
767 if test "$ac_cv_have_decl_i386" = "yes"; then
768 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
769 machine=intel386
770 machfile="m/${machine}.h"
771 fi
772fi
773
774AC_PATH_PROG(INSTALL_INFO, install-info) 711AC_PATH_PROG(INSTALL_INFO, install-info)
775AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin) 712AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin)
776AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin) 713AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin)
@@ -941,7 +878,8 @@ esac
941 878
942 879
943C_SWITCH_MACHINE= 880C_SWITCH_MACHINE=
944if test "$machine" = "alpha"; then 881case $canonical in
882 alpha*)
945 AC_CHECK_DECL([__ELF__]) 883 AC_CHECK_DECL([__ELF__])
946 if test "$ac_cv_have_decl___ELF__" = "yes"; then 884 if test "$ac_cv_have_decl___ELF__" = "yes"; then
947 ## With ELF, make sure that all common symbols get allocated to in the 885 ## With ELF, make sure that all common symbols get allocated to in the
@@ -957,7 +895,8 @@ if test "$machine" = "alpha"; then
957 else 895 else
958 UNEXEC_OBJ=unexalpha.o 896 UNEXEC_OBJ=unexalpha.o
959 fi 897 fi
960fi 898 ;;
899esac
961AC_SUBST(C_SWITCH_MACHINE) 900AC_SUBST(C_SWITCH_MACHINE)
962 901
963AC_SUBST(UNEXEC_OBJ) 902AC_SUBST(UNEXEC_OBJ)
@@ -1642,7 +1581,7 @@ case ${HAVE_X11} in
1642 yes ) HAVE_MENUS=yes ;; 1581 yes ) HAVE_MENUS=yes ;;
1643esac 1582esac
1644 1583
1645# Do the opsystem or machine files prohibit the use of the GNU malloc? 1584# Does the opsystem file prohibit the use of the GNU malloc?
1646# Assume not, until told otherwise. 1585# Assume not, until told otherwise.
1647GNU_MALLOC=yes 1586GNU_MALLOC=yes
1648 1587
@@ -3219,13 +3158,7 @@ AC_SUBST(GNUSTEP_CFLAGS)
3219AC_SUBST(CFLAGS) 3158AC_SUBST(CFLAGS)
3220## Used in lwlib/Makefile.in. 3159## Used in lwlib/Makefile.in.
3221AC_SUBST(X_TOOLKIT_TYPE) 3160AC_SUBST(X_TOOLKIT_TYPE)
3222if test -n "${machfile}"; then
3223 M_FILE="\$(srcdir)/${machfile}"
3224else
3225 M_FILE=
3226fi
3227S_FILE="\$(srcdir)/${opsysfile}" 3161S_FILE="\$(srcdir)/${opsysfile}"
3228AC_SUBST(M_FILE)
3229AC_SUBST(S_FILE) 3162AC_SUBST(S_FILE)
3230AC_SUBST(ns_appdir) 3163AC_SUBST(ns_appdir)
3231AC_SUBST(ns_appbindir) 3164AC_SUBST(ns_appbindir)
@@ -3238,10 +3171,6 @@ AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}",
3238 [Define to the canonical Emacs configuration name.]) 3171 [Define to the canonical Emacs configuration name.])
3239AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${ac_configure_args}", 3172AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${ac_configure_args}",
3240 [Define to the options passed to configure.]) 3173 [Define to the options passed to configure.])
3241if test -n "$machfile"; then
3242 AC_DEFINE_UNQUOTED(config_machfile, "${machfile}",
3243 [Define to the used machine dependent file.])
3244fi
3245AC_DEFINE_UNQUOTED(config_opsysfile, "${opsysfile}", 3174AC_DEFINE_UNQUOTED(config_opsysfile, "${opsysfile}",
3246 [Define to the used os dependent file.]) 3175 [Define to the used os dependent file.])
3247 3176
@@ -3420,8 +3349,7 @@ case "$opsys" in
3420 ## #ifndef LD_SWITCH_SYSTEM 3349 ## #ifndef LD_SWITCH_SYSTEM
3421 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) 3350 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
3422 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to: 3351 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
3423 ## not using gcc, darwin system not on an alpha (ie darwin, since 3352 ## not using gcc, darwin.
3424 ## darwin + alpha does not occur).
3425 ## Because this was done in src/Makefile.in, the resulting part of 3353 ## Because this was done in src/Makefile.in, the resulting part of
3426 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link). 3354 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
3427 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS, 3355 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
@@ -3461,12 +3389,12 @@ case "$opsys" in
3461 ## will also work on earlier NetBSD releases. 3389 ## will also work on earlier NetBSD releases.
3462 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;; 3390 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
3463 3391
3464 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says 3392 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
3465 ## MkLinux/LinuxPPC needs this. 3393 ## MkLinux/LinuxPPC needs this.
3466 ## ibms390x only supports opsys = gnu-linux so it can be added here. 3394 ## s390x-* only supports opsys = gnu-linux so it can be added here.
3467 gnu-*) 3395 gnu-*)
3468 case "$machine" in 3396 case "$canonical" in
3469 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;; 3397 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
3470 esac 3398 esac
3471 ;; 3399 ;;
3472esac 3400esac
@@ -3478,7 +3406,7 @@ if test "x$ORDINARY_LINK" = "xyes"; then
3478 AC_DEFINE(ORDINARY_LINK, 1, [Define if the C compiler is the linker.]) 3406 AC_DEFINE(ORDINARY_LINK, 1, [Define if the C compiler is the linker.])
3479 3407
3480## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are: 3408## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
3481## freebsd, gnu-* not on macppc|ibms390x. 3409## freebsd, gnu-* not on powerpc*|s390x*.
3482elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then 3410elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
3483 3411
3484 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure 3412 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
@@ -3586,11 +3514,8 @@ AH_BOTTOM([
3586 3514
3587#define subprocesses 3515#define subprocesses
3588 3516
3589/* Include the os and machine dependent files. */ 3517/* Include the os dependent file. */
3590#include config_opsysfile 3518#include config_opsysfile
3591#ifdef config_machfile
3592# include config_machfile
3593#endif
3594 3519
3595/* GNUstep needs a bit more pure memory. Of the existing knobs, 3520/* GNUstep needs a bit more pure memory. Of the existing knobs,
3596 SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. 3521 SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems.
@@ -3614,34 +3539,6 @@ AH_BOTTOM([
3614#endif 3539#endif
3615#endif 3540#endif
3616 3541
3617/* These default definitions are good for almost all machines.
3618 Any exceptions should override them in m/MACHINE.h.
3619 They must be usable in preprocessor conditionals. */
3620
3621#ifndef BITS_PER_CHAR
3622#define BITS_PER_CHAR 8
3623#endif
3624
3625#ifndef BITS_PER_SHORT
3626#define BITS_PER_SHORT 16
3627#endif
3628
3629#ifndef BITS_PER_INT
3630#define BITS_PER_INT 32
3631#endif
3632
3633#ifndef BITS_PER_LONG
3634#ifdef _LP64
3635#define BITS_PER_LONG 64
3636#else
3637#define BITS_PER_LONG 32
3638#endif
3639#endif
3640
3641#if !defined BITS_PER_LONG_LONG && HAVE_LONG_LONG_INT
3642#define BITS_PER_LONG_LONG 64
3643#endif
3644
3645#include <string.h> 3542#include <string.h>
3646#include <stdlib.h> 3543#include <stdlib.h>
3647 3544
@@ -3709,17 +3606,12 @@ if test "${HAVE_GTK}" = "yes"; then
3709 USE_X_TOOLKIT=GTK 3606 USE_X_TOOLKIT=GTK
3710fi 3607fi
3711 3608
3712and_machfile=
3713if test -n "$machfile"; then
3714 and_machfile=" and \`${machfile}'"
3715fi
3716
3717echo " 3609echo "
3718Configured for \`${canonical}'. 3610Configured for \`${canonical}'.
3719 3611
3720 Where should the build process find the source code? ${srcdir} 3612 Where should the build process find the source code? ${srcdir}
3721 What operating system and machine description files should Emacs use? 3613 What operating system file should Emacs use?
3722 \`${opsysfile}'${and_machfile} 3614 \`${opsysfile}'
3723 What compiler should emacs be built with? ${CC} ${CFLAGS} 3615 What compiler should emacs be built with? ${CC} ${CFLAGS}
3724 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} 3616 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
3725 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} 3617 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 4e0ad922da2..b32e0607c94 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,9 @@
12012-05-22 Paul Eggert <eggert@cs.ucla.edu>
2
3 Remove src/m/*.
4 * makefile.w32-in: Remove dependencies on
5 $(EMACS_ROOT)/src/m/intel386.h.
6
12012-05-22 Glenn Morris <rgm@gnu.org> 72012-05-22 Glenn Morris <rgm@gnu.org>
2 8
3 * Makefile.in (install): Remove unneeded chmods. 9 * Makefile.in (install): Remove unneeded chmods.
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in
index 316e4fb127f..83b818ed6c6 100644
--- a/lib-src/makefile.w32-in
+++ b/lib-src/makefile.w32-in
@@ -354,7 +354,6 @@ SRC = .
354$(BLD)/alloca.$(O) : \ 354$(BLD)/alloca.$(O) : \
355 $(SRC)/alloca.c \ 355 $(SRC)/alloca.c \
356 $(EMACS_ROOT)/src/s/ms-w32.h \ 356 $(EMACS_ROOT)/src/s/ms-w32.h \
357 $(EMACS_ROOT)/src/m/intel386.h \
358 $(EMACS_ROOT)/src/config.h \ 357 $(EMACS_ROOT)/src/config.h \
359 $(EMACS_ROOT)/src/blockinput.h 358 $(EMACS_ROOT)/src/blockinput.h
360 359
@@ -363,7 +362,6 @@ $(BLD)/ctags.$(O) : \
363 $(EMACS_ROOT)/nt/inc/sys/param.h \ 362 $(EMACS_ROOT)/nt/inc/sys/param.h \
364 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 363 $(EMACS_ROOT)/nt/inc/sys/stat.h \
365 $(EMACS_ROOT)/src/s/ms-w32.h \ 364 $(EMACS_ROOT)/src/s/ms-w32.h \
366 $(EMACS_ROOT)/src/m/intel386.h \
367 $(EMACS_ROOT)/lib-src/../src/config.h \ 365 $(EMACS_ROOT)/lib-src/../src/config.h \
368 $(SRC)/ntlib.h \ 366 $(SRC)/ntlib.h \
369 $(EMACS_ROOT)/lib/getopt.h 367 $(EMACS_ROOT)/lib/getopt.h
@@ -372,14 +370,12 @@ $(BLD)/ebrowse.$(O) : \
372 $(SRC)/ebrowse.c \ 370 $(SRC)/ebrowse.c \
373 $(EMACS_ROOT)/lib/min-max.h \ 371 $(EMACS_ROOT)/lib/min-max.h \
374 $(EMACS_ROOT)/src/s/ms-w32.h \ 372 $(EMACS_ROOT)/src/s/ms-w32.h \
375 $(EMACS_ROOT)/src/m/intel386.h \
376 $(EMACS_ROOT)/lib-src/../src/config.h 373 $(EMACS_ROOT)/lib-src/../src/config.h
377 374
378$(BLD)/emacsclient.$(O) : \ 375$(BLD)/emacsclient.$(O) : \
379 $(SRC)/emacsclient.c \ 376 $(SRC)/emacsclient.c \
380 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 377 $(EMACS_ROOT)/nt/inc/sys/stat.h \
381 $(EMACS_ROOT)/src/s/ms-w32.h \ 378 $(EMACS_ROOT)/src/s/ms-w32.h \
382 $(EMACS_ROOT)/src/m/intel386.h \
383 $(EMACS_ROOT)/lib-src/../src/config.h 379 $(EMACS_ROOT)/lib-src/../src/config.h
384 380
385$(BLD)/etags.$(O) : \ 381$(BLD)/etags.$(O) : \
@@ -387,7 +383,6 @@ $(BLD)/etags.$(O) : \
387 $(EMACS_ROOT)/nt/inc/sys/param.h \ 383 $(EMACS_ROOT)/nt/inc/sys/param.h \
388 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 384 $(EMACS_ROOT)/nt/inc/sys/stat.h \
389 $(EMACS_ROOT)/src/s/ms-w32.h \ 385 $(EMACS_ROOT)/src/s/ms-w32.h \
390 $(EMACS_ROOT)/src/m/intel386.h \
391 $(EMACS_ROOT)/lib-src/../src/config.h \ 386 $(EMACS_ROOT)/lib-src/../src/config.h \
392 $(SRC)/ntlib.h \ 387 $(SRC)/ntlib.h \
393 $(EMACS_ROOT)/lib/getopt.h 388 $(EMACS_ROOT)/lib/getopt.h
@@ -395,7 +390,6 @@ $(BLD)/etags.$(O) : \
395$(BLD)/getdate.$(O) : \ 390$(BLD)/getdate.$(O) : \
396 $(SRC)/getdate.c \ 391 $(SRC)/getdate.c \
397 $(EMACS_ROOT)/src/s/ms-w32.h \ 392 $(EMACS_ROOT)/src/s/ms-w32.h \
398 $(EMACS_ROOT)/src/m/intel386.h \
399 $(EMACS_ROOT)/src/config.h \ 393 $(EMACS_ROOT)/src/config.h \
400 $(MSTOOLS_SYS)/types.h 394 $(MSTOOLS_SYS)/types.h
401 395
@@ -415,7 +409,6 @@ $(BLD)/make-path.$(O) : \
415$(BLD)/movemail.$(O) : \ 409$(BLD)/movemail.$(O) : \
416 $(SRC)/movemail.c \ 410 $(SRC)/movemail.c \
417 $(EMACS_ROOT)/src/s/ms-w32.h \ 411 $(EMACS_ROOT)/src/s/ms-w32.h \
418 $(EMACS_ROOT)/src/m/intel386.h \
419 $(EMACS_ROOT)/lib-src/../src/config.h \ 412 $(EMACS_ROOT)/lib-src/../src/config.h \
420 $(EMACS_ROOT)/nt/inc/sys/file.h \ 413 $(EMACS_ROOT)/nt/inc/sys/file.h \
421 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 414 $(EMACS_ROOT)/nt/inc/sys/stat.h \
@@ -439,7 +432,6 @@ $(BLD)/pop.$(O) : \
439$(BLD)/profile.$(O) : \ 432$(BLD)/profile.$(O) : \
440 $(SRC)/profile.c \ 433 $(SRC)/profile.c \
441 $(EMACS_ROOT)/src/s/ms-w32.h \ 434 $(EMACS_ROOT)/src/s/ms-w32.h \
442 $(EMACS_ROOT)/src/m/intel386.h \
443 $(EMACS_ROOT)/lib-src/../src/config.h \ 435 $(EMACS_ROOT)/lib-src/../src/config.h \
444 $(EMACS_ROOT)/lib-src/../src/systime.h 436 $(EMACS_ROOT)/lib-src/../src/systime.h
445 437
@@ -455,7 +447,6 @@ $(BLD)/test-distrib.$(O) : \
455$(BLD)/timer.$(O) : \ 447$(BLD)/timer.$(O) : \
456 $(SRC)/timer.c \ 448 $(SRC)/timer.c \
457 $(EMACS_ROOT)/src/s/ms-w32.h \ 449 $(EMACS_ROOT)/src/s/ms-w32.h \
458 $(EMACS_ROOT)/src/m/intel386.h \
459 $(EMACS_ROOT)/lib-src/../src/config.h 450 $(EMACS_ROOT)/lib-src/../src/config.h
460 451
461# The following dependencies are for supporting parallel builds, where 452# The following dependencies are for supporting parallel builds, where
diff --git a/lib/makefile.w32-in b/lib/makefile.w32-in
index a2870345ad6..8c27f139e76 100644
--- a/lib/makefile.w32-in
+++ b/lib/makefile.w32-in
@@ -67,7 +67,6 @@ $(BLD)/dtoastr.$(O) : \
67 $(SRC)/intprops.h \ 67 $(SRC)/intprops.h \
68 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 68 $(EMACS_ROOT)/nt/inc/sys/stat.h \
69 $(EMACS_ROOT)/src/s/ms-w32.h \ 69 $(EMACS_ROOT)/src/s/ms-w32.h \
70 $(EMACS_ROOT)/src/m/intel386.h \
71 $(EMACS_ROOT)/src/config.h 70 $(EMACS_ROOT)/src/config.h
72 71
73$(BLD)/getopt.$(O) : \ 72$(BLD)/getopt.$(O) : \
@@ -78,7 +77,6 @@ $(BLD)/getopt.$(O) : \
78 $(EMACS_ROOT)/nt/inc/unistd.h \ 77 $(EMACS_ROOT)/nt/inc/unistd.h \
79 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 78 $(EMACS_ROOT)/nt/inc/sys/stat.h \
80 $(EMACS_ROOT)/src/s/ms-w32.h \ 79 $(EMACS_ROOT)/src/s/ms-w32.h \
81 $(EMACS_ROOT)/src/m/intel386.h \
82 $(EMACS_ROOT)/src/config.h 80 $(EMACS_ROOT)/src/config.h
83 81
84$(BLD)/getopt1.$(O) : \ 82$(BLD)/getopt1.$(O) : \
@@ -87,7 +85,6 @@ $(BLD)/getopt1.$(O) : \
87 $(SRC)/getopt_int.h \ 85 $(SRC)/getopt_int.h \
88 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 86 $(EMACS_ROOT)/nt/inc/sys/stat.h \
89 $(EMACS_ROOT)/src/s/ms-w32.h \ 87 $(EMACS_ROOT)/src/s/ms-w32.h \
90 $(EMACS_ROOT)/src/m/intel386.h \
91 $(EMACS_ROOT)/src/config.h 88 $(EMACS_ROOT)/src/config.h
92 89
93$(BLD)/strftime.$(O) : \ 90$(BLD)/strftime.$(O) : \
@@ -96,14 +93,12 @@ $(BLD)/strftime.$(O) : \
96 $(EMACS_ROOT)/nt/inc/stdbool.h \ 93 $(EMACS_ROOT)/nt/inc/stdbool.h \
97 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 94 $(EMACS_ROOT)/nt/inc/sys/stat.h \
98 $(EMACS_ROOT)/src/s/ms-w32.h \ 95 $(EMACS_ROOT)/src/s/ms-w32.h \
99 $(EMACS_ROOT)/src/m/intel386.h \
100 $(EMACS_ROOT)/src/config.h 96 $(EMACS_ROOT)/src/config.h
101 97
102$(BLD)/time_r.$(O) : \ 98$(BLD)/time_r.$(O) : \
103 $(SRC)/time_r.c \ 99 $(SRC)/time_r.c \
104 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 100 $(EMACS_ROOT)/nt/inc/sys/stat.h \
105 $(EMACS_ROOT)/src/s/ms-w32.h \ 101 $(EMACS_ROOT)/src/s/ms-w32.h \
106 $(EMACS_ROOT)/src/m/intel386.h \
107 $(EMACS_ROOT)/src/config.h 102 $(EMACS_ROOT)/src/config.h
108 103
109$(BLD)/md5.$(O) : \ 104$(BLD)/md5.$(O) : \
@@ -112,7 +107,6 @@ $(BLD)/md5.$(O) : \
112 $(EMACS_ROOT)/nt/inc/stdint.h \ 107 $(EMACS_ROOT)/nt/inc/stdint.h \
113 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 108 $(EMACS_ROOT)/nt/inc/sys/stat.h \
114 $(EMACS_ROOT)/src/s/ms-w32.h \ 109 $(EMACS_ROOT)/src/s/ms-w32.h \
115 $(EMACS_ROOT)/src/m/intel386.h \
116 $(EMACS_ROOT)/src/config.h 110 $(EMACS_ROOT)/src/config.h
117 111
118$(BLD)/sha1.$(O) : \ 112$(BLD)/sha1.$(O) : \
@@ -121,7 +115,6 @@ $(BLD)/sha1.$(O) : \
121 $(EMACS_ROOT)/nt/inc/stdint.h \ 115 $(EMACS_ROOT)/nt/inc/stdint.h \
122 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 116 $(EMACS_ROOT)/nt/inc/sys/stat.h \
123 $(EMACS_ROOT)/src/s/ms-w32.h \ 117 $(EMACS_ROOT)/src/s/ms-w32.h \
124 $(EMACS_ROOT)/src/m/intel386.h \
125 $(EMACS_ROOT)/src/config.h 118 $(EMACS_ROOT)/src/config.h
126 119
127$(BLD)/sha256.$(O) : \ 120$(BLD)/sha256.$(O) : \
@@ -130,7 +123,6 @@ $(BLD)/sha256.$(O) : \
130 $(EMACS_ROOT)/nt/inc/stdint.h \ 123 $(EMACS_ROOT)/nt/inc/stdint.h \
131 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 124 $(EMACS_ROOT)/nt/inc/sys/stat.h \
132 $(EMACS_ROOT)/src/s/ms-w32.h \ 125 $(EMACS_ROOT)/src/s/ms-w32.h \
133 $(EMACS_ROOT)/src/m/intel386.h \
134 $(EMACS_ROOT)/src/config.h 126 $(EMACS_ROOT)/src/config.h
135 127
136$(BLD)/sha512.$(O) : \ 128$(BLD)/sha512.$(O) : \
@@ -139,7 +131,6 @@ $(BLD)/sha512.$(O) : \
139 $(EMACS_ROOT)/nt/inc/stdint.h \ 131 $(EMACS_ROOT)/nt/inc/stdint.h \
140 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 132 $(EMACS_ROOT)/nt/inc/sys/stat.h \
141 $(EMACS_ROOT)/src/s/ms-w32.h \ 133 $(EMACS_ROOT)/src/s/ms-w32.h \
142 $(EMACS_ROOT)/src/m/intel386.h \
143 $(EMACS_ROOT)/src/config.h 134 $(EMACS_ROOT)/src/config.h
144 135
145$(BLD)/filemode.$(O) : \ 136$(BLD)/filemode.$(O) : \
@@ -147,7 +138,6 @@ $(BLD)/filemode.$(O) : \
147 $(SRC)/filemode.h \ 138 $(SRC)/filemode.h \
148 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 139 $(EMACS_ROOT)/nt/inc/sys/stat.h \
149 $(EMACS_ROOT)/src/s/ms-w32.h \ 140 $(EMACS_ROOT)/src/s/ms-w32.h \
150 $(EMACS_ROOT)/src/m/intel386.h \
151 $(EMACS_ROOT)/src/config.h 141 $(EMACS_ROOT)/src/config.h
152 142
153# The following dependencies are for supporting parallel builds, where 143# The following dependencies are for supporting parallel builds, where
diff --git a/make-dist b/make-dist
index 0a12a630526..ead1fa544ec 100755
--- a/make-dist
+++ b/make-dist
@@ -293,7 +293,7 @@ for subdir in site-lisp \
293 leim leim/CXTERM-DIC leim/MISC-DIC \ 293 leim leim/CXTERM-DIC leim/MISC-DIC \
294 leim/SKK-DIC leim/ja-dic leim/quail \ 294 leim/SKK-DIC leim/ja-dic leim/quail \
295 build-aux build-aux/snippet \ 295 build-aux build-aux/snippet \
296 src src/m src/s src/bitmaps lib lib-src oldXMenu lwlib \ 296 src src/s src/bitmaps lib lib-src oldXMenu lwlib \
297 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \ 297 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \
298 `find etc lisp admin -type d` \ 298 `find etc lisp admin -type d` \
299 doc doc/emacs doc/misc doc/man doc/lispref doc/lispintro \ 299 doc doc/emacs doc/misc doc/man doc/lispref doc/lispintro \
@@ -370,10 +370,6 @@ echo "Making links to \`src/bitmaps'"
370(cd src/bitmaps 370(cd src/bitmaps
371 ln README *.xbm ../../${tempdir}/src/bitmaps) 371 ln README *.xbm ../../${tempdir}/src/bitmaps)
372 372
373echo "Making links to \`src/m'"
374(cd src/m
375 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/m)
376
377echo "Making links to \`src/s'" 373echo "Making links to \`src/s'"
378(cd src/s 374(cd src/s
379 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s) 375 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s)
diff --git a/msdos/ChangeLog b/msdos/ChangeLog
index 46472373e51..2b56315c1a3 100644
--- a/msdos/ChangeLog
+++ b/msdos/ChangeLog
@@ -1,3 +1,8 @@
12012-05-22 Paul Eggert <eggert@cs.ucla.edu>
2
3 Remove src/m/*.
4 * mainmake.v2 (TAGS tags): Don't look at $(CURDIR)/src/m/intel386.h.
5
12012-05-19 Paul Eggert <eggert@cs.ucla.edu> 62012-05-19 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 * sed2v2.inp (HAVE_MBLEN): Remove. 8 * sed2v2.inp (HAVE_MBLEN): Remove.
diff --git a/msdos/mainmake.v2 b/msdos/mainmake.v2
index 2113dc4a127..b4837b99fb9 100644
--- a/msdos/mainmake.v2
+++ b/msdos/mainmake.v2
@@ -162,7 +162,7 @@ TAGS tags: lib-src FRC
162 ../bin/etags --include=../lisp/TAGS \ 162 ../bin/etags --include=../lisp/TAGS \
163 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ 163 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
164 $(CURDIR)/src/*.c $(CURDIR)/src/*.h \ 164 $(CURDIR)/src/*.c $(CURDIR)/src/*.h \
165 $(CURDIR)/src/s/msdos.h $(CURDIR)/src/m/intel386.h 165 $(CURDIR)/src/s/msdos.h
166 cd .. 166 cd ..
167 ./bin/etags --include=src/TAGS 167 ./bin/etags --include=src/TAGS
168 168
@@ -299,4 +299,3 @@ bootstrap-clean: FRC
299bootstrap: bootstrap-clean FRC 299bootstrap: bootstrap-clean FRC
300 command.com /e:2048 /c config msdos 300 command.com /e:2048 /c config msdos
301 $(MAKE) $(MFLAGS) info all 301 $(MAKE) $(MFLAGS) info all
302
diff --git a/nt/ChangeLog b/nt/ChangeLog
index faf6f80c4c5..198729776b5 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,11 @@
12012-05-22 Paul Eggert <eggert@cs.ucla.edu>
2
3 Remove src/m/*.
4 * config.nt: Do not include "m/intel386.h"; file was removed.
5 (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG):
6 Move to src/lisp.h.
7 (EMACS_INT_MAX): New macro.
8
12012-05-19 Paul Eggert <eggert@cs.ucla.edu> 92012-05-19 Paul Eggert <eggert@cs.ucla.edu>
2 10
3 * config.nt (HAVE_GETDOMAINNAME, HAVE_XSETWMPROTOCOLS) 11 * config.nt (HAVE_GETDOMAINNAME, HAVE_XSETWMPROTOCOLS)
diff --git a/nt/config.nt b/nt/config.nt
index 9d933c2d0a0..16122b5e10e 100644
--- a/nt/config.nt
+++ b/nt/config.nt
@@ -421,17 +421,6 @@ typedef unsigned short mode_t;
421#undef config_opsysfile 421#undef config_opsysfile
422#include "s/ms-w32.h" 422#include "s/ms-w32.h"
423 423
424/* The configuration script defines machfile to be the name of the
425 m/MACHINE.h file that describes the machine you are using. The file is
426 chosen based on the configuration name you give.
427
428 See the file ../etc/MACHINES for a list of machines and the
429 configuration names to use for them.
430
431 See m/template.h for documentation on writing m/MACHINE.h files. */
432#undef config_machfile
433#include "m/intel386.h"
434
435/* Define `subprocesses' should be defined if you want to 424/* Define `subprocesses' should be defined if you want to
436 have code for asynchronous subprocesses 425 have code for asynchronous subprocesses
437 (as used in M-x compile and M-x shell). 426 (as used in M-x compile and M-x shell).
@@ -465,28 +454,6 @@ extern char *getenv ();
465 454
466#endif /* EMACS_CONFIG_H */ 455#endif /* EMACS_CONFIG_H */
467 456
468/* These default definitions are good for almost all machines.
469 The exceptions override them in m/MACHINE.h. */
470
471#ifndef BITS_PER_CHAR
472#define BITS_PER_CHAR 8
473#endif
474
475#ifndef BITS_PER_SHORT
476#define BITS_PER_SHORT 16
477#endif
478
479/* Note that lisp.h uses this in a preprocessor conditional, so it
480 would not work to use sizeof. That being so, we do all of them
481 without sizeof, for uniformity's sake. */
482#ifndef BITS_PER_INT
483#define BITS_PER_INT 32
484#endif
485
486#ifndef BITS_PER_LONG
487#define BITS_PER_LONG 32
488#endif
489
490#if defined (__MINGW32__) || _MSC_VER >= 1400 457#if defined (__MINGW32__) || _MSC_VER >= 1400
491 458
492/* Define to 1 if the system has the type `long long int'. */ 459/* Define to 1 if the system has the type `long long int'. */
@@ -505,7 +472,7 @@ extern char *getenv ();
505 472
506/* Use pre-C99-style 64-bit integers. */ 473/* Use pre-C99-style 64-bit integers. */
507# define EMACS_INT __int64 474# define EMACS_INT __int64
508# define BITS_PER_EMACS_INT 64 475# define EMACS_INT_MAX _I64_MAX
509# define pI "I64" 476# define pI "I64"
510 477
511# endif 478# endif
diff --git a/src/ChangeLog b/src/ChangeLog
index 3054f4a284f..784544bae6d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,35 @@
12012-05-22 Paul Eggert <eggert@cs.ucla.edu>
2
3 Remove src/m/*.
4 This directory predates autoconf and is no longer needed nowadays.
5 Move its few remaining bits of functionality to where they're needed.
6 * m/README, m/alpha.h, m/amdx86-64.h, m/ia64.h, m/ibmrs6000.h:
7 * m/ibms390x.h, m/intel386.h, m/m68k.h, m/macppc.h, m/sparc.h:
8 * m/template.h: Remove.
9 * Makefile.in (M_FILE): Remove. All uses removed.
10 * alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS):
11 * lisp.h (USE_LSB_TAG):
12 * mem-limits.h (EXCEEDS_LISP_PTR):
13 Use VAL_MAX, not VALBITS, in #if.
14 * lisp.h (EMACS_INT_MAX): New macro, useful in #if.
15 (EMACS_UINT): Define unconditionally now.
16 (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG)
17 (BITS_PER_EMACS_INT): New constants, replacing
18 what used to be in config.h, but not useful in #if.
19 (GCTYPEBITS, VALBITS): Define unconditionally, since m/* files don't
20 define them any more.
21 (VAL_MAX): New macro.
22 (VALMASK): Use it.
23 * puresize.h (PURESIZE_RATIO): Use EMACS_INT_MAX, not
24 BITS_PER_EMACS_INT, in #if.
25 * s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY)
26 (BROKEN_SIGPOLL): Move here from m/ibmrs6000.h, which was removed.
27 * s/gnu-linux.h (ULIMIT_BREAK_VALUE) [__i386__]:
28 * s/ms-w32.h (DATA_START):
29 Move here from removed file m/intel386.h.
30 * s/gnu.h (NLIST_STRUCT): Remove undef; 'configure' does this.
31 * s/irix6-5.h (_LP64): Remove; lisp.h no longer needs this.
32
12012-05-21 Paul Eggert <eggert@cs.ucla.edu> 332012-05-21 Paul Eggert <eggert@cs.ucla.edu>
2 34
3 Assume C89 or later. 35 Assume C89 or later.
diff --git a/src/Makefile.in b/src/Makefile.in
index dd667ea60a3..27199578fc0 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -56,9 +56,8 @@ lwlibdir = ../lwlib
56lispdir = ../lisp 56lispdir = ../lisp
57 57
58# Configuration files for .o files to depend on. 58# Configuration files for .o files to depend on.
59M_FILE = @M_FILE@
60S_FILE = @S_FILE@ 59S_FILE = @S_FILE@
61config_h = config.h $(M_FILE) $(S_FILE) 60config_h = config.h $(S_FILE)
62 61
63bootstrap_exe = $(abs_builddir)/bootstrap-emacs$(EXEEXT) 62bootstrap_exe = $(abs_builddir)/bootstrap-emacs$(EXEEXT)
64 63
@@ -534,10 +533,10 @@ extraclean: distclean
534ctagsfiles1 = [xyzXYZ]*.[hcm] 533ctagsfiles1 = [xyzXYZ]*.[hcm]
535ctagsfiles2 = [a-wA-W]*.[hcm] 534ctagsfiles2 = [a-wA-W]*.[hcm]
536 535
537TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) $(M_FILE) $(S_FILE) 536TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) $(S_FILE)
538 ../lib-src/etags --include=TAGS-LISP --include=$(lwlibdir)/TAGS \ 537 ../lib-src/etags --include=TAGS-LISP --include=$(lwlibdir)/TAGS \
539 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ 538 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
540 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) $(M_FILE) $(S_FILE) 539 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) $(S_FILE)
541frc: 540frc:
542TAGS-LISP: frc 541TAGS-LISP: frc
543 $(MAKE) -f $(lispdir)/Makefile TAGS-LISP ETAGS=../lib-src/etags 542 $(MAKE) -f $(lispdir)/Makefile TAGS-LISP ETAGS=../lib-src/etags
diff --git a/src/alloc.c b/src/alloc.c
index 3601c256c41..1f422a6d3b0 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4297,8 +4297,8 @@ mark_maybe_pointer (void *p)
4297 wider than a pointer might allocate a Lisp_Object in non-adjacent halves. 4297 wider than a pointer might allocate a Lisp_Object in non-adjacent halves.
4298 If USE_LSB_TAG, the bottom half is not a valid pointer, but it should 4298 If USE_LSB_TAG, the bottom half is not a valid pointer, but it should
4299 suffice to widen it to to a Lisp_Object and check it that way. */ 4299 suffice to widen it to to a Lisp_Object and check it that way. */
4300#if defined USE_LSB_TAG || UINTPTR_MAX >> VALBITS != 0 4300#if defined USE_LSB_TAG || VAL_MAX < UINTPTR_MAX
4301# if !defined USE_LSB_TAG && UINTPTR_MAX >> VALBITS >> GCTYPEBITS != 0 4301# if !defined USE_LSB_TAG && VAL_MAX < UINTPTR_MAX >> GCTYPEBITS
4302 /* If tag bits straddle pointer-word boundaries, neither mark_maybe_pointer 4302 /* If tag bits straddle pointer-word boundaries, neither mark_maybe_pointer
4303 nor mark_maybe_object can follow the pointers. This should not occur on 4303 nor mark_maybe_object can follow the pointers. This should not occur on
4304 any practical porting target. */ 4304 any practical porting target. */
diff --git a/src/lisp.h b/src/lisp.h
index fd5219adf4c..bb9e6ed3825 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -41,25 +41,36 @@ extern void check_cons_list (void);
41 Build with CFLAGS='-DWIDE_EMACS_INT' to try them out. */ 41 Build with CFLAGS='-DWIDE_EMACS_INT' to try them out. */
42/* #undef WIDE_EMACS_INT */ 42/* #undef WIDE_EMACS_INT */
43 43
44/* These are default choices for the types to use. */ 44/* EMACS_INT - signed integer wide enough to hold an Emacs value
45 EMACS_INT_MAX - maximum value of EMACS_INT; can be used in #if
46 pI - printf length modifier for EMACS_INT
47 EMACS_UINT - unsigned variant of EMACS_INT */
45#ifndef EMACS_INT 48#ifndef EMACS_INT
46# if BITS_PER_LONG < BITS_PER_LONG_LONG && defined WIDE_EMACS_INT 49# if LONG_MAX < LLONG_MAX && defined WIDE_EMACS_INT
47# define EMACS_INT long long 50# define EMACS_INT long long
48# define BITS_PER_EMACS_INT BITS_PER_LONG_LONG 51# define EMACS_INT_MAX LLONG_MAX
49# define pI "ll" 52# define pI "ll"
50# elif BITS_PER_INT < BITS_PER_LONG 53# elif INT_MAX < LONG_MAX
51# define EMACS_INT long 54# define EMACS_INT long
52# define BITS_PER_EMACS_INT BITS_PER_LONG 55# define EMACS_INT_MAX LONG_MAX
53# define pI "l" 56# define pI "l"
54# else 57# else
55# define EMACS_INT int 58# define EMACS_INT int
56# define BITS_PER_EMACS_INT BITS_PER_INT 59# define EMACS_INT_MAX INT_MAX
57# define pI "" 60# define pI ""
58# endif 61# endif
59#endif 62#endif
60#ifndef EMACS_UINT 63#define EMACS_UINT unsigned EMACS_INT
61# define EMACS_UINT unsigned EMACS_INT 64
62#endif 65/* Number of bits in some machine integer types. */
66enum
67 {
68 BITS_PER_CHAR = CHAR_BIT,
69 BITS_PER_SHORT = CHAR_BIT * sizeof (short),
70 BITS_PER_INT = CHAR_BIT * sizeof (int),
71 BITS_PER_LONG = CHAR_BIT * sizeof (long int),
72 BITS_PER_EMACS_INT = CHAR_BIT * sizeof (EMACS_INT)
73 };
63 74
64/* printmax_t and uprintmax_t are types for printing large integers. 75/* printmax_t and uprintmax_t are types for printing large integers.
65 These are the widest integers that are supported for printing. 76 These are the widest integers that are supported for printing.
@@ -164,13 +175,13 @@ extern int suppress_checking EXTERNALLY_VISIBLE;
164 variable VAR of type TYPE with the added requirement that it be 175 variable VAR of type TYPE with the added requirement that it be
165 TYPEBITS-aligned. */ 176 TYPEBITS-aligned. */
166 177
167#ifndef GCTYPEBITS
168#define GCTYPEBITS 3 178#define GCTYPEBITS 3
169#endif
170
171#ifndef VALBITS
172#define VALBITS (BITS_PER_EMACS_INT - GCTYPEBITS) 179#define VALBITS (BITS_PER_EMACS_INT - GCTYPEBITS)
173#endif 180
181/* The maximum value that can be stored in a EMACS_INT, assuming all
182 bits other than the type bits contribute to a nonnegative signed value.
183 This can be used in #if, e.g., '#if VAL_MAX < UINTPTR_MAX' below. */
184#define VAL_MAX (EMACS_INT_MAX >> (GCTYPEBITS - 1))
174 185
175#ifndef NO_DECL_ALIGN 186#ifndef NO_DECL_ALIGN
176# ifndef DECL_ALIGN 187# ifndef DECL_ALIGN
@@ -195,12 +206,12 @@ extern int suppress_checking EXTERNALLY_VISIBLE;
195 || defined DARWIN_OS || defined __sun) 206 || defined DARWIN_OS || defined __sun)
196/* We also need to be able to specify mult-of-8 alignment on static vars. */ 207/* We also need to be able to specify mult-of-8 alignment on static vars. */
197# if defined DECL_ALIGN 208# if defined DECL_ALIGN
198/* On hosts where VALBITS is greater than the pointer width in bits, 209/* On hosts where pointers-as-ints do not exceed VAL_MAX,
199 USE_LSB_TAG is: 210 USE_LSB_TAG is:
200 a. unnecessary, because the top bits of an EMACS_INT are unused, and 211 a. unnecessary, because the top bits of an EMACS_INT are unused, and
201 b. slower, because it typically requires extra masking. 212 b. slower, because it typically requires extra masking.
202 So, define USE_LSB_TAG only on hosts where it might be useful. */ 213 So, define USE_LSB_TAG only on hosts where it might be useful. */
203# if UINTPTR_MAX >> VALBITS != 0 214# if VAL_MAX < UINTPTR_MAX
204# define USE_LSB_TAG 215# define USE_LSB_TAG
205# endif 216# endif
206# endif 217# endif
@@ -479,7 +490,7 @@ enum pvec_type
479 490
480#else /* not USE_LSB_TAG */ 491#else /* not USE_LSB_TAG */
481 492
482#define VALMASK ((((EMACS_INT) 1) << VALBITS) - 1) 493#define VALMASK VAL_MAX
483 494
484/* One need to override this if there must be high bits set in data space 495/* One need to override this if there must be high bits set in data space
485 (doing the result of the below & ((1 << (GCTYPE + 1)) - 1) would work 496 (doing the result of the below & ((1 << (GCTYPE + 1)) - 1) would work
diff --git a/src/m/README b/src/m/README
deleted file mode 100644
index ad91167648e..00000000000
--- a/src/m/README
+++ /dev/null
@@ -1,7 +0,0 @@
1This directory contains C header files containing machine-specific
2definitions. Each file describes a particular machine. The emacs
3configuration script edits ../config.h to include the appropriate one of
4these files, and then each emacs source file includes config.h.
5
6template.h is a generic template for machine descriptions; it
7describes the parameters a machine file can specify.
diff --git a/src/m/alpha.h b/src/m/alpha.h
deleted file mode 100644
index 2a97a3d5b0c..00000000000
--- a/src/m/alpha.h
+++ /dev/null
@@ -1,53 +0,0 @@
1/* Machine description file for the alpha chip.
2
3Copyright (C) 1994, 1997, 1999, 2001-2012 Free Software Foundation, Inc.
4
5Author: Rainer Schoepf
6(according to authors.el)
7
8This file is part of GNU Emacs.
9
10GNU Emacs is free software: you can redistribute it and/or modify
11it under the terms of the GNU General Public License as published by
12the Free Software Foundation, either version 3 of the License, or
13(at your option) any later version.
14
15GNU Emacs is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22
23#ifndef _LP64
24#define _LP64 /* This doesn't appear to be necessary on OSF 4/5 -- fx. */
25#endif
26
27/* Now define a symbol for the cpu type, if your compiler
28 does not define it automatically. */
29/* __alpha defined automatically */
30
31
32#ifdef __ELF__
33
34#if !defined (GNU_LINUX) && !defined (__NetBSD__)
35#define DATA_START 0x140000000
36#endif
37
38#else /* not __ELF__ */
39
40/* Describe layout of the address space in an executing process. */
41#define DATA_START 0x140000000
42
43#endif /* __ELF__ */
44
45/* On the Alpha it's best to avoid including TERMIO since struct
46 termio and struct termios are mutually incompatible. */
47#define NO_TERMIO
48
49/* Many Alpha implementations (e.g. gas 2.8) can't handle DBL_MIN:
50 they generate code that uses a signaling NaN instead of DBL_MIN.
51 Define DBL_MIN_REPLACEMENT to be the next value larger than DBL_MIN:
52 this avoids the assembler bug. */
53#define DBL_MIN_REPLACEMENT 2.2250738585072019e-308
diff --git a/src/m/amdx86-64.h b/src/m/amdx86-64.h
deleted file mode 100644
index f0482c733f9..00000000000
--- a/src/m/amdx86-64.h
+++ /dev/null
@@ -1,35 +0,0 @@
1/* machine description file for AMD x86-64.
2
3Copyright (C) 2002-2012 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20#define BITS_PER_LONG 64
21#define BITS_PER_EMACS_INT 64
22
23/* Now define a symbol for the cpu type, if your compiler
24 does not define it automatically:
25 Ones defined so far include vax, m68000, ns16000, pyramid,
26 orion, tahoe, APOLLO and many others */
27/* __x86_64 defined automatically. */
28
29/* Define the type to use. */
30#define EMACS_INT long
31#define pI "l"
32#define EMACS_UINT unsigned long
33
34/* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
35#undef DATA_SEG_BITS
diff --git a/src/m/ia64.h b/src/m/ia64.h
deleted file mode 100644
index 47df94cedd0..00000000000
--- a/src/m/ia64.h
+++ /dev/null
@@ -1,32 +0,0 @@
1/* machine description file for the IA-64 architecture.
2
3Copyright (C) 2000-2012 Free Software Foundation, Inc.
4
5 Contributed by David Mosberger <davidm@hpl.hp.com>
6
7This file is part of GNU Emacs.
8
9GNU Emacs is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 3 of the License, or
12(at your option) any later version.
13
14GNU Emacs is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
21
22#define BITS_PER_LONG 64
23#define BITS_PER_EMACS_INT 64
24
25/* Now define a symbol for the cpu type, if your compiler
26 does not define it automatically. */
27/* __ia64__ defined automatically */
28
29/* Define the type to use. */
30#define EMACS_INT long
31#define pI "l"
32#define EMACS_UINT unsigned long
diff --git a/src/m/ibmrs6000.h b/src/m/ibmrs6000.h
deleted file mode 100644
index 9798ad2d3d7..00000000000
--- a/src/m/ibmrs6000.h
+++ /dev/null
@@ -1,46 +0,0 @@
1/* R2 AIX machine/system dependent defines
2
3Copyright (C) 1988, 2001-2012 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20
21/* The data segment in this machine always starts at address 0x20000000.
22 An address of data cannot be stored correctly in a Lisp object;
23 we always lose the high bits. We must tell XPNTR to add them back. */
24#define DATA_START 0x20000000
25#define DATA_SEG_BITS 0x20000000
26
27#ifndef NLIST_STRUCT
28/* AIX supposedly doesn't use this interface, but on the RS/6000
29 it apparently does. */
30#define NLIST_STRUCT
31#endif
32
33#undef ADDR_CORRECT
34#define ADDR_CORRECT(x) ((int)(x))
35
36/*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/
37#define BROKEN_FIONREAD
38/* As we define BROKEN_FIONREAD, SIGIO will be undefined in systty.h.
39 But, on AIX, SIGAIO, SIGPTY, and SIGPOLL are defined as SIGIO,
40 which causes compilation error at init_signals in sysdep.c. So, we
41 define these macros so that syssignal.h detects them and undefine
42 SIGAIO, SIGPTY and SIGPOLL. */
43#define BROKEN_SIGAIO
44#define BROKEN_SIGPTY
45#define BROKEN_SIGPOLL
46
diff --git a/src/m/ibms390x.h b/src/m/ibms390x.h
deleted file mode 100644
index aa652a8206a..00000000000
--- a/src/m/ibms390x.h
+++ /dev/null
@@ -1,32 +0,0 @@
1/* Machine description file for IBM S390 in 64-bit mode
2
3Copyright (C) 2002-2012 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20#define BITS_PER_LONG 64
21#define BITS_PER_EMACS_INT 64
22
23/* Define the type to use. */
24#define EMACS_INT long
25#define pI "l"
26#define EMACS_UINT unsigned long
27
28/* On the 64 bit architecture, we can use 60 bits for addresses */
29#define VALBITS 60
30
31/* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
32#define XPNTR(a) XUINT (a)
diff --git a/src/m/intel386.h b/src/m/intel386.h
deleted file mode 100644
index 78a43e92c21..00000000000
--- a/src/m/intel386.h
+++ /dev/null
@@ -1,29 +0,0 @@
1/* Machine description file for intel 386.
2
3Copyright (C) 1987, 2001-2012 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20
21#ifdef WINDOWSNT
22#define DATA_START get_data_start ()
23#endif
24
25#ifdef GNU_LINUX
26/* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */
27/* we cannot get the maximum address for brk */
28#define ULIMIT_BREAK_VALUE (32*1024*1024)
29#endif
diff --git a/src/m/m68k.h b/src/m/m68k.h
deleted file mode 100644
index 120a2bad293..00000000000
--- a/src/m/m68k.h
+++ /dev/null
@@ -1,32 +0,0 @@
1/* Machine description file for generic Motorola 68k.
2
3Copyright (C) 1985, 1995, 2001-2012 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20/* Now define a symbol for the cpu type, if your compiler
21 does not define it automatically. */
22#ifndef m68k
23#define m68k
24#endif
25
26#ifdef GNU_LINUX
27#ifdef __ELF__
28#define DATA_SEG_BITS 0x80000000
29#endif
30
31#endif
32
diff --git a/src/m/macppc.h b/src/m/macppc.h
deleted file mode 100644
index 0303ead25d6..00000000000
--- a/src/m/macppc.h
+++ /dev/null
@@ -1,24 +0,0 @@
1/* machine description file For the powerpc Macintosh.
2
3Copyright (C) 1994, 2001-2012 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20#ifdef _ARCH_PPC64
21#ifndef _LP64
22#define _LP64
23#endif
24#endif
diff --git a/src/m/sparc.h b/src/m/sparc.h
deleted file mode 100644
index 27b6070ba87..00000000000
--- a/src/m/sparc.h
+++ /dev/null
@@ -1,30 +0,0 @@
1/* machine description file for Sun 4 SPARC.
2
3Copyright (C) 1987, 2001-2012 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20/* __sparc__ is defined by the compiler by default. */
21
22#ifdef __arch64__ /* GCC, 64-bit ABI. */
23
24#define BITS_PER_LONG 64
25
26#ifndef _LP64
27#define _LP64 /* Done on Alpha -- not sure if it should be here. -- fx */
28#endif
29
30#endif /* __arch64__ */
diff --git a/src/m/template.h b/src/m/template.h
deleted file mode 100644
index 5f1a46c86e1..00000000000
--- a/src/m/template.h
+++ /dev/null
@@ -1,34 +0,0 @@
1/* machine description file template.
2
3Copyright (C) 1985-1986, 2001-2012 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20/* Now define a symbol for the cpu type, if your compiler
21 does not define it automatically.
22 Ones defined so far include m68k and many others */
23
24/* After adding support for a new machine, modify the large case
25 statement in configure.in to recognize reasonable
26 configuration names, and add a description of the system to
27 `etc/MACHINES'.
28
29 Check for any tests of $machine in configure.in, and add an entry
30 for the new machine if needed.
31
32 If you've just fixed a problem in an existing configuration file,
33 you should also check `etc/MACHINES' to make sure its descriptions
34 of known problems in that configuration should be updated. */
diff --git a/src/mem-limits.h b/src/mem-limits.h
index 244592a9768..1fd53b472f3 100644
--- a/src/mem-limits.h
+++ b/src/mem-limits.h
@@ -34,7 +34,7 @@ extern int etext;
34#endif 34#endif
35 35
36extern char *start_of_data (void); 36extern char *start_of_data (void);
37#if defined USE_LSB_TAG || UINTPTR_MAX >> VALBITS == 0 37#if defined USE_LSB_TAG || UINTPTR_MAX <= VAL_MAX
38#define EXCEEDS_LISP_PTR(ptr) 0 38#define EXCEEDS_LISP_PTR(ptr) 0
39#elif defined DATA_SEG_BITS 39#elif defined DATA_SEG_BITS
40#define EXCEEDS_LISP_PTR(ptr) \ 40#define EXCEEDS_LISP_PTR(ptr) \
diff --git a/src/puresize.h b/src/puresize.h
index e854dc585e8..185d2a76ae0 100644
--- a/src/puresize.h
+++ b/src/puresize.h
@@ -45,7 +45,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
45 45
46/* Increase BASE_PURESIZE by a ratio depending on the machine's word size. */ 46/* Increase BASE_PURESIZE by a ratio depending on the machine's word size. */
47#ifndef PURESIZE_RATIO 47#ifndef PURESIZE_RATIO
48#if BITS_PER_EMACS_INT > 32 48#if EMACS_INT_MAX >> 31 != 0
49#define PURESIZE_RATIO 10/6 /* Don't surround with `()'. */ 49#define PURESIZE_RATIO 10/6 /* Don't surround with `()'. */
50#else 50#else
51#define PURESIZE_RATIO 1 51#define PURESIZE_RATIO 1
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index 354ffda0988..cacfdc7ed63 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -76,6 +76,17 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
76 to avoid a crash just use the Emacs implementation for that function. */ 76 to avoid a crash just use the Emacs implementation for that function. */
77#define BROKEN_GET_CURRENT_DIR_NAME 1 77#define BROKEN_GET_CURRENT_DIR_NAME 1
78 78
79/*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/
80#define BROKEN_FIONREAD
81/* As we define BROKEN_FIONREAD, SIGIO will be undefined in systty.h.
82 But, on AIX, SIGAIO, SIGPTY, and SIGPOLL are defined as SIGIO,
83 which causes compilation error at init_signals in sysdep.c. So, we
84 define these macros so that syssignal.h detects them and undefine
85 SIGAIO, SIGPTY and SIGPOLL. */
86#define BROKEN_SIGAIO
87#define BROKEN_SIGPTY
88#define BROKEN_SIGPOLL
89
79/* Conservative garbage collection has not been tested, so for now 90/* Conservative garbage collection has not been tested, so for now
80 play it safe and stick with the old-fashioned way of marking. */ 91 play it safe and stick with the old-fashioned way of marking. */
81#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE 92#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index d04ea33068a..409d0205520 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -157,3 +157,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
157#else 157#else
158#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE 158#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE
159#endif 159#endif
160
161#ifdef __i386__
162/* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */
163/* we cannot get the maximum address for brk */
164# define ULIMIT_BREAK_VALUE (32*1024*1024)
165#endif
diff --git a/src/s/gnu.h b/src/s/gnu.h
index a09e0e824c9..cd72164a520 100644
--- a/src/s/gnu.h
+++ b/src/s/gnu.h
@@ -24,8 +24,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
24#undef SYSTEM_TYPE 24#undef SYSTEM_TYPE
25#define SYSTEM_TYPE "gnu" 25#define SYSTEM_TYPE "gnu"
26 26
27#undef NLIST_STRUCT
28
29#define SIGNALS_VIA_CHARACTERS 27#define SIGNALS_VIA_CHARACTERS
30 28
31/* libc defines data_start. */ 29/* libc defines data_start. */
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h
index e5d90c1bd5d..e5479c3b8d3 100644
--- a/src/s/irix6-5.h
+++ b/src/s/irix6-5.h
@@ -85,10 +85,6 @@ char *_getpty();
85 85
86#define NARROWPROTO 1 86#define NARROWPROTO 1
87 87
88#if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */
89#define _LP64 /* lisp.h takes care of the rest */
90#endif /* _MIPS_SZLONG */
91
92#undef SA_RESTART 88#undef SA_RESTART
93 89
94#undef TIOCSIGSEND /* defined in usg5-4-common.h */ 90#undef TIOCSIGSEND /* defined in usg5-4-common.h */
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index 63fc2f1f62b..f88128b27aa 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -381,6 +381,8 @@ extern int getloadavg (double *, int);
381/* We need a little extra space, see ../../lisp/loadup.el. */ 381/* We need a little extra space, see ../../lisp/loadup.el. */
382#define SYSTEM_PURESIZE_EXTRA 50000 382#define SYSTEM_PURESIZE_EXTRA 50000
383 383
384#define DATA_START get_data_start ()
385
384/* For unexec to work on Alpha systems, we need to put Emacs' 386/* For unexec to work on Alpha systems, we need to put Emacs'
385 initialized data into a separate section from the CRT initialized 387 initialized data into a separate section from the CRT initialized
386 data (because the Alpha linker freely reorders data variables, even 388 data (because the Alpha linker freely reorders data variables, even