From d35897f502c40ab304aca5159831bd9db62e0cff Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Thu, 20 Aug 1998 14:42:08 +0000 Subject: [PATCH] decl2.c (import_export_vtable): Suppress vtables for Java classes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit � * decl2.c (import_export_vtable): Suppress vtables for Java classes. From-SVN: r21878 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl2.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 942db4bef26..037bf2b1bb7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1998-08-20 Per Bothner + + * decl2.c (import_export_vtable): Suppress vtables for Java classes. + 1998-08-20 Mark Mitchell * decl.c (duplicate_decls): Always merge the old and new patterns diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 6ac0beeb184..c0b12e50304 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; } -- 2.30.2