diff options
| author | Jason Merrill <jason@gcc.gnu.org> | 1999-07-09 08:44:37 -0400 |
|---|---|---|
| committer | Jason Merrill <jason@gcc.gnu.org> | 1999-07-09 08:44:37 -0400 |
| commit | 1d02ac8371b1d3b31ed029c29fa23fadeca48787 (patch) | |
| tree | ce533478692fb6b5bbf3b4376582f0ed83cc0394 /gcc/cp/decl2.c | |
| parent | 6f1b4c42790b1a8083ae217facb58eb3f0cfa819 (diff) | |
| download | gcc-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/decl2.c')
| -rw-r--r-- | gcc/cp/decl2.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index d4fcac6..d7b17c5 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -375,13 +375,6 @@ int flag_detailed_statistics; int flag_this_is_variable; -/* 3 means write out only virtuals function tables `defined' - in this implementation file. - 0 means write out virtual function tables and give them - (C) static access (default). */ - -int write_virtuals; - /* Nonzero means we should attempt to elide constructors when possible. */ int flag_elide_constructors = 1; @@ -3818,7 +3811,8 @@ reparse_absdcl_as_casts (decl, expr) expr = build_c_cast (type, expr); } - if (warn_old_style_cast) + if (warn_old_style_cast && ! in_system_header + && current_lang_name != lang_name_c) warning ("use of old-style cast"); return expr; |
