summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-06 05:04:32 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-06 05:04:32 +0000
commit8f8b0e45b33a35870b4f308b69bf0ddeb212e4d7 (patch)
tree62838ff33a249f3ac3ae22d9ad1118b5d78ad52d
parent8a589862bac95ffd5bde2434249122434cc22449 (diff)
downloadgcc-8f8b0e45b33a35870b4f308b69bf0ddeb212e4d7.tar.gz
Warning fixes:
* Makefile.in (spew.o): Depend on toplev.h. * call.c (compare_ics): Initialize variables `deref_from_type2', `deref_to_type1' and `deref_to_type2'. * except.c (get_eh_type): Hide prototype and definition. (process_start_catch_block_old): Remove unused static prototype. * pt.c (tsubst_decl): Initialize variable `argvec'. * spew.c: Include toplev.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22864 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog14
-rw-r--r--gcc/cp/Makefile.in4
-rw-r--r--gcc/cp/call.c6
-rw-r--r--gcc/cp/except.c5
-rw-r--r--gcc/cp/pt.c2
-rw-r--r--gcc/cp/spew.c1
6 files changed, 25 insertions, 7 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 7bf7f57bd3a..fa705cc7ec1 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,17 @@
+Tue Oct 6 07:57:26 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * Makefile.in (spew.o): Depend on toplev.h.
+
+ * call.c (compare_ics): Initialize variables `deref_from_type2',
+ `deref_to_type1' and `deref_to_type2'.
+
+ * except.c (get_eh_type): Hide prototype and definition.
+ (process_start_catch_block_old): Remove unused static prototype.
+
+ * pt.c (tsubst_decl): Initialize variable `argvec'.
+
+ * spew.c: Include toplev.h.
+
1998-10-05 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (instantiate_decl): Do save and restore file position.
diff --git a/gcc/cp/Makefile.in b/gcc/cp/Makefile.in
index f7e09414cb7..8c863ab9591 100644
--- a/gcc/cp/Makefile.in
+++ b/gcc/cp/Makefile.in
@@ -243,8 +243,8 @@ $(srcdir)/hash.h:
gperf -p -j1 -g -o -t -N is_reserved_word '-k1,4,7,$$' \
$(srcdir)/gxx.gperf >$(srcdir)/hash.h
-spew.o : spew.c $(CONFIG_H) $(CXX_TREE_H) \
- $(PARSE_H) $(srcdir)/../flags.h lex.h $(srcdir)/../system.h
+spew.o : spew.c $(CONFIG_H) $(CXX_TREE_H) $(PARSE_H) $(srcdir)/../flags.h \
+ lex.h $(srcdir)/../system.h $(srcdir)/../toplev.h
lex.o : lex.c $(CONFIG_H) $(CXX_TREE_H) \
$(PARSE_H) input.c $(srcdir)/../flags.h hash.h lex.h \
$(srcdir)/../c-pragma.h $(srcdir)/../system.h $(srcdir)/../toplev.h \
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 07ed1aebdcc..f431885ab37 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -3900,9 +3900,9 @@ compare_ics (ics1, ics2)
tree to_type1;
tree to_type2;
tree deref_from_type1 = NULL_TREE;
- tree deref_from_type2;
- tree deref_to_type1;
- tree deref_to_type2;
+ tree deref_from_type2 = NULL_TREE;
+ tree deref_to_type1 = NULL_TREE;
+ tree deref_to_type2 = NULL_TREE;
/* REF_BINDING is non-zero if the result of the conversion sequence
is a reference type. In that case TARGET_TYPE is the
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index c3ae3575d65..c21ac240eff 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -52,12 +52,13 @@ static tree call_eh_info PROTO((void));
static void push_eh_info PROTO((void));
static tree get_eh_info PROTO((void));
static tree get_eh_value PROTO((void));
+#if 0
static tree get_eh_type PROTO((void));
+#endif
static tree get_eh_caught PROTO((void));
static tree get_eh_handlers PROTO((void));
static tree do_pop_exception PROTO((void));
static void process_start_catch_block PROTO((tree, tree));
-static void process_start_catch_block_old PROTO((tree, tree));
static tree build_eh_type_type_ref PROTO((tree));
static tree build_terminate_handler PROTO((void));
static tree alloc_eh_object PROTO((tree));
@@ -360,12 +361,14 @@ get_eh_value ()
/* Returns a reference to the current exception type. */
+#if 0
static tree
get_eh_type ()
{
return build_component_ref (get_eh_info (), get_identifier ("type"),
NULL_TREE, 0);
}
+#endif
/* Returns a reference to whether or not the current exception
has been caught. */
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 83dfde549b8..10161f822ab 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -5027,7 +5027,7 @@ tsubst_decl (t, args, type, in_decl)
case FUNCTION_DECL:
{
tree ctx;
- tree argvec;
+ tree argvec = NULL_TREE;
tree gen_tmpl;
int member;
int args_depth;
diff --git a/gcc/cp/spew.c b/gcc/cp/spew.c
index 17c68d34b40..ff93ac7e120 100644
--- a/gcc/cp/spew.c
+++ b/gcc/cp/spew.c
@@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA. */
#include "parse.h"
#include "flags.h"
#include "obstack.h"
+#include "toplev.h"
/* This takes a token stream that hasn't decided much about types and
tries to figure out as much as it can, with excessive lookahead and