aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@pobox.com>1999-10-02 15:50:57 +0000
committerAnthony Green <green@cygnus.com>1999-10-02 15:50:57 +0000
commit854ae3d7a77abb641f2da79e893588737dd5fb95 (patch)
tree08f86cfc4b4858c7ceb6ea539f1288b0330c8138 /boehm-gc
parentc448ecbdda9c1da22639de4b323f6fea170af1c6 (diff)
I am committing the following changes to enable the picojava port. I
will also forward them to Boehm. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@29767 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc')
-rw-r--r--boehm-gc/ChangeLog5
-rw-r--r--boehm-gc/config.h11
-rw-r--r--boehm-gc/mach_dep.c9
3 files changed, 24 insertions, 1 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index 58ec68574be..fcb5d49c7fc 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,8 @@
+1999-09-29 Steve Chamberlain <sac@pobox.com>
+
+ * config.h: Added picoJava target.
+ * mach_dep.h (GC_push_regs): New code for picoJava.
+
1999-09-28 Tom Tromey <tromey@cygnus.com>
* aclocal.m4, configure: Rebuilt.
diff --git a/boehm-gc/config.h b/boehm-gc/config.h
index 7791b6cacb9..d3370ba6c14 100644
--- a/boehm-gc/config.h
+++ b/boehm-gc/config.h
@@ -235,6 +235,10 @@
# endif
# define mach_type_known
# endif
+# if defined(__pj__)
+# define PJ
+# define mach_type_known
+# endif
/* Feel free to add more clauses here */
@@ -985,4 +989,11 @@
/* include assembly code to do it well. */
# endif
+# if defined(PJ)
+# define ALIGNMENT 4
+ extern int _etext;
+# define DATASTART ((ptr_t)(&_etext))
+# define HEURISTIC1
+# endif
+
# endif
diff --git a/boehm-gc/mach_dep.c b/boehm-gc/mach_dep.c
index 09a79883fdf..e39880b46ac 100644
--- a/boehm-gc/mach_dep.c
+++ b/boehm-gc/mach_dep.c
@@ -327,12 +327,19 @@ void GC_push_regs()
GC_push_all_stack((ptr_t)regs, lim);
}
# endif
+# if defined(PJ)
+ {
+ register int * sp asm ("optop");
+ extern int *__libc_stack_end;
+ GC_push_all_stack (sp, __libc_stack_end);
+ }
+# endif
/* other machines... */
# if !(defined M68K) && !(defined VAX) && !(defined RT)
# if !(defined SPARC) && !(defined I386) && !(defined NS32K)
# if !defined(HP_PA) && !defined(M88K) && !defined(POWERPC)
-# if !defined(UTS4)
+# if !defined(UTS4) && !defined(PJ)
--> bad news <--
# endif
# endif