re PR java/29587 (jc1: out of memory allocating 4072 bytes after a total of 708630224 bytes)

2006-11-12  Daniel Berlin  <dberlin@dberlin.org>

	Fix PR tree-optimization/29587
	* tree-ssa-structalias.c (process_constraint): Don't
	mark address taken due only to escaped vars constraint.

From-SVN: r118742
This commit is contained in:
Daniel Berlin 2006-11-13 02:18:07 +00:00 committed by Daniel Berlin
parent 3b279c7ae7
commit 163b858186
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2006-11-12 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/29587
* tree-ssa-structalias.c (process_constraint): Don't
mark address taken due only to escaped vars constraint.
2006-11-12 Michael Matz <matz@suse.de>
Roger Sayle <roger@eyesopen.com>

View file

@ -2327,8 +2327,11 @@ process_constraint (constraint_t t)
varinfo_t vi;
gcc_assert (rhs.offset == 0);
for (vi = get_varinfo (rhs.var); vi != NULL; vi = vi->next)
vi->address_taken = true;
/* No need to mark address taken simply because of escaped vars
constraints. */
if (lhs.var != escaped_vars_id)
for (vi = get_varinfo (rhs.var); vi != NULL; vi = vi->next)
vi->address_taken = true;
VEC_safe_push (constraint_t, heap, constraints, t);
}