This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs-19980531, warning patches [part 2/2]
- To: egcs at cygnus dot com
- Subject: egcs-19980531, warning patches [part 2/2]
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 3 Jun 1998 20:21:04 -0400 (EDT)
This is part 2/2. These changes are from the cp/ directory.
--Kaveh
Wed Jun 3 18:16:45 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'.
diff -rup orig/egcs-19980531/gcc/cp/Makefile.in egcs-19980531/gcc/cp/Makefile.in
--- orig/egcs-19980531/gcc/cp/Makefile.in Tue May 26 06:47:58 1998
+++ egcs-19980531/gcc/cp/Makefile.in Wed Jun 3 17:58:20 1998
@@ -250,7 +250,7 @@ decl.o : decl.c $(CONFIG_H) $(CXX_TREE_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 -rup orig/egcs-19980531/gcc/cp/cp-tree.h egcs-19980531/gcc/cp/cp-tree.h
--- orig/egcs-19980531/gcc/cp/cp-tree.h Thu May 28 22:33:48 1998
+++ egcs-19980531/gcc/cp/cp-tree.h Wed Jun 3 16:02:39 1998
@@ -1801,6 +1801,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;
@@ -2399,6 +2401,7 @@ extern tree grok_method_quals PROTO((t
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 -rup orig/egcs-19980531/gcc/cp/decl.c egcs-19980531/gcc/cp/decl.c
--- orig/egcs-19980531/gcc/cp/decl.c Fri May 29 10:18:51 1998
+++ egcs-19980531/gcc/cp/decl.c Wed Jun 3 16:53:16 1998
@@ -5103,7 +5103,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 -rup orig/egcs-19980531/gcc/cp/decl2.c egcs-19980531/gcc/cp/decl2.c
--- orig/egcs-19980531/gcc/cp/decl2.c Thu May 28 22:33:51 1998
+++ egcs-19980531/gcc/cp/decl2.c Wed Jun 3 17:57:42 1998
@@ -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 -rup orig/egcs-19980531/gcc/cp/lex.c egcs-19980531/gcc/cp/lex.c
--- orig/egcs-19980531/gcc/cp/lex.c Wed May 27 21:44:29 1998
+++ egcs-19980531/gcc/cp/lex.c Wed Jun 3 16:55:32 1998
@@ -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 no
/* 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
@@ -2335,9 +2331,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 '.