diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-01 23:35:51 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-01 23:35:51 +0000 |
commit | 93b6a460e81b4f327948db4b5235a6b04581094f (patch) | |
tree | d7f3ccc049199953830eb5220f5dfa68c39be0a6 /gcc | |
parent | 2041cfd9d3cc196019c4e53a67af0e515d4efb58 (diff) | |
download | gcc-93b6a460e81b4f327948db4b5235a6b04581094f.tar.gz |
* fold-const.c optimze_bit_field_compare): Initialize rnbitpos,
rnbitsize, rnmode and rinner.
(make_range): Initialize type.
(fold): Initialize arg0, arg1 and varop.
* function.c (instantiate_virtual_regs_1): Initialize offset, regnoi
and regnor.
(expand_function_start): Initialize last_ptr.
* stor-layout.c (layout_record): Initialize desired_align.
(get_best_mode): Initialize unit.
* tree.c (copy_node): Initialize length.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18943 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 14 | ||||
-rw-r--r-- | gcc/fold-const.c | 12 | ||||
-rw-r--r-- | gcc/function.c | 6 | ||||
-rw-r--r-- | gcc/stor-layout.c | 4 | ||||
-rw-r--r-- | gcc/tree.c | 2 |
5 files changed, 26 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 16484890726..77b15f34adb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,19 @@ Wed Apr 1 22:26:22 1998 Jeffrey A Law (law@cygnus.com) + * fold-const.c optimze_bit_field_compare): Initialize rnbitpos, + rnbitsize, rnmode and rinner. + (make_range): Initialize type. + (fold): Initialize arg0, arg1 and varop. + + * function.c (instantiate_virtual_regs_1): Initialize offset, regnoi + and regnor. + (expand_function_start): Initialize last_ptr. + + * stor-layout.c (layout_record): Initialize desired_align. + (get_best_mode): Initialize unit. + + * tree.c (copy_node): Initialize length. + * c-lex.c (yylex): Initialize traditional_type, ansi_type and type. * caller-save.c (insert_save_restore): Initialize pat, code and diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 537e2b201f4..99b913a284e 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2388,15 +2388,15 @@ optimize_bit_field_compare (code, compare_type, lhs, rhs) tree lhs, rhs; { int lbitpos, lbitsize, rbitpos, rbitsize; - int lnbitpos, lnbitsize, rnbitpos, rnbitsize; + int lnbitpos, lnbitsize, rnbitpos = 0, rnbitsize = 0; tree type = TREE_TYPE (lhs); tree signed_type, unsigned_type; int const_p = TREE_CODE (rhs) == INTEGER_CST; - enum machine_mode lmode, rmode, lnmode, rnmode; + enum machine_mode lmode, rmode, lnmode, rnmode = VOIDmode; int lunsignedp, runsignedp; int lvolatilep = 0, rvolatilep = 0; int alignment; - tree linner, rinner; + tree linner, rinner = NULL_TREE; tree mask; tree offset; @@ -2784,7 +2784,7 @@ make_range (exp, pin_p, plow, phigh) tree *plow, *phigh; { enum tree_code code; - tree arg0, arg1, type; + tree arg0, arg1, type = NULL_TREE; int in_p, n_in_p; tree low, high, n_low, n_high; @@ -3717,7 +3717,7 @@ fold (expr) tree t1 = NULL_TREE; tree tem; tree type = TREE_TYPE (expr); - register tree arg0, arg1; + register tree arg0 = NULL_TREE, arg1 = NULL_TREE; register enum tree_code code = TREE_CODE (t); register int kind; int invert; @@ -5114,7 +5114,7 @@ fold (expr) First, see if one arg is constant; find the constant arg and the other one. */ { - tree constop = 0, varop; + tree constop = 0, varop = NULL_TREE; int constopnum = -1; if (TREE_CONSTANT (arg1)) diff --git a/gcc/function.c b/gcc/function.c index f69076f2b71..31201b4564a 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -2977,7 +2977,7 @@ instantiate_virtual_regs_1 (loc, object, extra_insns) rtx x; RTX_CODE code; rtx new = 0; - int offset; + int offset = 0; rtx temp; rtx seq; int i, j; @@ -4037,7 +4037,7 @@ assign_parms (fndecl, second_time) may need to do it in a wider mode. */ register rtx parmreg; - int regno, regnoi, regnor; + int regno, regnoi = 0, regnor = 0; unsignedp = TREE_UNSIGNED (TREE_TYPE (parm)); @@ -5336,7 +5336,7 @@ expand_function_start (subr, parms_have_cleanups) { register int i; tree tem; - rtx last_ptr; + rtx last_ptr = NULL_RTX; /* Make sure volatile mem refs aren't considered valid operands of arithmetic insns. */ diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 3510a8ff151..8aaf2f692f2 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -331,7 +331,7 @@ layout_record (rec) for (field = TYPE_FIELDS (rec); field; field = TREE_CHAIN (field)) { register int known_align = var_size ? var_align : const_size; - register int desired_align; + register int desired_align = 0; /* If FIELD is static, then treat it like a separate variable, not really like a structure field. @@ -1222,7 +1222,7 @@ get_best_mode (bitsize, bitpos, align, largest_mode, volatilep) int volatilep; { enum machine_mode mode; - int unit; + int unit = 0; /* Find the narrowest integer mode that contains the bit field. */ for (mode = GET_CLASS_NARROWEST_MODE (MODE_INT); mode != VOIDmode; diff --git a/gcc/tree.c b/gcc/tree.c index 53f2da5dae2..fe36f890da3 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1128,7 +1128,7 @@ copy_node (node) { register tree t; register enum tree_code code = TREE_CODE (node); - register int length; + register int length = 0; register int i; switch (TREE_CODE_CLASS (code)) |