aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1999-07-09 08:44:37 -0400
committerJason Merrill <jason@gcc.gnu.org>1999-07-09 08:44:37 -0400
commit1d02ac8371b1d3b31ed029c29fa23fadeca48787 (patch)
treece533478692fb6b5bbf3b4376582f0ed83cc0394 /gcc/cp/class.c
parent6f1b4c42790b1a8083ae217facb58eb3f0cfa819 (diff)
downloadgcc-1d02ac8371b1d3b31ed029c29fa23fadeca48787.zip
gcc-1d02ac8371b1d3b31ed029c29fa23fadeca48787.tar.gz
gcc-1d02ac8371b1d3b31ed029c29fa23fadeca48787.tar.bz2
decl2.c (reparse_absdcl_as_casts): Don't warn about old-style casts in system headers or extern "C" blocks.
* decl2.c (reparse_absdcl_as_casts): Don't warn about old-style casts in system headers or extern "C" blocks. * decl2.c (write_virtuals): Deleted declaration. * cp-tree.h (write_virtuals): Deleted extern declaration. * class.c (finish_struct_1): Removed #if 0'd code that mentions write_virtuals. * semantics.c (begin_class_definition): Rewrite code to not depend on write_virtuals. * lex.c (cp_pragma_interface): New function. (cp_pragma_implementation): Likewise. (handle_cp_pragma): Call them. From-SVN: r28045
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 4fcb2fd..4d00dfb 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -3212,16 +3212,6 @@ finish_struct_1 (t, warn_anon)
no_const_asn_ref = 0;
}
-#if 0
- /* Both of these should be done before now. */
- if (write_virtuals == 3 && CLASSTYPE_INTERFACE_KNOWN (t)
- && ! IS_SIGNATURE (t))
- {
- my_friendly_assert (CLASSTYPE_INTERFACE_ONLY (t) == interface_only, 999);
- my_friendly_assert (CLASSTYPE_VTABLE_NEEDS_WRITING (t) == ! interface_only, 999);
- }
-#endif
-
/* The three of these are approximations which may later be
modified. Needed at this point to make add_virtual_function
and modify_vtable_entries work. */