This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR bootstrap/64754: [5 Regression] bootstrap failed with --with-build-config=bootstrap-lto


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?

Thanks.


H.J.
---
2015-01-23  H.J. Lu  <hongjiu.lu@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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]