From: Glenn Morris Date: Tue, 8 Jul 2008 07:03:07 +0000 (+0000) Subject: Use __sparc__ rather than sparc. (Bug#507.) X-Git-Tag: emacs-pretest-23.0.90~4295 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4a00783e8e07d7487bce5041d0f9b22247268346;p=emacs.git Use __sparc__ rather than sparc. (Bug#507.) --- diff --git a/src/ChangeLog b/src/ChangeLog index 7766bc78032..e8700d4e049 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-07-08 Glenn Morris + + * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.) + * alloc.c, ecrt0.c: Use __sparc__ rather than sparc. + 2008-07-07 Chong Yidong * 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 () /* Fixme: Code in the Boehm GC suggests flushing (with `flushrs') is needed on ia64 too. See mach_dep.c, where it also says inline assembler doesn't work with relevant proprietary compilers. */ -#ifdef sparc +#ifdef __sparc__ asm ("ta 3"); #endif 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) #endif /* not CRT0_DUMMIES */ -#ifdef sparc +#ifdef __sparc__ asm (".global __start"); asm (".text"); asm ("__start:"); @@ -218,7 +218,7 @@ asm (" sub %sp, 24, %sp"); asm (" call __exit"); asm (" nop"); -#endif /* sparc */ +#endif /* __sparc__ */ #if __FreeBSD__ == 2 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 */ #define NO_ARG_ARRAY -/* Say this machine is a sparc */ +/* Say this machine is a sparc. Probably already defined. */ -#ifndef sparc -#define sparc +#ifndef __sparc__ +#define __sparc__ #endif /* Use type int rather than a union, to represent Lisp_Object */