tree-ssa-structalias.c (intra_create_variable_infos): Make a constraint for the static chain parameter.

2008-11-27  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-structalias.c (intra_create_variable_infos): Make
	a constraint for the static chain parameter.

From-SVN: r142242
This commit is contained in:
Richard Guenther 2008-11-27 09:45:56 +00:00 committed by Richard Biener
parent c2d54fdff5
commit 75af9746ba
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-11-27 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.c (intra_create_variable_infos): Make
a constraint for the static chain parameter.
2008-11-27 Bernd Schmidt <bernd.schmidt@analog.com>
* config/bfin/bfin.opt (micplb): New option.

View File

@ -4560,6 +4560,15 @@ intra_create_variable_infos (void)
make_constraint_from (p, nonlocal_id);
}
}
/* Add a constraint for the incoming static chain parameter. */
if (cfun->static_chain_decl != NULL_TREE)
{
varinfo_t p, chain_vi = get_vi_for_tree (cfun->static_chain_decl);
for (p = chain_vi; p; p = p->next)
make_constraint_from (p, nonlocal_id);
}
}
/* Structure used to put solution bitmaps in a hashtable so they can