* [PATCH] fix Emacs building on FreeBSD/sparc64
@ 2002-10-31 18:27 David O'Brien
2002-11-01 12:29 ` Mark Mitchell
0 siblings, 1 reply; 2+ messages in thread
From: David O'Brien @ 2002-10-31 18:27 UTC (permalink / raw)
To: gcc-patches
I'd like to commit this to both mainline and 3.2-branch.
2002-10-31 David O'Brien <obrien@FreeBSD.org>
* config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
Add comment.
Index: freebsd.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/sparc/freebsd.h,v
retrieving revision 1.13
diff -u -r1.13 freebsd.h
--- freebsd.h 31 Oct 2002 09:08:11 -0000 1.13
+++ freebsd.h 1 Nov 2002 02:25:11 -0000
@@ -18,11 +18,13 @@
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-/* FreeBSD needs's the platform name (sparc64) defined. */
+/* FreeBSD needs's the platform name (sparc64) defined.
+ Emacs needs to know if the arch is 64 or 32-bits. */
#undef CPP_CPU64_DEFAULT_SPEC
-#define CPP_CPU64_DEFAULT_SPEC "-D__sparc64__ -D__sparc_v9__"
+#define CPP_CPU64_DEFAULT_SPEC "-D__sparc64__ -D__sparc_v9__ -D__arch64__"
+/* Because we include sparc/sysv4.h. */
#undef CPP_PREDEFINES
#define CPP_PREDEFINES FBSD_CPP_PREDEFINES
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-01 20:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-31 18:27 [PATCH] fix Emacs building on FreeBSD/sparc64 David O'Brien
2002-11-01 12:29 ` Mark Mitchell
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).