diff options
| author | Glenn Morris | 2008-07-08 07:03:07 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-07-08 07:03:07 +0000 |
| commit | 4a00783e8e07d7487bce5041d0f9b22247268346 (patch) | |
| tree | 9378fcf00ca8e0c03bb99ddb4e23a84e18fec300 /src | |
| parent | a6f75881406e540517fd96a8ad28ec997c2127fa (diff) | |
| download | emacs-4a00783e8e07d7487bce5041d0f9b22247268346.tar.gz emacs-4a00783e8e07d7487bce5041d0f9b22247268346.zip | |
Use __sparc__ rather than sparc. (Bug#507.)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/alloc.c | 2 | ||||
| -rw-r--r-- | src/ecrt0.c | 4 | ||||
| -rw-r--r-- | src/m/sparc.h | 6 |
4 files changed, 11 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7766bc78032..e8700d4e049 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-07-08 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.) | ||
| 4 | * alloc.c, ecrt0.c: Use __sparc__ rather than sparc. | ||
| 5 | |||
| 1 | 2008-07-07 Chong Yidong <cyd@stupidchicken.com> | 6 | 2008-07-07 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * frame.c (Qinhibit_face_set_after_frame_default): Var deleted. | 8 | * frame.c (Qinhibit_face_set_after_frame_default): Var deleted. |
diff --git a/src/alloc.c b/src/alloc.c index 797b385fbd2..b942e7a6e01 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4487,7 +4487,7 @@ mark_stack () | |||
| 4487 | /* Fixme: Code in the Boehm GC suggests flushing (with `flushrs') is | 4487 | /* Fixme: Code in the Boehm GC suggests flushing (with `flushrs') is |
| 4488 | needed on ia64 too. See mach_dep.c, where it also says inline | 4488 | needed on ia64 too. See mach_dep.c, where it also says inline |
| 4489 | assembler doesn't work with relevant proprietary compilers. */ | 4489 | assembler doesn't work with relevant proprietary compilers. */ |
| 4490 | #ifdef sparc | 4490 | #ifdef __sparc__ |
| 4491 | asm ("ta 3"); | 4491 | asm ("ta 3"); |
| 4492 | #endif | 4492 | #endif |
| 4493 | 4493 | ||
diff --git a/src/ecrt0.c b/src/ecrt0.c index 4c4f297c9ca..7ef066ef22f 100644 --- a/src/ecrt0.c +++ b/src/ecrt0.c | |||
| @@ -200,7 +200,7 @@ start1 (ignore, argc, xargv) | |||
| 200 | 200 | ||
| 201 | #endif /* not CRT0_DUMMIES */ | 201 | #endif /* not CRT0_DUMMIES */ |
| 202 | 202 | ||
| 203 | #ifdef sparc | 203 | #ifdef __sparc__ |
| 204 | asm (".global __start"); | 204 | asm (".global __start"); |
| 205 | asm (".text"); | 205 | asm (".text"); |
| 206 | asm ("__start:"); | 206 | asm ("__start:"); |
| @@ -218,7 +218,7 @@ asm (" sub %sp, 24, %sp"); | |||
| 218 | asm (" call __exit"); | 218 | asm (" call __exit"); |
| 219 | asm (" nop"); | 219 | asm (" nop"); |
| 220 | 220 | ||
| 221 | #endif /* sparc */ | 221 | #endif /* __sparc__ */ |
| 222 | 222 | ||
| 223 | #if __FreeBSD__ == 2 | 223 | #if __FreeBSD__ == 2 |
| 224 | char *__progname; | 224 | char *__progname; |
diff --git a/src/m/sparc.h b/src/m/sparc.h index 35103e560dc..7113b8b1fce 100644 --- a/src/m/sparc.h +++ b/src/m/sparc.h | |||
| @@ -36,10 +36,10 @@ NOTE-END */ | |||
| 36 | 36 | ||
| 37 | #define NO_ARG_ARRAY | 37 | #define NO_ARG_ARRAY |
| 38 | 38 | ||
| 39 | /* Say this machine is a sparc */ | 39 | /* Say this machine is a sparc. Probably already defined. */ |
| 40 | 40 | ||
| 41 | #ifndef sparc | 41 | #ifndef __sparc__ |
| 42 | #define sparc | 42 | #define __sparc__ |
| 43 | #endif | 43 | #endif |
| 44 | 44 | ||
| 45 | /* Use type int rather than a union, to represent Lisp_Object */ | 45 | /* Use type int rather than a union, to represent Lisp_Object */ |