From: Kaveh R. Ghazi Date: Mon, 5 Apr 1999 13:04:38 +0000 (+0000) Subject: class.c (add_method_1): Cast the argument of `bzero' to PTR. X-Git-Tag: prereleases/libgcj-0.1~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4504ead1db50e758e107f9b3a42975afbe1e8106;p=thirdparty%2Fgcc.git class.c (add_method_1): Cast the argument of `bzero' to PTR. * class.c (add_method_1): Cast the argument of `bzero' to PTR. * decl.c (copy_lang_decl): Likewise for `bcopy'. * jcf-depend.c: Include "config.h", not . * jcf-parse.c (jcf_figure_file_type): Cast the arguments of `bcopy' to PTR. * jcf-path.c: Include "config.h", not . * lex.c: Don't include various system header files. (java_init_lex): Cast the argument of `bzero' to PTR * parse-scan.y (java_push_parser_context): Likewise. * parse.y (java_push_parser_context): Likewise. * xref.c: Don't include . From-SVN: r26203 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 737a03b292f9..22eb0a6054b2 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,26 @@ +Mon Apr 5 15:43:51 1999 Kaveh R. Ghazi + + * class.c (add_method_1): Cast the argument of `bzero' to PTR. + + * decl.c (copy_lang_decl): Likewise for `bcopy'. + + * jcf-depend.c: Include "config.h", not . + + * jcf-parse.c (jcf_figure_file_type): Cast the arguments of + `bcopy' to PTR. + + * jcf-path.c: Include "config.h", not . + + * lex.c: Don't include various system header files. + (java_init_lex): Cast the argument of `bzero' to PTR + + * parse-scan.y (java_push_parser_context): Likewise. + + * parse.y (java_push_parser_context): Likewise. + (patch_bc_statement): Match format specifier to variable argument. + + * xref.c: Don't include . + Mon Apr 5 11:24:19 1999 Alexandre Petit-Bianco * parse.y (struct parser_ctxt *ctxp): Now global. diff --git a/gcc/java/class.c b/gcc/java/class.c index 4c924d063ab9..f785d0f0076e 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -417,7 +417,7 @@ add_method_1 (handle_class, access_flags, name, function_type) DECL_LANG_SPECIFIC (fndecl) = (struct lang_decl *) permalloc (sizeof (struct lang_decl)); - bzero (DECL_LANG_SPECIFIC (fndecl), sizeof (struct lang_decl)); + bzero ((PTR) DECL_LANG_SPECIFIC (fndecl), sizeof (struct lang_decl)); TREE_CHAIN (fndecl) = TYPE_METHODS (handle_class); TYPE_METHODS (handle_class) = fndecl; diff --git a/gcc/java/decl.c b/gcc/java/decl.c index e98fb51429af..110945460d17 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -1373,7 +1373,7 @@ copy_lang_decl (node) = TREE_CODE (node) == VAR_DECL ? sizeof (struct lang_decl_var) : sizeof (struct lang_decl); struct lang_decl *x = (struct lang_decl *) oballoc (lang_decl_size); - bcopy (DECL_LANG_SPECIFIC (node), x, lang_decl_size); + bcopy ((PTR) DECL_LANG_SPECIFIC (node), (PTR) x, lang_decl_size); DECL_LANG_SPECIFIC (node) = x; } diff --git a/gcc/java/jcf-depend.c b/gcc/java/jcf-depend.c index 9adbdb4eec02..86b9d7722fe8 100644 --- a/gcc/java/jcf-depend.c +++ b/gcc/java/jcf-depend.c @@ -23,7 +23,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ /* Written by Tom Tromey , October 1998. */ -#include +#include "config.h" #include "system.h" #include diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 58dd7223fac1..1b9db4ec2f6f 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -1002,7 +1002,7 @@ DEFUN(jcf_figure_file_type, (jcf), && !open_in_zip (jcf, input_filename, NULL, 0)) { localToFile = ALLOC (sizeof (struct ZipFileCache)); - bcopy (SeenZipFiles, localToFile, sizeof (struct ZipFileCache)); + bcopy ((PTR) SeenZipFiles, (PTR) localToFile, sizeof (struct ZipFileCache)); process_zip_dir (); /* Register all the class defined there */ return JCF_ZIP; } diff --git a/gcc/java/jcf-path.c b/gcc/java/jcf-path.c index bdd951506f47..67dd02e2fffa 100644 --- a/gcc/java/jcf-path.c +++ b/gcc/java/jcf-path.c @@ -23,7 +23,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ /* Written by Tom Tromey , October 1998. */ -#include +#include "config.h" #include "system.h" #include "jcf.h" diff --git a/gcc/java/lex.c b/gcc/java/lex.c index dae7ce7ead54..aca3d88a8ae4 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -34,20 +34,8 @@ The lexical analysis conforms to the Java grammar described in "The Java(TM) Language Specification. J. Gosling, B. Joy, G. Steele. Addison Wesley 1996" (http://java.sun.com/docs/books/jls/html/3.doc.html) */ -#include -#include -#include - -#ifdef JAVA_LEX_DEBUG -#include -#endif - #include "keyword.h" -#ifndef SEEK_SET -#include -#endif - #ifndef JC1_LITE extern struct obstack *expression_obstack; #endif @@ -110,8 +98,8 @@ java_init_lex () ctxp->static_initialized = ctxp->non_static_initialized = ctxp->incomplete_class = NULL_TREE; - bzero (ctxp->modifier_ctx, 11*sizeof (ctxp->modifier_ctx[0])); - bzero (current_jcf, sizeof (JCF)); + bzero ((PTR) ctxp->modifier_ctx, 11*sizeof (ctxp->modifier_ctx[0])); + bzero ((PTR) current_jcf, sizeof (JCF)); ctxp->current_parsed_class = NULL; ctxp->package = NULL_TREE; #endif diff --git a/gcc/java/parse-scan.c b/gcc/java/parse-scan.c index 654efcfc3fc7..5c036af5b05e 100644 --- a/gcc/java/parse-scan.c +++ b/gcc/java/parse-scan.c @@ -2357,7 +2357,7 @@ java_push_parser_context () struct parser_ctxt *new = (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt)); - bzero (new, sizeof (struct parser_ctxt)); + bzero ((PTR) new, sizeof (struct parser_ctxt)); new->next = ctxp; ctxp = new; } diff --git a/gcc/java/parse-scan.y b/gcc/java/parse-scan.y index a8f6df645a92..dcebc3a091c9 100644 --- a/gcc/java/parse-scan.y +++ b/gcc/java/parse-scan.y @@ -1112,7 +1112,7 @@ java_push_parser_context () struct parser_ctxt *new = (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt)); - bzero (new, sizeof (struct parser_ctxt)); + bzero ((PTR) new, sizeof (struct parser_ctxt)); new->next = ctxp; ctxp = new; } diff --git a/gcc/java/parse.c b/gcc/java/parse.c index 5a9e85670b3c..c402f12a7c51 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -4892,7 +4892,7 @@ java_push_parser_context () struct parser_ctxt *new = (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt)); - bzero (new, sizeof (struct parser_ctxt)); + bzero ((PTR) new, sizeof (struct parser_ctxt)); new->next = ctxp; ctxp = new; if (ctxp->next) diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 2afbddee3ad6..72eccbffaf39 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -2291,7 +2291,7 @@ java_push_parser_context () struct parser_ctxt *new = (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt)); - bzero (new, sizeof (struct parser_ctxt)); + bzero ((PTR) new, sizeof (struct parser_ctxt)); new->next = ctxp; ctxp = new; if (ctxp->next) diff --git a/gcc/java/xref.c b/gcc/java/xref.c index 906dfedbc584..6f570d7f42b8 100644 --- a/gcc/java/xref.c +++ b/gcc/java/xref.c @@ -24,7 +24,6 @@ Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. The Free Software Foundation is independent of Sun Microsystems, Inc. */ -#include #include "config.h" #include "system.h" #include "tree.h"