This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR bootstrap/64754: [5 Regression] bootstrap failed with --with-build-config=bootstrap-lto
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Biener <rguenther at suse dot de>
- Date: Fri, 23 Jan 2015 14:43:39 -0800
- Subject: PATCH: PR bootstrap/64754: [5 Regression] bootstrap failed with --with-build-config=bootstrap-lto
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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))