diff options
author | Per Bothner <per@bothner.com> | 2001-03-15 20:44:09 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2001-03-15 20:44:09 -0800 |
commit | 69ca5554fdb9e9b5e513e71cc1e87fefdc6a8f52 (patch) | |
tree | c634e81d20c1b9c5b33a644cfe1abb2df7b622fa /gcc | |
parent | 7e5b99080acf62ea3dad13ff37711d0069301f9d (diff) | |
download | gcc-69ca5554fdb9e9b5e513e71cc1e87fefdc6a8f52.zip gcc-69ca5554fdb9e9b5e513e71cc1e87fefdc6a8f52.tar.gz gcc-69ca5554fdb9e9b5e513e71cc1e87fefdc6a8f52.tar.bz2 |
class.c (make_class_data): The class_dtable_decl (i.e.
* class.c (make_class_data): The class_dtable_decl (i.e. the
vtable for Class) should be external, except when compiling Class.
From-SVN: r40534
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/java/class.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index ebc9592..1fa9a64 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,5 +1,8 @@ 2001-03-13 Per Bothner <per@bothner.com> + * class.c (make_class_data): The class_dtable_decl (i.e. the + vtable for Class) should be external, except when compiling Class. + * jvspec.c (lang_specific_driver): Fix -C handling. Check -save-temps to see if temp @FILE should be deleted. Follow-up to/fix for February 16 patch. diff --git a/gcc/java/class.c b/gcc/java/class.c index 4de1330..ee26162 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1359,6 +1359,8 @@ make_class_data (type) TREE_STATIC (class_dtable_decl) = 1; DECL_ARTIFICIAL (class_dtable_decl) = 1; DECL_IGNORED_P (class_dtable_decl) = 1; + if (is_compiled_class (class_type_node) != 2) + DECL_EXTERNAL (class_dtable_decl) = 1; rest_of_decl_compilation (class_dtable_decl, (char*) 0, 1, 0); } |