From bcb807294777294109ee3c653f8ee5ab515a25f4 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 8 Jun 1998 17:52:39 +0000 Subject: [PATCH] Warning fixes: * Makefile.in (decl2.o): Depend on dwarf2out.h and dwarfout.h. * cp-tree.h: Add prototype for `maybe_print_template_context' and `maybe_make_one_only'. * decl.c (auto_function): Remove unused variable `decl'. * decl2.c: Include dwarf2out.h and dwarfout.h. * lex.c: Remove redundant declarations of `set_float_handler' and `asm_out_file'. From-SVN: r20349 --- gcc/cp/ChangeLog | 14 ++++++++++++++ gcc/cp/Makefile.in | 2 +- gcc/cp/cp-tree.h | 3 +++ gcc/cp/decl.c | 1 - gcc/cp/decl2.c | 2 ++ gcc/cp/lex.c | 7 ------- 6 files changed, 20 insertions(+), 9 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f426641638e..794665eded7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,17 @@ +Mon Jun 8 20:45:52 1998 Kaveh R. Ghazi + + * Makefile.in (decl2.o): Depend on dwarf2out.h and dwarfout.h. + + * cp-tree.h: Add prototype for `maybe_print_template_context' and + `maybe_make_one_only'. + + * decl.c (auto_function): Remove unused variable `decl'. + + * decl2.c: Include dwarf2out.h and dwarfout.h. + + * lex.c: Remove redundant declarations of `set_float_handler' and + `asm_out_file'. + 1998-06-08 Andrew MacLeod * except.c (init_exception_processing): Remove NEW_EH_MODEL compile diff --git a/gcc/cp/Makefile.in b/gcc/cp/Makefile.in index 8d816b02a03..4b44500ab3a 100644 --- a/gcc/cp/Makefile.in +++ b/gcc/cp/Makefile.in @@ -250,7 +250,7 @@ decl.o : decl.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \ decl2.o : decl2.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \ lex.h decl.h $(srcdir)/../expr.h ../insn-codes.h $(srcdir)/../except.h \ $(srcdir)/../output.h $(srcdir)/../except.h $(srcdir)/../system.h \ - $(srcdir)/../toplev.h + $(srcdir)/../toplev.h $(srcdir)/../dwarf2out.h $(srcdir)/../dwarfout.h typeck2.o : typeck2.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \ $(srcdir)/../system.h $(srcdir)/../toplev.h typeck.o : typeck.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) \ diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 9632d81aa80..d5c46173701 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -1819,6 +1819,8 @@ struct tinst_level extern int minimal_parse_mode; +extern void maybe_print_template_context PROTO ((void)); + /* in class.c */ extern tree current_class_name; extern tree current_class_type; @@ -2420,6 +2422,7 @@ extern tree grok_method_quals PROTO((tree, tree, tree)); extern void warn_if_unknown_interface PROTO((tree)); extern tree grok_x_components PROTO((tree, tree)); extern void maybe_retrofit_in_chrg PROTO((tree)); +extern void maybe_make_one_only PROTO((tree)); extern void grokclassfn PROTO((tree, tree, tree, enum overload_flags, tree)); extern tree grok_alignof PROTO((tree)); extern tree grok_array_decl PROTO((tree, tree)); diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 0505cc618a0..4804c9f70fc 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -5194,7 +5194,6 @@ auto_function (name, type, code) void init_decl_processing () { - tree decl; register tree endlink, int_endlink, double_endlink, unsigned_endlink; tree fields[20]; /* Data type of memcpy. */ diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 373093a0719..25488c2df4c 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -40,6 +40,8 @@ Boston, MA 02111-1307, USA. */ #include "expr.h" #include "defaults.h" #include "toplev.h" +#include "dwarf2out.h" +#include "dwarfout.h" static tree get_sentry PROTO((tree)); static void mark_vtable_entries PROTO((tree)); diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 521155975c6..9444d695e19 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -61,7 +61,6 @@ extern struct obstack permanent_obstack; extern struct obstack *current_obstack, *saveable_obstack; extern void yyprint PROTO((FILE *, int, YYSTYPE)); -extern void set_float_handler PROTO((jmp_buf)); extern void compiler_error PROTO((char *, HOST_WIDE_INT, HOST_WIDE_INT)); @@ -297,9 +296,6 @@ int interface_unknown; /* whether or not we know this class /* lexical analyzer */ -/* File used for outputting assembler code. */ -extern FILE *asm_out_file; - #ifndef WCHAR_TYPE_SIZE #ifdef INT_TYPE_SIZE #define WCHAR_TYPE_SIZE INT_TYPE_SIZE @@ -2338,9 +2334,6 @@ check_newline () && getch () == 't' && ((c = getch ()) == ' ' || c == '\t')) { -#ifdef ASM_OUTPUT_IDENT - extern FILE *asm_out_file; -#endif /* #ident. The pedantic warning is now in cccp.c. */ /* Here we have just seen `#ident '. -- 2.30.2