unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [Andreas Jochens] Bug#300368: emacs21: FTBFS (ppc64): Please add support for the ppc64 architecture
@ 2005-03-19 14:34 Jérôme Marant
  0 siblings, 0 replies; only message in thread
From: Jérôme Marant @ 2005-03-19 14:34 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 184 bytes --]


Hi,

I've just received this patch porting Emacs to the ppc64 architecture.
I have no idea whether this is the right way to do it; maybe someone
will be able to improve it.

Cheers,


[-- Attachment #2: Type: message/rfc822, Size: 4526 bytes --]

From: Andreas Jochens <aj@andaco.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Bug#300368: emacs21: FTBFS (ppc64): Please add support for the ppc64 architecture
Date: Sat, 19 Mar 2005 11:07:17 +0100
Message-ID: <E1DCarV-00072S-5p@localhost.localdomain>

Package: emacs21
Severity: wishlist
Tags: patch

With the attached patch, 'emacs21' can be compiled on ppc64.

This patch is similar to the patch which is used by Fedora for ppc64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/emacs21-21.3+1/src/m/macppc.h ./src/m/macppc.h
--- ../tmp-orig/emacs21-21.3+1/src/m/macppc.h	2001-10-23 08:43:33.000000000 +0200
+++ ./src/m/macppc.h	2005-02-09 10:51:27.925283755 +0100
@@ -95,11 +95,47 @@
 
 #ifdef LINUX
 #define LINKER $(CC) -nostdlib
-#define LD_SWITCH_MACHINE -Xlinker -m -Xlinker elf32ppc
+#ifdef __powerpc64__
+#define LD_SWITCH_MACHINE -m64 -Xlinker -m -Xlinker elf64ppc
+#else
+#define LD_SWITCH_MACHINE -m32 -Xlinker -m -Xlinker elf32ppc
+#endif
 /* 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
+
+#ifdef __powerpc64__
+/* Misc 64-bit fixups, patterned after the x86_64 file */
+#undef BITS_PER_LONG
+#undef BITS_PER_EMACS_INT
+#undef VALBITS
+#undef PNTR_COMPARISON_TYPE
+#undef MARKBIT
+#undef XINT
+#undef XUINT
+#undef XPNTR
+#undef START_FILES
+#undef LIB_STANDARD
+#undef EMACS_INT
+#undef EMACS_UINT
+#undef SPECIAL_EMACS_INT
+
+#define BITS_PER_LONG 64
+#define BITS_PER_EMACS_INT 64
+#define VALBITS 60
+#define PNTR_COMPARISON_TYPE unsigned long
+#define MARKBIT         0x8000000000000000L
+
+#define XINT(a)  (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
+#define XUINT(a) ((long) (a) & VALMASK)
+#define XPNTR(a) XUINT (a)
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
+#define EMACS_INT               long
+#define EMACS_UINT              unsigned long
+#define SPECIAL_EMACS_INT
+#endif
 #endif
 
 #if 0  /* This breaks things on PPC GNU/Linux ecept for Yellowdog,



[-- Attachment #3: Type: text/plain, Size: 24 bytes --]



-- 
Jérôme Marant

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-19 14:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-19 14:34 [Andreas Jochens] Bug#300368: emacs21: FTBFS (ppc64): Please add support for the ppc64 architecture Jérôme Marant

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).