diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8792749288..fa733454d43 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,46 @@ +2000-01-04 Kaveh R. Ghazi + + * builtins.c (expand_builtin_strlen): Initialize variable `icode'. + + * calls.c (expand_call): Likewise for + `old_stack_arg_under_construction'. + + * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'. + + * function.c (pad_to_arg_alignment): Likewise for `save_var' and + `save_constant'. + + * gcc.c (execute): Likewise for `ut' and `st'. + + * genattrtab.c (attr_rtx): Likewise for `rt_val'. + + * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'. + + * jump.c (jump_optimize_1): Likewise for `temp2'. + + * local-alloc.c (block_alloc): Likewise for `r1'. + + * loop.c (recombine_givs): Likewise for `life_start' and `life_end'. + + * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'. + (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'. + + * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node' + and `set2'. + + * reload.c (find_reloads): Likewise for `goal_alternative_number' + and `goal_earlyclobber'. + + * scan-decls.c (scan_decls): Likewise for `prev_id_end'. + + * sdbout.c (sdbout_one_type): Likewise for `member_scl'. + + * stupid.c (stupid_life_analysis): Likewise for `chain'. + + * unroll.c (copy_loop_body): Likewise for `copy'. + + * varasm.c (output_constructor): Likewise for `byte'. + Tue Jan 4 15:34:34 MET 2000 Jan Hubicka * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory diff --git a/gcc/builtins.c b/gcc/builtins.c index b4c9a8818b5..43e87b19a66 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -1301,7 +1301,7 @@ expand_builtin_strlen (exp, target, mode) rtx result, src_rtx, char_rtx; enum machine_mode insn_mode = value_mode, char_mode; - enum insn_code icode; + enum insn_code icode = CODE_FOR_nothing; /* If the length is known, just return it. */ if (len != 0) diff --git a/gcc/calls.c b/gcc/calls.c index e19f787d334..52fcb94af3c 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -1,5 +1,5 @@ /* Convert function calls to rtl insns, for GNU C compiler. - Copyright (C) 1989, 92-97, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1989, 92-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -1660,7 +1660,7 @@ expand_call (exp, target, ignore) #ifdef ACCUMULATE_OUTGOING_ARGS int initial_highest_arg_in_use = highest_outgoing_arg_in_use; char *initial_stack_usage_map = stack_usage_map; - int old_stack_arg_under_construction; + int old_stack_arg_under_construction = 0; #endif rtx old_stack_level = 0; diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog index 8dbfbaaa334..0a073e3b1c1 100644 --- a/gcc/ch/ChangeLog +++ b/gcc/ch/ChangeLog @@ -1,3 +1,10 @@ +2000-01-04 Kaveh R. Ghazi + + * actions.c (update_else_range_for_int_const): Initialize + variables `lowval' and `highval'. + (update_else_range_for_range): Likewise for `low_range_val' and + `high_range_val'. + 1999-12-11 Kaveh R. Ghazi * typeck.c (apply_chill_array_layout, apply_chill_field_layout): diff --git a/gcc/ch/actions.c b/gcc/ch/actions.c index de6087c4299..215557b195f 100644 --- a/gcc/ch/actions.c +++ b/gcc/ch/actions.c @@ -1,5 +1,5 @@ /* Implement actions for CHILL. - Copyright (C) 1992, 93, 1994, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1992, 93, 94, 98, 99, 2000 Free Software Foundation, Inc. Authors: Per Bothner, Bill Cox, Michael Tiemann, Michael North This file is part of GNU CC. @@ -788,7 +788,7 @@ static tree update_else_range_for_int_const (else_range, label) tree else_range, label; { - int lowval, highval; + int lowval = 0, highval = 0; int label_value = TREE_INT_CST_LOW (label); tree this_range, prev_range, new_range; @@ -846,7 +846,7 @@ update_else_range_for_range (else_range, low_target, high_target) tree else_range, low_target, high_target; { tree this_range, prev_range, new_range, next_range; - int low_range_val, high_range_val; + int low_range_val = 0, high_range_val = 0; int low_target_val = TREE_INT_CST_LOW (low_target); int high_target_val = TREE_INT_CST_LOW (high_target); diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 173e1ed95dd..c8ff3548406 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-01-04 Kaveh R. Ghazi + + * class.c (warn_hidden): Initialize variable `fndecl'. + 2000-01-03 Ulrich Drepper * decl.c (flag_isoc9x): New variable to be able to use code in diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 86cb92647ab..c2ff295be0d 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -1,5 +1,5 @@ /* Functions related to building classes and their related objects. - Copyright (C) 1987, 92-97, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1987, 92-99, 2000 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) This file is part of GNU CC. @@ -2930,7 +2930,7 @@ warn_hidden (t) for (i = 2; i < n_methods && TREE_VEC_ELT (method_vec, i); ++i) { tree fns = TREE_VEC_ELT (method_vec, i); - tree fndecl; + tree fndecl = NULL_TREE; tree base_fndecls = NULL_TREE; tree binfos = BINFO_BASETYPES (TYPE_BINFO (t)); diff --git a/gcc/cpphash.c b/gcc/cpphash.c index 8c268f455a3..e99e6c70da9 100644 --- a/gcc/cpphash.c +++ b/gcc/cpphash.c @@ -1,5 +1,5 @@ /* Part of CPP library. (Macro handling.) - Copyright (C) 1986, 87, 89, 92-96, 98, 1999 Free Software Foundation, Inc. + Copyright (C) 1986, 87, 89, 92-96, 98, 99, 2000 Free Software Foundation, Inc. Written by Per Bothner, 1994. Based on CCCP program by Paul Rubin, June 1986 Adapted to ANSI C, Richard Stallman, Jan 1987 @@ -1051,12 +1051,12 @@ macroexpand (pfile, hp) register U_CHAR *xbuf; long start_line, start_column; int xbuf_len; - struct argdata *args; + struct argdata *args = 0; long old_written = CPP_WRITTEN (pfile); #if 0 int start_line = instack[indepth].lineno; #endif - int rest_args, rest_zero; + int rest_args, rest_zero = 0; register int i; #if 0 diff --git a/gcc/function.c b/gcc/function.c index a551e24e109..d298283ee28 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1,5 +1,5 @@ /* Expands front end tree to back end RTL for GNU C-Compiler - Copyright (C) 1987, 88, 89, 91-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 91-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -5078,8 +5078,8 @@ pad_to_arg_alignment (offset_ptr, boundary, alignment_pad) int boundary; struct args_size *alignment_pad; { - tree save_var; - HOST_WIDE_INT save_constant; + tree save_var = NULL_TREE; + HOST_WIDE_INT save_constant = 0; int boundary_in_bytes = boundary / BITS_PER_UNIT; diff --git a/gcc/gcc.c b/gcc/gcc.c index 0230b498473..15064ebf66f 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1,5 +1,5 @@ /* Compiler driver program that can handle many languages. - Copyright (C) 1987, 89, 92-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1987, 89, 92-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -2575,7 +2575,7 @@ execute () int ret_code = 0; #ifdef HAVE_GETRUSAGE struct timeval d; - double ut, st; + double ut = 0.0, st = 0.0; #endif for (i = 0; i < n_commands; ) diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index 3494ad202ba..c164139c94b 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -1,5 +1,5 @@ /* Generate code from machine description to compute values of attributes. - Copyright (C) 1991, 93-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1991, 93-99, 2000 Free Software Foundation, Inc. Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu) This file is part of GNU CC. @@ -542,8 +542,8 @@ attr_rtx VPROTO((enum rtx_code code, ...)) #endif va_list p; register int i; /* Array indices... */ - register const char *fmt; /* Current rtx's format... */ - register rtx rt_val; /* RTX to return to caller... */ + register const char *fmt; /* Current rtx's format... */ + register rtx rt_val = NULL_RTX;/* RTX to return to caller... */ int hashcode; register struct attr_hash *h; struct obstack *old_obstack = rtl_obstack; diff --git a/gcc/genopinit.c b/gcc/genopinit.c index 4f950e5daa8..4022d7e232d 100644 --- a/gcc/genopinit.c +++ b/gcc/genopinit.c @@ -1,5 +1,5 @@ /* Generate code to initialize optabs from machine description. - Copyright (C) 1993, 94-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1993, 94-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -128,7 +128,7 @@ gen_insn (insn) rtx insn; { char *name = XSTR (insn, 0); - int m1, m2, op; + int m1 = 0, m2 = 0, op = 0; size_t pindex; int i; const char *np, *pp, *p, *q; diff --git a/gcc/jump.c b/gcc/jump.c index 9a2c50e76a2..1e9377124d5 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1,5 +1,5 @@ /* Optimize jump instructions, for GNU compiler. - Copyright (C) 1987, 88, 89, 91-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 91-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -309,7 +309,7 @@ jump_optimize_1 (f, cross_jump, noop_moves, after_regscan, mark_labels_only) for (insn = f; insn; insn = next) { rtx reallabelprev; - rtx temp, temp1, temp2, temp3, temp4, temp5, temp6; + rtx temp, temp1, temp2 = NULL_RTX, temp3, temp4, temp5, temp6; rtx nlabel; int this_is_simplejump, this_is_condjump, reversep = 0; int this_is_condjump_in_parallel; diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index e077a12fd48..171b13aa822 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -1,5 +1,5 @@ /* Allocate registers within a basic block, for GNU compiler. - Copyright (C) 1987, 88, 91, 93-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 91, 93-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -1082,7 +1082,7 @@ block_alloc (b) { register rtx link, set; register int win = 0; - register rtx r0, r1; + register rtx r0, r1 = NULL_RTX; int combined_regno = -1; int i; diff --git a/gcc/loop.c b/gcc/loop.c index be02b974348..f25b00abbc8 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -1,5 +1,5 @@ /* Perform various loop optimizations, including strength reduction. - Copyright (C) 1987, 88, 89, 91-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 91-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -7682,7 +7682,7 @@ recombine_givs (bl, loop_start, loop_end, unroll_p) LAST_GIV. */ for (i = giv_count - 1; i >= 0; i = rescan) { - int life_start, life_end; + int life_start = 0, life_end = 0; for (last_giv = 0, rescan = -1; i >= 0; i--) { diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index aa2b01010f6..de4c75a9ee7 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -1,5 +1,5 @@ /* Register to Stack convert for GNU compiler. - Copyright (C) 1992, 93-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1992, 93-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -589,7 +589,7 @@ check_asm_stack_operands (insn) char implicitly_dies[FIRST_PSEUDO_REGISTER]; int alt; - rtx *clobber_reg; + rtx *clobber_reg = 0; int n_inputs, n_outputs; /* Find out what the constraints require. If no constraint @@ -1792,8 +1792,8 @@ subst_asm_stack_regs (insn, regstack) rtx **note_loc; /* Address of REG field of each note */ enum reg_note *note_kind; /* The type of each note */ - rtx *clobber_reg; - rtx **clobber_loc; + rtx *clobber_reg = 0; + rtx **clobber_loc = 0; struct stack_def temp_stack; int n_notes; diff --git a/gcc/regmove.c b/gcc/regmove.c index 8b2bc0b57c1..810f9d97a84 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -1,5 +1,5 @@ /* Move registers around to reduce number of move instructions needed. - Copyright (C) 1987, 88, 89, 92-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 92-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -1604,9 +1604,9 @@ fixup_match_1 (insn, set, src, src_subreg, dst, backward, operand_number, int success = 0; int num_calls = 0, s_num_calls = 0; enum rtx_code code = NOTE; - HOST_WIDE_INT insn_const, newconst; + HOST_WIDE_INT insn_const = 0, newconst; rtx overlap = 0; /* need to move insn ? */ - rtx src_note = find_reg_note (insn, REG_DEAD, src), dst_note; + rtx src_note = find_reg_note (insn, REG_DEAD, src), dst_note = NULL_RTX; int length, s_length; /* If SRC is marked as unchanging, we may not change it. @@ -1695,7 +1695,7 @@ fixup_match_1 (insn, set, src, src_subreg, dst, backward, operand_number, if (! src_note) { rtx q; - rtx set2; + rtx set2 = NULL_RTX; /* If an optimization is done, the value of SRC while P is executed will be changed. Check that this is OK. */ @@ -1872,7 +1872,7 @@ fixup_match_1 (insn, set, src, src_subreg, dst, backward, operand_number, if (! overlap && (code == PLUS || code == MINUS)) { rtx note = find_reg_note (insn, REG_EQUAL, NULL_RTX); - rtx q, set2; + rtx q, set2 = NULL_RTX; int num_calls2 = 0, s_length2 = 0; if (note && CONSTANT_P (XEXP (note, 0))) diff --git a/gcc/reload.c b/gcc/reload.c index 985fd831f25..3a4d23e43b0 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -1,5 +1,5 @@ /* Search an insn for pseudo regs that must be in hard regs and are not. - Copyright (C) 1987, 88, 89, 92-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 92-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -2383,7 +2383,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) int swapped; int goal_alternative[MAX_RECOG_OPERANDS]; int this_alternative_number; - int goal_alternative_number; + int goal_alternative_number = 0; int operand_reloadnum[MAX_RECOG_OPERANDS]; int goal_alternative_matches[MAX_RECOG_OPERANDS]; int goal_alternative_matched[MAX_RECOG_OPERANDS]; @@ -2397,7 +2397,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) rtx substed_operand[MAX_RECOG_OPERANDS]; rtx body = PATTERN (insn); rtx set = single_set (insn); - int goal_earlyclobber, this_earlyclobber; + int goal_earlyclobber = 0, this_earlyclobber; enum machine_mode operand_mode[MAX_RECOG_OPERANDS]; int retval = 0; diff --git a/gcc/scan-decls.c b/gcc/scan-decls.c index 3dafd342583..13a09ac8faf 100644 --- a/gcc/scan-decls.c +++ b/gcc/scan-decls.c @@ -1,5 +1,5 @@ /* scan-decls.c - Extracts declarations from cpp output. - Copyright (C) 1993, 1995, 97-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1993, 1995, 97-99, 2000 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -88,7 +88,7 @@ scan_decls (pfile, argc, argv) declarator. If it is zero, we are either still parsing the decl-specs, or prev_id_start marks the start of the declarator. */ int declarator_start; - int prev_id_start, prev_id_end; + int prev_id_start, prev_id_end = 0; enum cpp_token token; new_statement: diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 0aebd834d23..e78675f5ebc 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -1,5 +1,5 @@ /* Output sdb-format symbol table information from GNU compiler. - Copyright (C) 1988, 92-97, 1998 Free Software Foundation, Inc. + Copyright (C) 1988, 92-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -1173,7 +1173,7 @@ sdbout_one_type (type) /* Output a structure type. */ { int size = int_size_in_bytes (type); - int member_scl; + int member_scl = 0; tree tem; int i, n_baseclasses = 0; diff --git a/gcc/stupid.c b/gcc/stupid.c index 360e024c3fc..a0f328fae20 100644 --- a/gcc/stupid.c +++ b/gcc/stupid.c @@ -1,5 +1,5 @@ /* Dummy data flow analysis for GNU compiler in nonoptimizing mode. - Copyright (C) 1987, 91, 94-96, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1987, 91, 94-96, 98, 99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -264,7 +264,7 @@ stupid_life_analysis (f, nregs, file) for (insn = last; insn; insn = PREV_INSN (insn)) { register HARD_REG_SET *p = after_insn_hard_regs + INSN_SUID (insn); - struct insn_chain *chain; + struct insn_chain *chain = 0; /* Copy the info in regs_live into the element of after_insn_hard_regs for the current position in the rtl code. */ diff --git a/gcc/unroll.c b/gcc/unroll.c index 85d7d11af19..01e5aee43aa 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -1,5 +1,5 @@ /* Try to unroll loops, and split induction variables. - Copyright (C) 1992, 93, 94, 95, 97, 98, 1999 Free Software Foundation, Inc. + Copyright (C) 1992, 93-95, 97-99, 2000 Free Software Foundation, Inc. Contributed by James E. Wilson, Cygnus Support/UC Berkeley. This file is part of GNU CC. @@ -1692,7 +1692,7 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration, rtx start_label, loop_end, insert_before, copy_notes_from; { rtx insn, pattern; - rtx set, tem, copy; + rtx set, tem, copy = NULL_RTX; int dest_reg_was_split, i; #ifdef HAVE_cc0 rtx cc0_insn = 0; diff --git a/gcc/varasm.c b/gcc/varasm.c index efe2c0605ee..db94c0d8e0e 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1,5 +1,5 @@ /* Output variables, constants and external declarations, for GNU compiler. - Copyright (C) 1987, 88, 89, 92-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 92-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -4318,7 +4318,7 @@ output_constructor (exp, size) int total_bytes = 0; /* Non-zero means BYTE contains part of a byte, to be output. */ int byte_buffer_in_use = 0; - register int byte; + register int byte = 0; if (HOST_BITS_PER_WIDE_INT < BITS_PER_UNIT) abort ();