+2008-07-08 Glenn Morris <rgm@gnu.org>
+
+ * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
+ * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
+
2008-07-07 Chong Yidong <cyd@stupidchicken.com>
* frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
/* 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
#endif /* not CRT0_DUMMIES */
-#ifdef sparc
+#ifdef __sparc__
asm (".global __start");
asm (".text");
asm ("__start:");
asm (" call __exit");
asm (" nop");
-#endif /* sparc */
+#endif /* __sparc__ */
#if __FreeBSD__ == 2
char *__progname;
#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 */