aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-06-08 17:52:39 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-06-08 17:52:39 +0000
commitbcb807294777294109ee3c653f8ee5ab515a25f4 (patch)
treec81997c63f7cc2ac23e02cecea61ea4ea83b9624 /gcc
parentcb92366029011ef6ee679a2540a2c6a77ad7372e (diff)
downloadgcc-bcb807294777294109ee3c653f8ee5ab515a25f4.zip
gcc-bcb807294777294109ee3c653f8ee5ab515a25f4.tar.gz
gcc-bcb807294777294109ee3c653f8ee5ab515a25f4.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog14
-rw-r--r--gcc/cp/Makefile.in2
-rw-r--r--gcc/cp/cp-tree.h3
-rw-r--r--gcc/cp/decl.c1
-rw-r--r--gcc/cp/decl2.c2
-rw-r--r--gcc/cp/lex.c7
6 files changed, 20 insertions, 9 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index f426641..794665e 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/Makefile.in b/gcc/cp/Makefile.in
index 8d816b0..4b44500 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 9632d81..d5c4617 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 0505cc6..4804c9f 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 373093a..25488c2 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 5211559..9444d69 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 '.