]> code.delx.au - gnu-emacs/blobdiff - src/m/macppc.h
2002-08-11 Andrew Choi <akochoi@shaw.ca>
[gnu-emacs] / src / m / macppc.h
index a3a5dc3da201637a2764f43449d7a21201883ebb..6f8f841a46c43de5627a9a2dfc90bfa3639629d8 100644 (file)
@@ -1,5 +1,5 @@
 /* machine description file For the powerpc Macintosh.
-   Copyright (C) 1994, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1994, 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -51,15 +51,6 @@ Boston, MA 02111-1307, USA.  */
 
 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
 
-/* Define C_ALLOCA if this machine does not support a true alloca
-   and the one written in C should be used instead.
-   Define HAVE_ALLOCA to say that the system provides a properly
-   working alloca function and it should be used.
-   Define neither one if an assembler-language alloca
-   in the file alloca.s should be used.  */
-
-#define HAVE_ALLOCA
-
 /* Some really obscure 4.2-based systems (like Sequent DYNIX)
  * do not support asynchronous I/O (using SIGIO) on sockets,
  * even though it works fine on tty's.  If you have one of
@@ -96,9 +87,20 @@ Boston, MA 02111-1307, USA.  */
 #ifdef LINUX
 #define LINKER $(CC) -nostdlib
 #define LD_SWITCH_MACHINE -Xlinker -m -Xlinker elf32ppc
+/* s/gnu-linux.h defines this to `-z nocombreloc' which does not work here
+   because prefix-args is not used.  */
+#undef LD_SWITCH_SYSTEM_TEMACS
+#define LD_SWITCH_MACHINE_TEMACS -Xlinker -znocombreloc
 #endif
 
-/* GCC 2.95 on GNU/Linux PPC changed the load address to 0x10000000.  */
-#if defined(__linux__) && __GNUC__ == 2 && __GNUC_MINOR__ >= 95
+#if 0  /* This breaks things on PPC GNU/Linux ecept for Yellowdog,
+         even with identical GCC, as, ld.  Let's take it out until we
+         know what's really going on here.  */
+/* GCC 2.95 and newer on GNU/Linux PPC changed the load address to
+   0x10000000.  */
+#if defined __linux__
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
 #define DATA_SEG_BITS  0x10000000
 #endif
+#endif
+#endif /* 0 */