diff options
| author | Dan Nicolaescu | 2008-07-24 18:45:45 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-07-24 18:45:45 +0000 |
| commit | 340074e936c4393e42364b3c52b238a629571fc5 (patch) | |
| tree | bcbc4fd0ef5586a58988c61a587c3d09f10bc569 /src | |
| parent | a11af7f84505c8731f23d98355158da411882d22 (diff) | |
| download | emacs-340074e936c4393e42364b3c52b238a629571fc5.tar.gz emacs-340074e936c4393e42364b3c52b238a629571fc5.zip | |
* m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
* m/alpha.h (TEXT_END):
* m/ibmrs6000.h (TEXT_END):
* m/macppc.h (TEXT_END):
* s/darwin.h (TEXT_END):
* s/msdos.h (TEXT_END): Remove, unused.
* s/gnu-linux.h (BSD_PGRPS): Add a comment.
* s/cygwin.h: Remove comment.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/m/alpha.h | 1 | ||||
| -rw-r--r-- | src/m/amdx86-64.h | 11 | ||||
| -rw-r--r-- | src/m/ibmrs6000.h | 1 | ||||
| -rw-r--r-- | src/m/macppc.h | 4 | ||||
| -rw-r--r-- | src/s/cygwin.h | 3 | ||||
| -rw-r--r-- | src/s/darwin.h | 3 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 2 | ||||
| -rw-r--r-- | src/s/msdos.h | 1 |
9 files changed, 13 insertions, 22 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 514bcd225c1..2e003a1815c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs. | ||
| 4 | * m/alpha.h (TEXT_END): | ||
| 5 | * m/ibmrs6000.h (TEXT_END): | ||
| 6 | * m/macppc.h (TEXT_END): | ||
| 7 | * s/darwin.h (TEXT_END): | ||
| 8 | * s/msdos.h (TEXT_END): Remove, unused. | ||
| 9 | * s/gnu-linux.h (BSD_PGRPS): Add a comment. | ||
| 10 | * s/cygwin.h: Remove comment. | ||
| 11 | |||
| 3 | * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused. | 12 | * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused. |
| 4 | (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES. | 13 | (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES. |
| 5 | * m/intel386.h (DOT_GLOBAL_START): | 14 | * m/intel386.h (DOT_GLOBAL_START): |
diff --git a/src/m/alpha.h b/src/m/alpha.h index 6484241b928..ae869ceee36 100644 --- a/src/m/alpha.h +++ b/src/m/alpha.h | |||
| @@ -123,7 +123,6 @@ NOTE-END | |||
| 123 | #define NO_TERMIO | 123 | #define NO_TERMIO |
| 124 | 124 | ||
| 125 | #if defined (GNU_LINUX) || defined (__NetBSD__) || defined (__OpenBSD__) | 125 | #if defined (GNU_LINUX) || defined (__NetBSD__) || defined (__OpenBSD__) |
| 126 | # define TEXT_END ({ extern int _etext; &_etext; }) | ||
| 127 | # ifndef __ELF__ | 126 | # ifndef __ELF__ |
| 128 | # define COFF | 127 | # define COFF |
| 129 | # endif /* notdef __ELF__ */ | 128 | # endif /* notdef __ELF__ */ |
diff --git a/src/m/amdx86-64.h b/src/m/amdx86-64.h index bc3886f3473..2d97a6672de 100644 --- a/src/m/amdx86-64.h +++ b/src/m/amdx86-64.h | |||
| @@ -107,23 +107,18 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 107 | #undef LIB_STANDARD | 107 | #undef LIB_STANDARD |
| 108 | 108 | ||
| 109 | #else /* !__OpenBSD__ && !__FreeBSD__ && !__NetBSD__ && !SOLARIS2 */ | 109 | #else /* !__OpenBSD__ && !__FreeBSD__ && !__NetBSD__ && !SOLARIS2 */ |
| 110 | |||
| 111 | #undef START_FILES | ||
| 112 | #ifdef HAVE_LIB64_DIR | ||
| 113 | #define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o | ||
| 114 | #else | ||
| 115 | #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o | ||
| 116 | #endif | ||
| 117 | |||
| 118 | /* The duplicate -lgcc is intentional in the definition of LIB_STANDARD. | 110 | /* The duplicate -lgcc is intentional in the definition of LIB_STANDARD. |
| 119 | The reason is that some functions in libgcc.a call functions from libc.a, | 111 | The reason is that some functions in libgcc.a call functions from libc.a, |
| 120 | and some libc.a functions need functions from libgcc.a. Since most | 112 | and some libc.a functions need functions from libgcc.a. Since most |
| 121 | versions of ld are one-pass linkers, we need to mention -lgcc twice, | 113 | versions of ld are one-pass linkers, we need to mention -lgcc twice, |
| 122 | or else we risk getting unresolved externals. */ | 114 | or else we risk getting unresolved externals. */ |
| 115 | #undef START_FILES | ||
| 123 | #undef LIB_STANDARD | 116 | #undef LIB_STANDARD |
| 124 | #ifdef HAVE_LIB64_DIR | 117 | #ifdef HAVE_LIB64_DIR |
| 118 | #define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o | ||
| 125 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o | 119 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o |
| 126 | #else | 120 | #else |
| 121 | #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o | ||
| 127 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o | 122 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o |
| 128 | #endif | 123 | #endif |
| 129 | 124 | ||
diff --git a/src/m/ibmrs6000.h b/src/m/ibmrs6000.h index e60b076a057..e907444230d 100644 --- a/src/m/ibmrs6000.h +++ b/src/m/ibmrs6000.h | |||
| @@ -46,7 +46,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 46 | 46 | ||
| 47 | #ifndef USG5_4 | 47 | #ifndef USG5_4 |
| 48 | #define TEXT_START 0x10000000 | 48 | #define TEXT_START 0x10000000 |
| 49 | #define TEXT_END 0 | ||
| 50 | #define DATA_START 0x20000000 | 49 | #define DATA_START 0x20000000 |
| 51 | #define WORDS_BIG_ENDIAN | 50 | #define WORDS_BIG_ENDIAN |
| 52 | #define DATA_SEG_BITS 0x20000000 | 51 | #define DATA_SEG_BITS 0x20000000 |
diff --git a/src/m/macppc.h b/src/m/macppc.h index fc2c8f9d361..9204fcb1c6d 100644 --- a/src/m/macppc.h +++ b/src/m/macppc.h | |||
| @@ -35,10 +35,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 35 | 35 | ||
| 36 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | 36 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) |
| 37 | 37 | ||
| 38 | #if defined (GNU_LINUX) || defined (__NetBSD__) || defined (__OpenBSD__) | ||
| 39 | # define TEXT_END ({ extern int _etext; &_etext; }) | ||
| 40 | #endif | ||
| 41 | |||
| 42 | #if (defined (__NetBSD__) || defined (__OpenBSD__)) && defined (__ELF__) | 38 | #if (defined (__NetBSD__) || defined (__OpenBSD__)) && defined (__ELF__) |
| 43 | #define HAVE_TEXT_START | 39 | #define HAVE_TEXT_START |
| 44 | #endif | 40 | #endif |
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 18f3d6f0115..7c41571cc33 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -116,9 +116,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 116 | #define TERMINFO | 116 | #define TERMINFO |
| 117 | 117 | ||
| 118 | #define HAVE_SOCKETS | 118 | #define HAVE_SOCKETS |
| 119 | /* Xaw3d causes problems -- might have been fixed by NARROWPROTO | ||
| 120 | above, but I haven't tried it */ | ||
| 121 | /*#undef HAVE_XAW3D*/ | ||
| 122 | 119 | ||
| 123 | /* vfork() interacts badly with setsid(), causing ptys to fail to | 120 | /* vfork() interacts badly with setsid(), causing ptys to fail to |
| 124 | change their controlling terminal */ | 121 | change their controlling terminal */ |
diff --git a/src/s/darwin.h b/src/s/darwin.h index 2d298aeb743..3c227afe621 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -156,9 +156,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 156 | /* start_of_text isn't actually used, so make it compile without error. */ | 156 | /* start_of_text isn't actually used, so make it compile without error. */ |
| 157 | #define TEXT_START (0) | 157 | #define TEXT_START (0) |
| 158 | 158 | ||
| 159 | /* This seems to be right for end_of_text, but it may not be used anyway. */ | ||
| 160 | #define TEXT_END get_etext() | ||
| 161 | |||
| 162 | /* Definitions for how to compile & link. */ | 159 | /* Definitions for how to compile & link. */ |
| 163 | 160 | ||
| 164 | /* Link in the Carbon or AppKit lib. */ | 161 | /* Link in the Carbon or AppKit lib. */ |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index a74d08a3c84..09a09b2f19c 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -227,7 +227,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 227 | 227 | ||
| 228 | /* Use BSD process groups, but use setpgid() instead of setpgrp() to | 228 | /* Use BSD process groups, but use setpgid() instead of setpgrp() to |
| 229 | actually set a process group. */ | 229 | actually set a process group. */ |
| 230 | 230 | /* Interesting: only GNU/Linux defines this, but the BSDs do not... */ | |
| 231 | #define BSD_PGRPS | 231 | #define BSD_PGRPS |
| 232 | 232 | ||
| 233 | #define NARROWPROTO 1 | 233 | #define NARROWPROTO 1 |
diff --git a/src/s/msdos.h b/src/s/msdos.h index 055ffad98a2..2d29a5548b7 100644 --- a/src/s/msdos.h +++ b/src/s/msdos.h | |||
| @@ -112,7 +112,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 112 | 112 | ||
| 113 | #define DATA_START (&etext + 1) | 113 | #define DATA_START (&etext + 1) |
| 114 | #define TEXT_START &start | 114 | #define TEXT_START &start |
| 115 | #define TEXT_END &etext | ||
| 116 | 115 | ||
| 117 | #define _NAIVE_DOS_REGS | 116 | #define _NAIVE_DOS_REGS |
| 118 | 117 | ||