+2015-10-30 Tom de Vries <tom@codesourcery.com>
+
+ * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
+ unsigned, and initialize, and use initial value instead of hardcoded
+ constant. Add generic constraints dumping section. Don't dump global
+ initializers constraints dumping section if empty. Don't update
+ variable from if unused.
+
2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
* config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
{
struct cgraph_node *node;
varpool_node *var;
- int from;
+ unsigned int from = 0;
in_ipa_mode = 1;
fprintf (dump_file, "\n");
}
+ if (dump_file)
+ {
+ fprintf (dump_file, "Generating generic constraints\n\n");
+ dump_constraints (dump_file, from);
+ fprintf (dump_file, "\n");
+ from = constraints.length ();
+ }
+
/* Build the constraints. */
FOR_EACH_DEFINED_FUNCTION (node)
{
get_vi_for_tree (var->decl);
}
- if (dump_file)
+ if (dump_file
+ && from != constraints.length ())
{
fprintf (dump_file,
"Generating constraints for global initializers\n\n");
- dump_constraints (dump_file, 0);
+ dump_constraints (dump_file, from);
fprintf (dump_file, "\n");
+ from = constraints.length ();
}
- from = constraints.length ();
FOR_EACH_DEFINED_FUNCTION (node)
{
fprintf (dump_file, "\n");
dump_constraints (dump_file, from);
fprintf (dump_file, "\n");
+ from = constraints.length ();
}
- from = constraints.length ();
}
/* From the constraints compute the points-to sets. */