Commit 3f1ae742 by Uros Bizjak

re PR middle-end/53321 (LTO bootstrap failed with bootstrap-profiled)

	PR middle-end/53321
	* ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
	to not call cgraph_propagate_frequency if something was changed.

testsuite/ChangLog:

	PR middle-end/53321
	* g++.dg/torture/pr53321.C: New test.

From-SVN: r189261
parent 23af816c
2012-07-04 Uros Bizjak <ubizjak@gmail.com>
PR middle-end/53321
* ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
to not call cgraph_propagate_frequency if something was changed.
2012-07-04 Richard Guenther <rguenther@suse.de>
PR middle-end/53433
......@@ -31,7 +37,7 @@
as in free_lang_data_in_type.
2012-07-04 Tobias Grosser <tobias@grosser.es>
Michael Matz <matz@suse.de>
Michael Matz <matz@suse.de>
* Makefile.in (OBJS): Add graphite-optimize-isl.o.
(graphite-optimize-isl.o): Add dependencies.
......
......@@ -449,11 +449,6 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
verify_symtab ();
#endif
/* If we removed something, perhaps profile could be improved. */
if (changed && optimize && inline_edge_summary_vec)
FOR_EACH_DEFINED_FUNCTION (node)
cgraph_propagate_frequency (node);
return changed;
}
......
2012-07-04 Uros Bizjak <ubizjak@gmail.com>
PR middle-end/53321
* g++.dg/torture/pr53321.C: New test.
2012-07-04 Richard Guenther <rguenther@suse.de>
PR tree-optimization/53844
......
// { dg-do compile }
// { dg-require-profiling "-fprofile-generate" }
// { dg-options "-fprofile-generate" }
typedef long unsigned int size_t;
extern "C"
{
extern void *memcpy (void *__dest, __const void *__src, size_t __n);
}
extern char *src, *sources;
extern int n_sources;
static void
find_source (const char *file_name)
{
memcpy (src, sources, n_sources * sizeof (*sources));
}
extern const char *gcov_read_string (void);
static void read_graph_file (void)
{
find_source (gcov_read_string ());
}
static void process_file (void)
{
read_graph_file ();
}
int main ()
{
process_file ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment