On Fri, Jan 23, 2015 at 11:43 PM, H.J. Lu <hongjiu...@intel.com> wrote: > Hi, > > r218005 added: > > + /* ??? Store somewhere better. */ > + unsigned short ruid; > > > + if (restrict_var->ruid == 0) > + restrict_var->ruid = ++last_ruid; > + MR_DEPENDENCE_CLIQUE (ref) = clique; > + MR_DEPENDENCE_BASE (ref) = restrict_var->ruid; > > Since ruid isn't initialized, we get random order. This patch initializes > ruid to 0. Tested on Linux/x86. OK to install?
Oops. Ok. Thanks, Richard. > Thanks. > > > H.J. > --- > 2015-01-23 H.J. Lu <hongjiu...@intel.com> > > PR bootstrap/64754 > * tree-ssa-structalias.c (new_var_info): Initialize ruid. > > diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c > index 96d1ce3..4c43b75 100644 > --- a/gcc/tree-ssa-structalias.c > +++ b/gcc/tree-ssa-structalias.c > @@ -409,6 +409,7 @@ new_var_info (tree t, const char *name) > ret->may_have_pointers = true; > ret->only_restrict_pointers = false; > ret->is_restrict_var = false; > + ret->ruid = 0; > ret->is_global_var = (t == NULL_TREE); > ret->is_fn_info = false; > if (t && DECL_P (t))