* class.c (build_utf8_ref): Initialize variable `field'.
* decl.c (init_decl_processing): Initialize variable `field'.
* expr.c (build_known_method_ref): Mark parameters `method_type',
`method_signature' and `arg_list' with ATTRIBUTE_UNUSED.
(process_jvm_instruction): Likewise for parameter `length'.
* jvspec.c (lang_specific_driver): Mark variables `saw_math',
`saw_libc', `saw_gc', `saw_threadlib' and `saw_libgcj' with
ATTRIBUTE_UNUSED.
* parse.y (maybe_generate_clinit): Remove unused variable
`has_non_primitive_fields'.
(find_in_imports_on_demand): Initialize variables `node_to_use'
and `cl'.
(patch_binop): Likewise for variable `prom_type'.
(patch_unaryop): Likewise for variable `prom_type'.
* verify.c (verify_jvm_instructions): Likewise for variable `last'.
* xref.c (xref_table): Add missing initializer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27030
138bc75d-0d04-0410-961f-
82ee72b054a4
+1999-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * class.c (build_utf8_ref): Initialize variable `field'.
+
+ * decl.c (init_decl_processing): Initialize variable `field'.
+
+ * expr.c (build_known_method_ref): Mark parameters `method_type',
+ `method_signature' and `arg_list' with ATTRIBUTE_UNUSED.
+ (process_jvm_instruction): Likewise for parameter `length'.
+
+ * jvspec.c (lang_specific_driver): Mark variables `saw_math',
+ `saw_libc', `saw_gc', `saw_threadlib' and `saw_libgcj' with
+ ATTRIBUTE_UNUSED.
+
+ * parse.y (maybe_generate_clinit): Remove unused variable
+ `has_non_primitive_fields'.
+ (find_in_imports_on_demand): Initialize variables `node_to_use'
+ and `cl'.
+ (patch_binop): Likewise for variable `prom_type'.
+ (patch_unaryop): Likewise for variable `prom_type'.
+
+ * verify.c (verify_jvm_instructions): Likewise for variable `last'.
+
+ * xref.c (xref_table): Add missing initializer.
+
1999-05-14 Tom Tromey <tromey@cygnus.com>
* java-except.h (struct eh_range): Removed unused `next' member.
* xref.h (xref_get_data): New function, declared.
(XREF_GET_DATA): Use xref_get_data.
-1999-05-13 Kaveh R. Ghazi <ghazi@snafu.rutgers.edu>
+1999-05-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gjavah.c (print_include): Cast the result of `strlen' to int
when comparing against a signed value.
(add_namelet): Likewise.
-1999-05-12 Kaveh R. Ghazi <ghazi@snafu.rutgers.edu>
+1999-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* expr.c (expand_invoke): Mark parameter `nargs' with
ATTRIBUTE_UNUSED.
int name_len = IDENTIFIER_LENGTH(name);
char buf[60];
char *buf_ptr;
- tree ctype, field, str_type, cinit, string;
+ tree ctype, field = NULL_TREE, str_type, cinit, string;
static int utf8_count = 0;
int name_hash;
tree ref = IDENTIFIER_UTF8_REF (name);
init_decl_processing ()
{
register tree endlink;
- tree field;
+ tree field = NULL_TREE;
tree t;
current_function_decl = NULL;
tree
build_known_method_ref (method, method_type, self_type, method_signature, arg_list)
- tree method, method_type, self_type, method_signature, arg_list;
+ tree method, method_type ATTRIBUTE_UNUSED, self_type,
+ method_signature ATTRIBUTE_UNUSED, arg_list ATTRIBUTE_UNUSED;
{
tree func;
if (is_compiled_class (self_type))
process_jvm_instruction (PC, byte_ops, length)
int PC;
unsigned char* byte_ops;
- long length;
+ long length ATTRIBUTE_UNUSED;
{
const char *opname; /* Temporary ??? */
int oldpc = PC; /* PC at instruction start. */
int saw_speclang = 0;
/* "-lm" or "-lmath" if it appears on the command line. */
- char *saw_math = 0;
+ char *saw_math ATTRIBUTE_UNUSED = 0;
/* "-lc" if it appears on the command line. */
- char *saw_libc = 0;
+ char *saw_libc ATTRIBUTE_UNUSED = 0;
/* "-lgcjgc" if it appears on the command line. */
- char *saw_gc = 0;
+ char *saw_gc ATTRIBUTE_UNUSED = 0;
/* Saw `-l' option for the thread library. */
- char *saw_threadlib = 0;
+ char *saw_threadlib ATTRIBUTE_UNUSED = 0;
/* Saw `-lgcj' on command line. */
- int saw_libgcj = 0;
+ int saw_libgcj ATTRIBUTE_UNUSED = 0;
/* Saw -C or -o option, respectively. */
int saw_C = 0;
#define YYPURE 1
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
-#line 3 "/usr/lib/bison.simple"
+#line 3 "/usr/local/gnu/share/bison.simple"
/* Skeleton output parser for bison,
Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
#endif
#endif
\f
-#line 196 "/usr/lib/bison.simple"
+#line 196 "/usr/local/gnu/share/bison.simple"
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
into yyparse. The argument should have type void *.
break;}
}
/* the action file gets copied in in place of this dollarsign */
-#line 498 "/usr/lib/bison.simple"
+#line 498 "/usr/local/gnu/share/bison.simple"
\f
yyvsp -= yylen;
yyssp -= yylen;
maybe_generate_clinit ()
{
tree mdecl, c;
- int has_non_primitive_fields = 0;
if (!ctxp->static_initialized || java_error_count)
return;
find_in_imports_on_demand (class_type)
tree class_type;
{
- tree node, import, node_to_use;
+ tree node, import, node_to_use = NULL_TREE;
int seen_once = -1;
- tree cl;
+ tree cl = NULL_TREE;
for (import = ctxp->import_demand_list; import; import = TREE_CHAIN (import))
{
tree op2 = TREE_OPERAND (node, 1);
tree op1_type = TREE_TYPE (op1);
tree op2_type = TREE_TYPE (op2);
- tree prom_type;
+ tree prom_type = NULL_TREE;
int code = TREE_CODE (node);
/* If 1, tell the routine that we have to return error_mark_node
{
tree op = TREE_OPERAND (node, 0);
tree op_type = TREE_TYPE (op);
- tree prom_type, value, decl;
+ tree prom_type = NULL_TREE, value, decl;
int code = TREE_CODE (node);
int error_found = 0;
maybe_generate_clinit ()
{
tree mdecl, c;
- int has_non_primitive_fields = 0;
if (!ctxp->static_initialized || java_error_count)
return;
find_in_imports_on_demand (class_type)
tree class_type;
{
- tree node, import, node_to_use;
+ tree node, import, node_to_use = NULL_TREE;
int seen_once = -1;
- tree cl;
+ tree cl = NULL_TREE;
for (import = ctxp->import_demand_list; import; import = TREE_CHAIN (import))
{
tree op2 = TREE_OPERAND (node, 1);
tree op1_type = TREE_TYPE (op1);
tree op2_type = TREE_TYPE (op2);
- tree prom_type;
+ tree prom_type = NULL_TREE;
int code = TREE_CODE (node);
/* If 1, tell the routine that we have to return error_mark_node
{
tree op = TREE_OPERAND (node, 0);
tree op_type = TREE_TYPE (op);
- tree prom_type, value, decl;
+ tree prom_type = NULL_TREE, value, decl;
int code = TREE_CODE (node);
int error_found = 0;
case OPCODE_lookupswitch:
{
- jint npairs, last, not_registered = 1;
+ jint npairs, last = 0, not_registered = 1;
pop_type (int_type_node);
while (PC%4)
static xref_flag_table xref_table [] = {
- {NULL, NULL, NULL},
+ {NULL, NULL, NULL, NULL},
};
/* Decode an xref flag value. Return 0 if the flag wasn't found. */