diff options
| author | Glenn Morris | 2012-07-13 20:04:10 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-13 20:04:10 -0400 |
| commit | 5b3f250f88e2bf2abd8b5af553b7643d3cdcc782 (patch) | |
| tree | b9b19f2d8ebbbdc59409e5ea32626881b2aca2c7 /src | |
| parent | 5b63334279790dfee1da5a7ffb83630fb8202a87 (diff) | |
| download | emacs-5b3f250f88e2bf2abd8b5af553b7643d3cdcc782.tar.gz emacs-5b3f250f88e2bf2abd8b5af553b7643d3cdcc782.zip | |
Move GC_SETJMP_WORKS, GC_MARK_STACK from src/s to configure
* configure.ac (GC_SETJMP_WORKS, GC_MARK_STACK): Move here from src/s.
(AH_BOTTOM): Move GC_SETJMP_WORKS GCC fallback to main body.
* src/s/aix4-2.h, src/s/freebsd.h, src/s/gnu-linux.h, src/s/hpux10-20.h:
* src/s/irix6-5.h, src/s/netbsd.h, src/s/sol2-6.h, src/s/unixware.h:
Let configure set GC_SETJMP_WORKS, GC_MARK_STACK.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 3 | ||||
| -rw-r--r-- | src/s/freebsd.h | 3 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 15 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 4 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 2 | ||||
| -rw-r--r-- | src/s/netbsd.h | 3 | ||||
| -rw-r--r-- | src/s/sol2-6.h | 1 | ||||
| -rw-r--r-- | src/s/unixware.h | 5 |
9 files changed, 6 insertions, 36 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b7736ae5db6..6571030039c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-07-14 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * s/aix4-2.h, s/freebsd.h, s/gnu-linux.h, s/hpux10-20.h: | ||
| 4 | * s/irix6-5.h, s/netbsd.h, s/sol2-6.h, s/unixware.h: | ||
| 5 | Let configure set GC_SETJMP_WORKS, GC_MARK_STACK. | ||
| 6 | |||
| 1 | 2012-07-13 Glenn Morris <rgm@gnu.org> | 7 | 2012-07-13 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Let configure set it. | 9 | * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Let configure set it. |
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index debc9f78c16..6c881a7fb8c 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -19,6 +19,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ | 19 | /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ |
| 20 | #undef sigmask | 20 | #undef sigmask |
| 21 | 21 | ||
| 22 | /* Conservative garbage collection has not been tested, so for now | ||
| 23 | play it safe and stick with the old-fashioned way of marking. */ | ||
| 24 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE | ||
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index ff31f073427..9177403f426 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -20,6 +20,3 @@ GNU General Public License for more details. | |||
| 20 | You should have received a copy of the GNU General Public License | 20 | You should have received a copy of the GNU General Public License |
| 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 22 | 22 | ||
| 23 | /* Tell that garbage collector that setjmp is known to save all | ||
| 24 | registers relevant for conservative garbage collection in the jmp_buf. */ | ||
| 25 | #define GC_SETJMP_WORKS 1 | ||
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 0a083fe3f15..2847fd6d19c 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -20,18 +20,3 @@ GNU General Public License for more details. | |||
| 20 | You should have received a copy of the GNU General Public License | 20 | You should have received a copy of the GNU General Public License |
| 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 22 | 22 | ||
| 23 | /* Tell that garbage collector that setjmp is known to save all | ||
| 24 | registers relevant for conservative garbage collection in the jmp_buf. | ||
| 25 | Not all the architectures are tested, but there are Debian packages | ||
| 26 | for SCM and/or Guile on them, so the technique must work. See also | ||
| 27 | comments in alloc.c concerning setjmp and gcc. Fixme: it's | ||
| 28 | probably safe to just let the GCC conditional in AH_BOTTOM handle this. | ||
| 29 | */ | ||
| 30 | #if defined __i386__ || defined __sparc__ || defined __mc68000__ \ | ||
| 31 | || defined __alpha__ || defined __mips__ || defined __s390__ \ | ||
| 32 | || defined __arm__ || defined __powerpc__ || defined __amd64__ \ | ||
| 33 | || defined __ia64__ || defined __sh__ | ||
| 34 | #define GC_SETJMP_WORKS 1 | ||
| 35 | #else | ||
| 36 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE | ||
| 37 | #endif | ||
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index c913062701a..94b46a715ea 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -25,7 +25,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | Note we also undef HAVE_RANDOM via configure. */ | 25 | Note we also undef HAVE_RANDOM via configure. */ |
| 26 | #undef srandom | 26 | #undef srandom |
| 27 | #undef random | 27 | #undef random |
| 28 | |||
| 29 | /* Conservative garbage collection has not been tested, so for now | ||
| 30 | play it safe and stick with the old-fashioned way of marking. */ | ||
| 31 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE | ||
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index 1d1989ad9ac..9b215845461 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -30,5 +30,3 @@ char *_getpty(); | |||
| 30 | 30 | ||
| 31 | #undef TIOCSIGSEND /* defined in usg5-4-common.h */ | 31 | #undef TIOCSIGSEND /* defined in usg5-4-common.h */ |
| 32 | 32 | ||
| 33 | /* Tested on Irix 6.5. SCM worked on earlier versions. */ | ||
| 34 | #define GC_SETJMP_WORKS 1 | ||
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index b0e298f2c2e..7a571ee8116 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -22,6 +22,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | that are handled with CPP __RENAME() macro in signal.h. */ | 22 | that are handled with CPP __RENAME() macro in signal.h. */ |
| 23 | #include <signal.h> | 23 | #include <signal.h> |
| 24 | 24 | ||
| 25 | /* Tell that garbage collector that setjmp is known to save all | ||
| 26 | registers relevant for conservative garbage collection in the jmp_buf. */ | ||
| 27 | #define GC_SETJMP_WORKS 1 | ||
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h index 78d13f2063d..3bed55598b7 100644 --- a/src/s/sol2-6.h +++ b/src/s/sol2-6.h | |||
| @@ -19,4 +19,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | #include "usg5-4-common.h" | 20 | #include "usg5-4-common.h" |
| 21 | 21 | ||
| 22 | #define GC_SETJMP_WORKS 1 | ||
diff --git a/src/s/unixware.h b/src/s/unixware.h index f42e6363245..59c74a56f4e 100644 --- a/src/s/unixware.h +++ b/src/s/unixware.h | |||
| @@ -17,9 +17,4 @@ GNU General Public License for more details. | |||
| 17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | |||
| 21 | #include "usg5-4-common.h" | 20 | #include "usg5-4-common.h" |
| 22 | |||
| 23 | /* Conservative garbage collection has not been tested, so for now | ||
| 24 | play it safe and stick with the old-fashioned way of marking. */ | ||
| 25 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE | ||