Warning fixes:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 8 Jun 1998 17:52:39 +0000 (17:52 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 8 Jun 1998 17:52:39 +0000 (17:52 +0000)
        * 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
gcc/cp/Makefile.in
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/lex.c

index f426641638e2ff852c1d6088bc1183c5e05af221..794665eded7ea29677d79a5edec09457aa84409e 100644 (file)
@@ -1,3 +1,17 @@
+Mon Jun  8 20:45:52 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * 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  <amacleod@cygnus.com>
 
        * except.c (init_exception_processing): Remove NEW_EH_MODEL compile 
index 8d816b02a036fe4e470c43a1ca3d6ed94ef808d1..4b44500ab3ac0311e195be1c0ec8b341488380f8 100644 (file)
@@ -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) \
index 9632d81aa80e704135fec3eba93b615ce6ee4d5b..d5c46173701dfbc7bc2dd0222ebcb1a8b56c145e 100644 (file)
@@ -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));
index 0505cc618a0245de5420e6ef13e51690eb93095f..4804c9f70fc43d2630cc2acafc8492ee727fe7b9 100644 (file)
@@ -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.  */
index 373093a0719d1fbe5ced7ad09a36ed407962dce3..25488c2df4c7358b67eb15819c7544ccceec6b8f 100644 (file)
@@ -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));
index 521155975c66c008eb016b5921a528134f452bbd..9444d695e19baf2e38971e2ea72a54585f2bd622 100644 (file)
@@ -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 '.