aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPer Bothner <bothner@cygnus.com>1998-08-20 14:42:08 +0000
committerPer Bothner <bothner@gcc.gnu.org>1998-08-20 07:42:08 -0700
commitd35897f502c40ab304aca5159831bd9db62e0cff (patch)
tree120cccd4cbe156aa1271294d76080f8857ff5208 /gcc
parent68caa3978ac108ad0baeb410356a01afc6441bd9 (diff)
downloadgcc-d35897f502c40ab304aca5159831bd9db62e0cff.zip
gcc-d35897f502c40ab304aca5159831bd9db62e0cff.tar.gz
gcc-d35897f502c40ab304aca5159831bd9db62e0cff.tar.bz2
decl2.c (import_export_vtable): Suppress vtables for Java classes.
� * decl2.c (import_export_vtable): Suppress vtables for Java classes. From-SVN: r21878
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl2.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 942db4b..037bf2b 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+1998-08-20 Per Bothner <bothner@cygnus.com>
+
+ * decl2.c (import_export_vtable): Suppress vtables for Java classes.
+
1998-08-20 Mark Mitchell <mark@markmitchell.com>
* decl.c (duplicate_decls): Always merge the old and new patterns
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 6ac0bee..c0b12e5 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -2551,10 +2551,10 @@ import_export_vtable (decl, type, final)
return;
/* +e0 or +e1 */
- if (write_virtuals < 2 && write_virtuals != 0)
+ if (write_virtuals < 0 || write_virtuals == 1 || TYPE_FOR_JAVA (type))
{
TREE_PUBLIC (decl) = 1;
- if (write_virtuals < 0)
+ if (write_virtuals < 0 || TYPE_FOR_JAVA (type))
DECL_EXTERNAL (decl) = 1;
DECL_INTERFACE_KNOWN (decl) = 1;
}