This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] add m32r-linux to boehm-gc
- From: Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 13 Oct 2004 15:48:27 +0900
- Subject: [PATCH] add m32r-linux to boehm-gc
Hi Nick,
This patch is to add m32r-linux target to boehm-gc.
Please commit it.
boehm-gc/ChangeLog
2004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* include/private/gcconfig.h: Add m32r-linux target.
Regards,
Kazuhiro Inaoka
Index: include/private/gcconfig.h
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/include/private/gcconfig.h,v
retrieving revision 1.38
diff -u -r1.38 gcconfig.h
--- include/private/gcconfig.h 13 Aug 2004 23:05:33 -0000 1.38
+++ include/private/gcconfig.h 13 Oct 2004 06:40:43 -0000
@@ -249,6 +249,10 @@
# define SH
# define mach_type_known
# endif
+# if defined(LINUX) && defined(__m32r__)
+# define M32R
+# define mach_type_known
+# endif
# if defined(__alpha) || defined(__alpha__)
# define ALPHA
# if !defined(LINUX) && !defined(NETBSD) && !defined(OPENBSD) && !defined(FREEBSD)
@@ -1818,6 +1822,23 @@
# define DATAEND /* not needed */
# endif
+# ifdef M32R
+# define CPP_WORDSZ 32
+# define MACH_TYPE "M32R"
+# define ALIGNMENT 4
+# ifdef LINUX
+# define OS_TYPE "LINUX"
+# define LINUX_STACKBOTTOM
+# undef STACK_GRAN
+# define STACK_GRAN 0x10000000
+# define USE_GENERIC_PUSH_REGS
+# define DYNAMIC_LOADING
+# define SEARCH_FOR_DATA_START
+ extern int _end[];
+# define DATAEND (_end)
+# endif
+# endif
+
# ifdef X86_64
# define MACH_TYPE "X86_64"
# define ALIGNMENT 8