===================================================================
@@ -1729,6 +1729,7 @@ fold_builtin_alloca_for_var (gimple stmt
array_type = build_array_type_nelts (elem_type, n_elem);
var = create_tmp_var (array_type, NULL);
DECL_ALIGN (var) = align;
+ pt_solution_add_var (&get_ptr_info (lhs)->pt, var);
/* Fold alloca to the address of the array. */
return fold_convert (TREE_TYPE (lhs), build_fold_addr_expr (var));
===================================================================
@@ -125,6 +125,7 @@ extern void dump_alias_stats (FILE *);
/* In tree-ssa-structalias.c */
extern unsigned int compute_may_aliases (void);
+extern void pt_solution_add_var (struct pt_solution *, tree);
extern bool pt_solution_empty_p (struct pt_solution *);
extern bool pt_solution_includes_global (struct pt_solution *);
extern bool pt_solution_includes (struct pt_solution *, const_tree);
===================================================================
@@ -5952,6 +5952,14 @@ pt_solution_ior_into (struct pt_solution
bitmap_ior_into (dest->vars, src->vars);
}
+void
+pt_solution_add_var (struct pt_solution *dest, tree var)
+{
+ struct pt_solution var_pt;
+ pt_solution_set_var (&var_pt, var);
+ pt_solution_ior_into (dest, &var_pt);
+}
+
/* Return true if the points-to solution *PT is empty. */
bool