diff options
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 18 | ||||
-rw-r--r-- | gcc/cp/Make-lang.in | 11 | ||||
-rw-r--r-- | gcc/cp/call.c | 2 | ||||
-rw-r--r-- | gcc/cp/repo.c | 1 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 2 | ||||
-rw-r--r-- | gcc/cp/typeck2.c | 1 |
6 files changed, 29 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ad66b7ce930..f4527206cb7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,21 @@ +2001-06-10 Mark Mitchell <mark@codesourcery.com> + Gabriel Dos Reis <gdr@codesourcery.com> + + * Make-lang.in (cp/call.o): Depend on diagnostic.h + (cp/typeck.o): Depend on diagnostic.h + (cp/typeck2.o): Depend on diagnostic.h + (cp/repo.o): Depend on dignostic.h + * typeck.c: #include diagnostic.h + (convert_for_initialization): Remove extern declaration for + warningcount and errorcount. + + * call.c: #include diagnostic.h + (convert_like_real): Remove extern declaration for warnincount and + errorcount. + + * repo.c: #include diagnostic.h + * typeck2.c: #include diagnostic.h + 2001-06-08 Nathan Sidwell <nathan@codesourcery.com> * decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index 84baffb4043..9965c5e737e 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -245,10 +245,13 @@ cp/decl.o: cp/decl.c $(CXX_TREE_H) flags.h cp/lex.h cp/decl.h stack.h \ cp/operators.def $(TM_P_H) cp/decl2.o: cp/decl2.c $(CXX_TREE_H) flags.h cp/lex.h cp/decl.h $(EXPR_H) \ output.h except.h toplev.h dwarf2out.h dwarfout.h $(GGC_H) $(RTL_H) -cp/typeck2.o: cp/typeck2.c $(CXX_TREE_H) flags.h toplev.h output.h $(TM_P_H) -cp/typeck.o: cp/typeck.c $(CXX_TREE_H) flags.h $(RTL_H) $(EXPR_H) toplev.h +cp/typeck2.o: cp/typeck2.c $(CXX_TREE_H) flags.h toplev.h output.h $(TM_P_H) \ + diagnostic.h +cp/typeck.o: cp/typeck.c $(CXX_TREE_H) flags.h $(RTL_H) $(EXPR_H) toplev.h \ + diagnostic.h cp/class.o: cp/class.c $(CXX_TREE_H) flags.h toplev.h $(RTL_H) -cp/call.o: cp/call.c $(CXX_TREE_H) flags.h toplev.h $(RTL_H) $(EXPR_H) $(GGC_H) +cp/call.o: cp/call.c $(CXX_TREE_H) flags.h toplev.h $(RTL_H) $(EXPR_H) \ + $(GGC_H) diagnostic.h cp/friend.o: cp/friend.c $(CXX_TREE_H) flags.h $(RTL_H) toplev.h $(EXPR_H) cp/init.o: cp/init.c $(CXX_TREE_H) flags.h $(RTL_H) $(EXPR_H) toplev.h \ $(GGC_H) except.h @@ -269,7 +272,7 @@ cp/pt.o: cp/pt.c $(CXX_TREE_H) cp/decl.h cp/parse.h cp/lex.h toplev.h \ $(GGC_H) $(RTL_H) except.h cp/error.o: cp/error.c $(CXX_TREE_H) toplev.h diagnostic.h cp/errfn.o: cp/errfn.c $(CXX_TREE_H) toplev.h -cp/repo.o: cp/repo.c $(CXX_TREE_H) toplev.h $(GGC_H) +cp/repo.o: cp/repo.c $(CXX_TREE_H) toplev.h $(GGC_H) diagnostic.h cp/semantics.o: cp/semantics.c $(CXX_TREE_H) cp/lex.h except.h toplev.h \ flags.h $(GGC_H) output.h $(RTL_H) $(TIMEVAR_H) $(EXPR_H) cp/dump.o: cp/dump.c $(CXX_TREE_H) c-dump.h diff --git a/gcc/cp/call.c b/gcc/cp/call.c index f09659acbcc..e7b6bbd824b 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -34,6 +34,7 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "expr.h" #include "ggc.h" +#include "diagnostic.h" extern int inhibit_warnings; @@ -3716,7 +3717,6 @@ convert_like_real (convs, expr, fn, argnum, inner) int argnum; int inner; { - extern int warningcount, errorcount; int savew, savee; tree totype = TREE_TYPE (convs); diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c index f2f95919d56..74c5ee86b12 100644 --- a/gcc/cp/repo.c +++ b/gcc/cp/repo.c @@ -33,6 +33,7 @@ Boston, MA 02111-1307, USA. */ #include "obstack.h" #include "toplev.h" #include "ggc.h" +#include "diagnostic.h" static tree repo_get_id PARAMS ((tree)); static char *extract_string PARAMS ((char **)); diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 01805c664fa..3c2ea8d9666 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -40,6 +40,7 @@ Boston, MA 02111-1307, USA. */ #include "flags.h" #include "output.h" #include "toplev.h" +#include "diagnostic.h" static tree convert_for_assignment PARAMS ((tree, tree, const char *, tree, int)); @@ -6431,7 +6432,6 @@ convert_for_initialization (exp, type, rhs, flags, errtype, fndecl, parmnum) if (codel == REFERENCE_TYPE) { /* This should eventually happen in convert_arguments. */ - extern int warningcount, errorcount; int savew = 0, savee = 0; if (fndecl) diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index 959d979872d..09621d4cb57 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -38,6 +38,7 @@ Boston, MA 02111-1307, USA. */ #include "flags.h" #include "toplev.h" #include "output.h" +#include "diagnostic.h" static tree process_init_constructor PARAMS ((tree, tree, tree *)); |