diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-04 22:27:35 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-04 22:27:35 +0000 |
commit | 4576deab94f8143f2a7fd72fdb7b0562aa1c6913 (patch) | |
tree | d44828096a384e2296cf383320872e7308002f92 /gcc/java/lang.c | |
parent | a51bf27b0448f45ed532561d46ce14d277da7295 (diff) | |
download | gcc-4576deab94f8143f2a7fd72fdb7b0562aa1c6913.tar.gz |
* Makefile.in (JAVA_OBJS): Added boehm.o.
(boehm.o): New target.
* Make-lang.in (JAVA_SRCS): Added boehm.c.
* java-tree.h (flag_use_boehm_gc): Declare.
(get_boehm_type_descriptor): Declare.
* lang.c (lang_f_options): Added `use-boehm-gc'.
(flag_use_boehm_gc): New global.
* lang-options.h: Added -fuse-boehm-gc.
* boehm.c: New file.
* class.c (get_dispatch_table): If class uses a Boehm type
descriptor, put it in the vtable.
(make_class_data): Removed dead code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32331 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r-- | gcc/java/lang.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 10db753d678..8992c57a55e 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -110,6 +110,9 @@ int flag_static_local_jdk1_1 = 0; /* When non zero, call a library routine to do integer divisions. */ int flag_use_divide_subroutine = 1; +/* When non zero, generate code for the Boehm GC. */ +int flag_use_boehm_gc = 0; + /* From gcc/flags.h, and indicates if exceptions are turned on or not. */ extern int flag_new_exceptions; @@ -127,6 +130,7 @@ lang_f_options[] = {"emit-class-file", &flag_emit_class_files, 1}, {"emit-class-files", &flag_emit_class_files, 1}, {"use-divide-subroutine", &flag_use_divide_subroutine, 1}, + {"use-boehm-gc", &flag_use_boehm_gc, 1} }; JCF *current_jcf; |