diff options
| author | Dan Nicolaescu | 2008-02-09 07:42:06 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-02-09 07:42:06 +0000 |
| commit | deeaffe11d28ca1b42e4f59c33a30d0e58698044 (patch) | |
| tree | b2d4bda90d751726d1bc07dcbea41a97e252aa0a /src | |
| parent | 05f2964e439fc44ceeaced760c7246fc966bf196 (diff) | |
| download | emacs-deeaffe11d28ca1b42e4f59c33a30d0e58698044.tar.gz emacs-deeaffe11d28ca1b42e4f59c33a30d0e58698044.zip | |
* Makefile.in (REGEXP_IN_LIBC): Remove reference to obsolete
variable.
* s/gnu-linux.h: Remove commented out code.
* unexec.c: Remove references to obsolete variable
COFF_ENCAPSULATE.
* Makefile.in: Update what RMS says about using autoconf.
(C_COMPILER):
(COFF_ENCAPSULATE):
(MAKE_PARALLEL): Remove obsolete variable.
(C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1):
(C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
(C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 15 | ||||
| -rw-r--r-- | src/Makefile.in | 45 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 6 | ||||
| -rw-r--r-- | src/unexec.c | 63 |
4 files changed, 29 insertions, 100 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ae92bc3589d..52ed2dbe02c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * s/gnu-linux.h: Remove commented out code. | ||
| 4 | |||
| 5 | * unexec.c: Remove references to obsolete variable | ||
| 6 | COFF_ENCAPSULATE. | ||
| 7 | |||
| 8 | * Makefile.in: Update what RMS says about using autoconf. | ||
| 9 | (C_COMPILER): | ||
| 10 | (COFF_ENCAPSULATE): | ||
| 11 | (MAKE_PARALLEL): Remove obsolete variable. | ||
| 12 | (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1): | ||
| 13 | (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1) | ||
| 14 | (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional. | ||
| 15 | |||
| 1 | 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca> | 16 | 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 17 | ||
| 3 | * keymap.c (Fkey_description): Move side effect outside of macro call. | 18 | * keymap.c (Fkey_description): Move side effect outside of macro call. |
diff --git a/src/Makefile.in b/src/Makefile.in index 1b0e0504f89..e6c36e5c7ec 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -27,6 +27,11 @@ | |||
| 27 | 27 | ||
| 28 | # Don't try to replace the cpp processing using autoconf facilities, | 28 | # Don't try to replace the cpp processing using autoconf facilities, |
| 29 | # says rms. | 29 | # says rms. |
| 30 | # Replacing a particular part of the conditionals to work via autoconf | ||
| 31 | # is OK. | ||
| 32 | # Some of the conditionals might be dead now. Finding them and | ||
| 33 | # deleting them would be fine. | ||
| 34 | |||
| 30 | 35 | ||
| 31 | # Here are the things that we expect ../configure to edit. | 36 | # Here are the things that we expect ../configure to edit. |
| 32 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. | 37 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. |
| @@ -100,10 +105,6 @@ SHELL=/bin/sh | |||
| 100 | MAKE = MAKE_COMMAND | 105 | MAKE = MAKE_COMMAND |
| 101 | #endif | 106 | #endif |
| 102 | 107 | ||
| 103 | #ifdef C_COMPILER | ||
| 104 | CC = C_COMPILER | ||
| 105 | #endif | ||
| 106 | |||
| 107 | /* GNU libc requires ORDINARY_LINK so that its own crt0 is used. | 108 | /* GNU libc requires ORDINARY_LINK so that its own crt0 is used. |
| 108 | GNU/Linux is an exception because it uses a funny variant of GNU libc. */ | 109 | GNU/Linux is an exception because it uses a funny variant of GNU libc. */ |
| 109 | #ifdef __GNU_LIBRARY__ | 110 | #ifdef __GNU_LIBRARY__ |
| @@ -144,11 +145,11 @@ CC = C_COMPILER | |||
| 144 | 145 | ||
| 145 | /* Some s/SYSTEM.h files define this to request special switches in ld. */ | 146 | /* Some s/SYSTEM.h files define this to request special switches in ld. */ |
| 146 | #ifndef LD_SWITCH_SYSTEM | 147 | #ifndef LD_SWITCH_SYSTEM |
| 147 | #if !defined (__GNUC__) && (defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF))) | 148 | #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) |
| 148 | #define LD_SWITCH_SYSTEM -X | 149 | #define LD_SWITCH_SYSTEM -X |
| 149 | #else /* ! defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF)) */ | 150 | #else /* (defined (BSD_SYSTEM) && !defined (COFF)) */ |
| 150 | #define LD_SWITCH_SYSTEM | 151 | #define LD_SWITCH_SYSTEM |
| 151 | #endif /* ! defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF)) */ | 152 | #endif /* (defined (BSD_SYSTEM) && !defined (COFF)) */ |
| 152 | #endif /* LD_SWITCH_SYSTEM */ | 153 | #endif /* LD_SWITCH_SYSTEM */ |
| 153 | 154 | ||
| 154 | /* This holds special options for linking temacs | 155 | /* This holds special options for linking temacs |
| @@ -223,11 +224,7 @@ CC = C_COMPILER | |||
| 223 | 224 | ||
| 224 | #ifndef START_FILES | 225 | #ifndef START_FILES |
| 225 | #ifdef NO_REMAP | 226 | #ifdef NO_REMAP |
| 226 | #ifdef COFF_ENCAPSULATE | ||
| 227 | #define START_FILES pre-crt0.o /usr/local/lib/gcc-crt0.o | ||
| 228 | #else /* ! defined (COFF_ENCAPSULATE) */ | ||
| 229 | #define START_FILES pre-crt0.o /lib/crt0.o | 227 | #define START_FILES pre-crt0.o /lib/crt0.o |
| 230 | #endif /* ! defined (COFF_ENCAPSULATE) */ | ||
| 231 | #else /* ! defined (NO_REMAP) */ | 228 | #else /* ! defined (NO_REMAP) */ |
| 232 | #define START_FILES ecrt0.o | 229 | #define START_FILES ecrt0.o |
| 233 | #endif /* ! defined (NO_REMAP) */ | 230 | #endif /* ! defined (NO_REMAP) */ |
| @@ -536,15 +533,11 @@ STARTFLAGS = -T LD_TEXT_START_ADDR -e __start | |||
| 536 | #ifdef ORDINARY_LINK | 533 | #ifdef ORDINARY_LINK |
| 537 | LD = $(CC) | 534 | LD = $(CC) |
| 538 | #else | 535 | #else |
| 539 | #ifdef COFF_ENCAPSULATE | ||
| 540 | LD=$(CC) -nostdlib | ||
| 541 | #else /* not ORDINARY_LINK */ | ||
| 542 | #ifdef LINKER | 536 | #ifdef LINKER |
| 543 | LD=LINKER | 537 | LD=LINKER |
| 544 | #else /* not LINKER */ | 538 | #else /* not LINKER */ |
| 545 | LD=ld | 539 | LD=ld |
| 546 | #endif /* not LINKER */ | 540 | #endif /* not LINKER */ |
| 547 | #endif /* not COFF_ENCAPSULATE */ | ||
| 548 | #endif /* not ORDINARY_LINK */ | 541 | #endif /* not ORDINARY_LINK */ |
| 549 | 542 | ||
| 550 | /* Flags to pass to LD only for temacs. */ | 543 | /* Flags to pass to LD only for temacs. */ |
| @@ -1015,12 +1008,7 @@ ${lispsource}international/charprop.el: temacs${EXEEXT} ${UNIDATA} | |||
| 1015 | RUNEMACS="$${RUNEMACS}" DSTDIR=${lispsource}international | 1008 | RUNEMACS="$${RUNEMACS}" DSTDIR=${lispsource}international |
| 1016 | #endif | 1009 | #endif |
| 1017 | 1010 | ||
| 1018 | /* Some systems define this to cause parallel Make-ing. */ | 1011 | temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT} |
| 1019 | #ifndef MAKE_PARALLEL | ||
| 1020 | #define MAKE_PARALLEL | ||
| 1021 | #endif | ||
| 1022 | |||
| 1023 | temacs${EXEEXT}: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT} | ||
| 1024 | echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst | 1012 | echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst |
| 1025 | $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ | 1013 | $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ |
| 1026 | -o temacs ${STARTFILES} ${obj} ${otherobj} \ | 1014 | -o temacs ${STARTFILES} ${obj} ${otherobj} \ |
| @@ -1043,9 +1031,6 @@ stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) | |||
| 1043 | /* Supply an ordering for parallel make. */ | 1031 | /* Supply an ordering for parallel make. */ |
| 1044 | ../src/$(OLDXMENU): ${OLDXMENU} | 1032 | ../src/$(OLDXMENU): ${OLDXMENU} |
| 1045 | 1033 | ||
| 1046 | #ifdef USE_X_TOOLKIT | ||
| 1047 | $(OLDXMENU): really-lwlib | ||
| 1048 | |||
| 1049 | /* Encode the values of these two macros in Make variables, | 1034 | /* Encode the values of these two macros in Make variables, |
| 1050 | so we can use $(...) to substitute their values within "...". */ | 1035 | so we can use $(...) to substitute their values within "...". */ |
| 1051 | C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE | 1036 | C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE |
| @@ -1054,6 +1039,10 @@ C_SWITCH_SITE_1 = C_SWITCH_SITE | |||
| 1054 | C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE | 1039 | C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE |
| 1055 | C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE | 1040 | C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE |
| 1056 | C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM | 1041 | C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM |
| 1042 | |||
| 1043 | #ifdef USE_X_TOOLKIT | ||
| 1044 | $(OLDXMENU): really-lwlib | ||
| 1045 | |||
| 1057 | really-lwlib: | 1046 | really-lwlib: |
| 1058 | cd ${lwlibdir}; ${MAKE} ${MFLAGS} \ | 1047 | cd ${lwlibdir}; ${MAKE} ${MFLAGS} \ |
| 1059 | CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \ | 1048 | CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \ |
| @@ -1068,14 +1057,6 @@ really-lwlib: | |||
| 1068 | #else /* not USE_X_TOOLKIT */ | 1057 | #else /* not USE_X_TOOLKIT */ |
| 1069 | $(OLDXMENU): really-oldXMenu | 1058 | $(OLDXMENU): really-oldXMenu |
| 1070 | 1059 | ||
| 1071 | /* Encode the values of these two macros in Make variables, | ||
| 1072 | so we can use $(...) to substitute their values within "...". */ | ||
| 1073 | C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE | ||
| 1074 | C_SWITCH_SYSTEM_1 = C_SWITCH_SYSTEM | ||
| 1075 | C_SWITCH_SITE_1 = C_SWITCH_SITE | ||
| 1076 | C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE | ||
| 1077 | C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE | ||
| 1078 | C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM | ||
| 1079 | really-oldXMenu: | 1060 | really-oldXMenu: |
| 1080 | cd ${oldXMenudir}; ${MAKE} ${MFLAGS} \ | 1061 | cd ${oldXMenudir}; ${MAKE} ${MFLAGS} \ |
| 1081 | CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \ | 1062 | CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \ |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index cedd75d7210..69ac9fc4c4f 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -333,12 +333,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 333 | #define HAVE_XRMSETDATABASE | 333 | #define HAVE_XRMSETDATABASE |
| 334 | #endif | 334 | #endif |
| 335 | 335 | ||
| 336 | /* The regex.o routines are a part of the GNU C-library used with Linux. */ | ||
| 337 | /* However, sometimes they disagree with the src/regex.h that comes with Emacs, | ||
| 338 | and that can make trouble in etags.c because it gets the regex.h from Emacs | ||
| 339 | and the function definitions in libc. So turn this off. */ | ||
| 340 | /* #define REGEXP_IN_LIBC */ | ||
| 341 | |||
| 342 | /* Use BSD process groups, but use setpgid() instead of setpgrp() to | 336 | /* Use BSD process groups, but use setpgid() instead of setpgrp() to |
| 343 | actually set a process group. */ | 337 | actually set a process group. */ |
| 344 | 338 | ||
diff --git a/src/unexec.c b/src/unexec.c index b0ef8fc4d51..4ecb239c137 100644 --- a/src/unexec.c +++ b/src/unexec.c | |||
| @@ -77,14 +77,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 77 | 77 | ||
| 78 | Define this if your system uses COFF for executables. | 78 | Define this if your system uses COFF for executables. |
| 79 | 79 | ||
| 80 | * COFF_ENCAPSULATE | ||
| 81 | |||
| 82 | Define this if you are using the GNU coff encapsulated a.out format. | ||
| 83 | This is closer to a.out than COFF. You should *not* define COFF if | ||
| 84 | you define COFF_ENCAPSULATE | ||
| 85 | |||
| 86 | Otherwise we assume you use Berkeley format. | ||
| 87 | |||
| 88 | * NO_REMAP | 80 | * NO_REMAP |
| 89 | 81 | ||
| 90 | Define this if you do not want to try to save Emacs's pure data areas | 82 | Define this if you do not want to try to save Emacs's pure data areas |
| @@ -199,12 +191,7 @@ struct aouthdr | |||
| 199 | }; | 191 | }; |
| 200 | #endif /* not MSDOS */ | 192 | #endif /* not MSDOS */ |
| 201 | #else /* not COFF */ | 193 | #else /* not COFF */ |
| 202 | #ifdef COFF_ENCAPSULATE | ||
| 203 | int need_coff_header = 1; | ||
| 204 | #include <coff-encap/a.out.encap.h> /* The location might be a poor assumption */ | ||
| 205 | #else /* not COFF_ENCAPSULATE */ | ||
| 206 | #include <a.out.h> | 194 | #include <a.out.h> |
| 207 | #endif /* not COFF_ENCAPSULATE */ | ||
| 208 | #endif /* not COFF */ | 195 | #endif /* not COFF */ |
| 209 | 196 | ||
| 210 | /* Define getpagesize if the system does not. | 197 | /* Define getpagesize if the system does not. |
| @@ -289,7 +276,7 @@ static EXEC_HDR_TYPE hdr, ohdr; | |||
| 289 | 276 | ||
| 290 | #else /* not HPUX */ | 277 | #else /* not HPUX */ |
| 291 | 278 | ||
| 292 | #if defined (USG) && !defined (IBMAIX) && !defined (IRIS) && !defined (COFF_ENCAPSULATE) && !defined (GNU_LINUX) | 279 | #if defined (USG) && !defined (IBMAIX) && !defined (IRIS) && !defined (GNU_LINUX) |
| 293 | static struct bhdr hdr, ohdr; | 280 | static struct bhdr hdr, ohdr; |
| 294 | #define a_magic fmagic | 281 | #define a_magic fmagic |
| 295 | #define a_text tsize | 282 | #define a_text tsize |
| @@ -312,11 +299,6 @@ static EXEC_HDR_TYPE hdr, ohdr; | |||
| 312 | static int unexec_text_start; | 299 | static int unexec_text_start; |
| 313 | static int unexec_data_start; | 300 | static int unexec_data_start; |
| 314 | 301 | ||
| 315 | #ifdef COFF_ENCAPSULATE | ||
| 316 | /* coffheader is defined in the GNU a.out.encap.h file. */ | ||
| 317 | struct coffheader coffheader; | ||
| 318 | #endif | ||
| 319 | |||
| 320 | #endif /* not COFF */ | 302 | #endif /* not COFF */ |
| 321 | 303 | ||
| 322 | static int pagemask; | 304 | static int pagemask; |
| @@ -686,16 +668,6 @@ make_hdr (new, a_out, data_start, bss_start, entry_address, a_name, new_name) | |||
| 686 | /* Get symbol table info from header of a.out file if given one. */ | 668 | /* Get symbol table info from header of a.out file if given one. */ |
| 687 | if (a_out >= 0) | 669 | if (a_out >= 0) |
| 688 | { | 670 | { |
| 689 | #ifdef COFF_ENCAPSULATE | ||
| 690 | if (read (a_out, &coffheader, sizeof coffheader) != sizeof coffheader) | ||
| 691 | { | ||
| 692 | PERROR(a_name); | ||
| 693 | } | ||
| 694 | if (coffheader.f_magic != COFF_MAGIC) | ||
| 695 | { | ||
| 696 | ERROR1("%s doesn't have legal coff magic number\n", a_name); | ||
| 697 | } | ||
| 698 | #endif | ||
| 699 | if (read (a_out, &ohdr, sizeof hdr) != sizeof hdr) | 671 | if (read (a_out, &ohdr, sizeof hdr) != sizeof hdr) |
| 700 | { | 672 | { |
| 701 | PERROR (a_name); | 673 | PERROR (a_name); |
| @@ -709,18 +681,11 @@ make_hdr (new, a_out, data_start, bss_start, entry_address, a_name, new_name) | |||
| 709 | } | 681 | } |
| 710 | else | 682 | else |
| 711 | { | 683 | { |
| 712 | #ifdef COFF_ENCAPSULATE | ||
| 713 | /* We probably could without too much trouble. The code is in gld | ||
| 714 | * but I don't have that much time or incentive. | ||
| 715 | */ | ||
| 716 | ERROR0 ("can't build a COFF file from scratch yet"); | ||
| 717 | #else | ||
| 718 | #ifdef MSDOS /* Demacs 1.1.1 91/10/16 HIRANO Satoshi */ | 684 | #ifdef MSDOS /* Demacs 1.1.1 91/10/16 HIRANO Satoshi */ |
| 719 | bzero ((void *)&hdr, sizeof hdr); | 685 | bzero ((void *)&hdr, sizeof hdr); |
| 720 | #else | 686 | #else |
| 721 | bzero (&hdr, sizeof hdr); | 687 | bzero (&hdr, sizeof hdr); |
| 722 | #endif | 688 | #endif |
| 723 | #endif | ||
| 724 | } | 689 | } |
| 725 | 690 | ||
| 726 | unexec_text_start = (long) start_of_text (); | 691 | unexec_text_start = (long) start_of_text (); |
| @@ -749,32 +714,6 @@ make_hdr (new, a_out, data_start, bss_start, entry_address, a_name, new_name) | |||
| 749 | 714 | ||
| 750 | #endif /* not NO_REMAP */ | 715 | #endif /* not NO_REMAP */ |
| 751 | 716 | ||
| 752 | #ifdef COFF_ENCAPSULATE | ||
| 753 | /* We are encapsulating BSD format within COFF format. */ | ||
| 754 | { | ||
| 755 | struct coffscn *tp, *dp, *bp; | ||
| 756 | tp = &coffheader.scns[0]; | ||
| 757 | dp = &coffheader.scns[1]; | ||
| 758 | bp = &coffheader.scns[2]; | ||
| 759 | tp->s_size = hdr.a_text + sizeof(struct exec); | ||
| 760 | dp->s_paddr = data_start; | ||
| 761 | dp->s_vaddr = data_start; | ||
| 762 | dp->s_size = hdr.a_data; | ||
| 763 | bp->s_paddr = dp->s_vaddr + dp->s_size; | ||
| 764 | bp->s_vaddr = bp->s_paddr; | ||
| 765 | bp->s_size = hdr.a_bss; | ||
| 766 | coffheader.tsize = tp->s_size; | ||
| 767 | coffheader.dsize = dp->s_size; | ||
| 768 | coffheader.bsize = bp->s_size; | ||
| 769 | coffheader.text_start = tp->s_vaddr; | ||
| 770 | coffheader.data_start = dp->s_vaddr; | ||
| 771 | } | ||
| 772 | if (write (new, &coffheader, sizeof coffheader) != sizeof coffheader) | ||
| 773 | { | ||
| 774 | PERROR(new_name); | ||
| 775 | } | ||
| 776 | #endif /* COFF_ENCAPSULATE */ | ||
| 777 | |||
| 778 | if (write (new, &hdr, sizeof hdr) != sizeof hdr) | 717 | if (write (new, &hdr, sizeof hdr) != sizeof hdr) |
| 779 | { | 718 | { |
| 780 | PERROR (new_name); | 719 | PERROR (new_name); |