diff options
| author | Glenn Morris | 2008-08-10 02:40:17 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-08-10 02:40:17 +0000 |
| commit | aef88a00d364bbb208acff2d9b66b2a1eb6cf8f5 (patch) | |
| tree | 9d61b62a8f62f40a4794d9e3a4cfdadf66b73774 /src | |
| parent | e9251f82752dccce1370155cf30831ef6cdb83f3 (diff) | |
| download | emacs-aef88a00d364bbb208acff2d9b66b2a1eb6cf8f5.tar.gz emacs-aef88a00d364bbb208acff2d9b66b2a1eb6cf8f5.zip | |
Use __sparc__ rather than sparc.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/alloc.c | 2 | ||||
| -rw-r--r-- | src/ecrt0.c | 4 | ||||
| -rw-r--r-- | src/m/sparc.h | 6 | ||||
| -rw-r--r-- | src/unexsunos4.c | 4 |
5 files changed, 16 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 566d19e1dc6..05e78765f9c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2008-08-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | Sync from trunk 2008-07-08: | ||
| 4 | * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.) | ||
| 5 | * alloc.c, ecrt0.c: Use __sparc__ rather than sparc. | ||
| 6 | |||
| 7 | * unexsunos4.c: Use __sparc__ rather than sparc. | ||
| 8 | |||
| 1 | 2008-08-08 Chong Yidong <cyd@stupidchicken.com> | 9 | 2008-08-08 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 10 | ||
| 3 | * xdisp.c (move_it_to): When stopping at a charpos, check if | 11 | * xdisp.c (move_it_to): When stopping at a charpos, check if |
diff --git a/src/alloc.c b/src/alloc.c index 46887bb332c..f37d74acaf4 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4572,7 +4572,7 @@ mark_stack () | |||
| 4572 | /* Fixme: Code in the Boehm GC suggests flushing (with `flushrs') is | 4572 | /* Fixme: Code in the Boehm GC suggests flushing (with `flushrs') is |
| 4573 | needed on ia64 too. See mach_dep.c, where it also says inline | 4573 | needed on ia64 too. See mach_dep.c, where it also says inline |
| 4574 | assembler doesn't work with relevant proprietary compilers. */ | 4574 | assembler doesn't work with relevant proprietary compilers. */ |
| 4575 | #ifdef sparc | 4575 | #ifdef __sparc__ |
| 4576 | asm ("ta 3"); | 4576 | asm ("ta 3"); |
| 4577 | #endif | 4577 | #endif |
| 4578 | 4578 | ||
diff --git a/src/ecrt0.c b/src/ecrt0.c index 36f6caeceb9..d4e88c3c835 100644 --- a/src/ecrt0.c +++ b/src/ecrt0.c | |||
| @@ -582,7 +582,7 @@ _start() | |||
| 582 | #endif /* elxsi */ | 582 | #endif /* elxsi */ |
| 583 | 583 | ||
| 584 | 584 | ||
| 585 | #ifdef sparc | 585 | #ifdef __sparc__ |
| 586 | asm (".global __start"); | 586 | asm (".global __start"); |
| 587 | asm (".text"); | 587 | asm (".text"); |
| 588 | asm ("__start:"); | 588 | asm ("__start:"); |
| @@ -600,7 +600,7 @@ asm (" sub %sp, 24, %sp"); | |||
| 600 | asm (" call __exit"); | 600 | asm (" call __exit"); |
| 601 | asm (" nop"); | 601 | asm (" nop"); |
| 602 | 602 | ||
| 603 | #endif /* sparc */ | 603 | #endif /* __sparc__ */ |
| 604 | 604 | ||
| 605 | #if __FreeBSD__ == 2 | 605 | #if __FreeBSD__ == 2 |
| 606 | char *__progname; | 606 | char *__progname; |
diff --git a/src/m/sparc.h b/src/m/sparc.h index 333d78863ad..236038883b8 100644 --- a/src/m/sparc.h +++ b/src/m/sparc.h | |||
| @@ -38,10 +38,10 @@ NOTE-END */ | |||
| 38 | 38 | ||
| 39 | #define NO_ARG_ARRAY | 39 | #define NO_ARG_ARRAY |
| 40 | 40 | ||
| 41 | /* Say this machine is a sparc */ | 41 | /* Say this machine is a sparc. Probably already defined. */ |
| 42 | 42 | ||
| 43 | #ifndef sparc | 43 | #ifndef __sparc__ |
| 44 | #define sparc | 44 | #define __sparc__ |
| 45 | #endif | 45 | #endif |
| 46 | 46 | ||
| 47 | /* Use type int rather than a union, to represent Lisp_Object */ | 47 | /* Use type int rather than a union, to represent Lisp_Object */ |
diff --git a/src/unexsunos4.c b/src/unexsunos4.c index 17f2b298e00..773f3b407dd 100644 --- a/src/unexsunos4.c +++ b/src/unexsunos4.c | |||
| @@ -236,11 +236,11 @@ unexec (new_name, a_name, bndry, bss_start, entry) | |||
| 236 | #else /* not SUNOS4_SHARED_LIBRARIES */ | 236 | #else /* not SUNOS4_SHARED_LIBRARIES */ |
| 237 | rel = erel = 0; | 237 | rel = erel = 0; |
| 238 | #endif /* not SUNOS4_SHARED_LIBRARIES */ | 238 | #endif /* not SUNOS4_SHARED_LIBRARIES */ |
| 239 | #ifdef sparc | 239 | #ifdef __sparc__ |
| 240 | #define REL_INFO_TYPE struct reloc_info_sparc | 240 | #define REL_INFO_TYPE struct reloc_info_sparc |
| 241 | #else | 241 | #else |
| 242 | #define REL_INFO_TYPE struct relocation_info | 242 | #define REL_INFO_TYPE struct relocation_info |
| 243 | #endif /* sparc */ | 243 | #endif /* __sparc__ */ |
| 244 | #define REL_TARGET_ADDRESS(r) (((REL_INFO_TYPE *)(r))->r_address) | 244 | #define REL_TARGET_ADDRESS(r) (((REL_INFO_TYPE *)(r))->r_address) |
| 245 | #endif /* SUNOS4 */ | 245 | #endif /* SUNOS4 */ |
| 246 | #if defined (__FreeBSD__) || defined (__NetBSD__) | 246 | #if defined (__FreeBSD__) || defined (__NetBSD__) |