diff options
| author | Glenn Morris | 2012-07-11 14:39:44 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-11 14:39:44 -0400 |
| commit | e091e1bd02f2c05966e5c735858ebec43daef40b (patch) | |
| tree | c5275cb7f93f9b2ca2dcf3e6acce6d7fdae5c1c4 | |
| parent | 86aa551c1be6bb30aadd99bce4d9ad8557ea60b1 (diff) | |
| download | emacs-e091e1bd02f2c05966e5c735858ebec43daef40b.tar.gz emacs-e091e1bd02f2c05966e5c735858ebec43daef40b.zip | |
Trivial re-ordering and comment updating
| -rw-r--r-- | src/s/gnu-linux.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index b4031bb1ca4..583a5c5de21 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -87,20 +87,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 87 | 87 | ||
| 88 | #define NARROWPROTO 1 | 88 | #define NARROWPROTO 1 |
| 89 | 89 | ||
| 90 | /* Tell that garbage collector that setjmp is known to save all | ||
| 91 | registers relevant for conservative garbage collection in the jmp_buf. */ | ||
| 92 | /* Not all the architectures are tested, but there are Debian packages | ||
| 93 | for SCM and/or Guile on them, so the technique must work. See also | ||
| 94 | comments in alloc.c concerning setjmp and gcc. Fixme: it's | ||
| 95 | probably safe to make this conditional just on GCC, except for ia64 | ||
| 96 | register window-flushing. */ | ||
| 97 | /* Don't use #cpu here since in newest development versions of GCC, | ||
| 98 | we must call cpp with -traditional, and that disables #cpu. */ | ||
| 99 | #if defined __i386__ || defined __sparc__ || defined __mc68000__ \ | ||
| 100 | || defined __alpha__ || defined __mips__ || defined __s390__ \ | ||
| 101 | || defined __arm__ || defined __powerpc__ || defined __amd64__ \ | ||
| 102 | || defined __ia64__ || defined __sh__ | ||
| 103 | #define GC_SETJMP_WORKS 1 | ||
| 104 | #ifdef __ia64__ | 90 | #ifdef __ia64__ |
| 105 | #define GC_MARK_SECONDARY_STACK() \ | 91 | #define GC_MARK_SECONDARY_STACK() \ |
| 106 | do { \ | 92 | do { \ |
| @@ -110,6 +96,19 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 110 | __builtin_ia64_bsp ()); \ | 96 | __builtin_ia64_bsp ()); \ |
| 111 | } while (0) | 97 | } while (0) |
| 112 | #endif | 98 | #endif |
| 99 | |||
| 100 | /* Tell that garbage collector that setjmp is known to save all | ||
| 101 | registers relevant for conservative garbage collection in the jmp_buf. | ||
| 102 | Not all the architectures are tested, but there are Debian packages | ||
| 103 | for SCM and/or Guile on them, so the technique must work. See also | ||
| 104 | comments in alloc.c concerning setjmp and gcc. Fixme: it's | ||
| 105 | probably safe to just let the GCC conditional in AH_BOTTOM handle this. | ||
| 106 | */ | ||
| 107 | #if defined __i386__ || defined __sparc__ || defined __mc68000__ \ | ||
| 108 | || defined __alpha__ || defined __mips__ || defined __s390__ \ | ||
| 109 | || defined __arm__ || defined __powerpc__ || defined __amd64__ \ | ||
| 110 | || defined __ia64__ || defined __sh__ | ||
| 111 | #define GC_SETJMP_WORKS 1 | ||
| 113 | #else | 112 | #else |
| 114 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE | 113 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE |
| 115 | #endif | 114 | #endif |