Message ID | 20111221142142.GW1957@tyan-ft48-01.lab.bos.redhat.com |
---|---|
State | New |
Headers | show |
On Wed, Dec 21, 2011 at 3:21 PM, Jakub Jelinek <jakub@redhat.com> wrote: > Hi! > > My profiledbootstrap --enable-checking=release (and lots of other configury > options) failed this morning, I got warnings (promoted to errors due to > -Werror*) because our uninitialized warning code couldn't figure these out. > > Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, > ok for trunk? Ok. Richard. > 2011-12-21 Jakub Jelinek <jakub@redhat.com> > > * tree-vect-patterns.c (vect_operation_fits_smaller_type): Initialize > *op0 and *op1 to NULL_TREE first to avoid warnings. > * calls.c (initialize_argument_information): Initialize base to avoid > warnings. > > --- gcc/tree-vect-patterns.c.jj 2011-12-21 08:43:48.000000000 +0100 > +++ gcc/tree-vect-patterns.c 2011-12-21 09:47:50.908126257 +0100 > @@ -900,6 +900,8 @@ vect_operation_fits_smaller_type (gimple > loop_vec_info loop_info = STMT_VINFO_LOOP_VINFO (vinfo_for_stmt (stmt)); > struct loop *loop = LOOP_VINFO_LOOP (loop_info); > > + *op0 = NULL_TREE; > + *op1 = NULL_TREE; > *new_def_stmt = NULL; > > if (!is_gimple_assign (stmt)) > --- gcc/calls.c.jj 2011-12-12 22:10:26.000000000 +0100 > +++ gcc/calls.c 2011-12-21 09:03:44.721030991 +0100 > @@ -1157,7 +1157,7 @@ initialize_argument_information (int num > type, argpos < n_named_args)) > { > bool callee_copies; > - tree base; > + tree base = NULL_TREE; > > callee_copies > = reference_callee_copied (args_so_far_pnt, TYPE_MODE (type), > > Jakub
--- gcc/tree-vect-patterns.c.jj 2011-12-21 08:43:48.000000000 +0100 +++ gcc/tree-vect-patterns.c 2011-12-21 09:47:50.908126257 +0100 @@ -900,6 +900,8 @@ vect_operation_fits_smaller_type (gimple loop_vec_info loop_info = STMT_VINFO_LOOP_VINFO (vinfo_for_stmt (stmt)); struct loop *loop = LOOP_VINFO_LOOP (loop_info); + *op0 = NULL_TREE; + *op1 = NULL_TREE; *new_def_stmt = NULL; if (!is_gimple_assign (stmt)) --- gcc/calls.c.jj 2011-12-12 22:10:26.000000000 +0100 +++ gcc/calls.c 2011-12-21 09:03:44.721030991 +0100 @@ -1157,7 +1157,7 @@ initialize_argument_information (int num type, argpos < n_named_args)) { bool callee_copies; - tree base; + tree base = NULL_TREE; callee_copies = reference_callee_copied (args_so_far_pnt, TYPE_MODE (type),