]> gcc.gnu.org Git - gcc.git/commitdiff
class.c (make_class_data): The class_dtable_decl (i.e.
authorPer Bothner <per@bothner.com>
Fri, 16 Mar 2001 04:44:09 +0000 (20:44 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Fri, 16 Mar 2001 04:44:09 +0000 (20:44 -0800)
* 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

gcc/java/ChangeLog
gcc/java/class.c

index ebc9592f03652486515a6533a492e8d2d0e83543..1fa9a64255e9f575915553b6ed29359980b57bc8 100644 (file)
@@ -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.
index 4de1330b9f06afb065050708465cbfe407a37ffa..ee261621ac51cbe36ee4d376d9383a23ce08c305 100644 (file)
@@ -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);
     }
 
This page took 0.115944 seconds and 5 git commands to generate.