mirror of git://gcc.gnu.org/git/gcc.git
lto-cgraph.c (input_symtab): Do not set cgraph state.
* lto-cgraph.c (input_symtab): Do not set cgraph state. * lto.c (read_cgraph_and_symbols): Set cgraph state. From-SVN: r200247
This commit is contained in:
parent
cda7fd66fd
commit
7a89ad0008
|
|
@ -1,3 +1,7 @@
|
||||||
|
2013-06-20 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
|
* lto-cgraph.c (input_symtab): Do not set cgraph state.
|
||||||
|
|
||||||
2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
|
2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
|
||||||
|
|
||||||
PR rtl-optimization/57425
|
PR rtl-optimization/57425
|
||||||
|
|
|
||||||
|
|
@ -1451,8 +1451,6 @@ input_symtab (void)
|
||||||
unsigned int j = 0;
|
unsigned int j = 0;
|
||||||
struct cgraph_node *node;
|
struct cgraph_node *node;
|
||||||
|
|
||||||
cgraph_state = CGRAPH_STATE_IPA_SSA;
|
|
||||||
|
|
||||||
while ((file_data = file_data_vec[j++]))
|
while ((file_data = file_data_vec[j++]))
|
||||||
{
|
{
|
||||||
const char *data;
|
const char *data;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
2013-06-20 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
|
* lto.c (read_cgraph_and_symbols): Set cgraph state.
|
||||||
|
|
||||||
2013-06-19 Jan Hubicka <jh@suse.cz>
|
2013-06-19 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
* lto-partition.c (add_references_to_partition): Use
|
* lto-partition.c (add_references_to_partition): Use
|
||||||
|
|
|
||||||
|
|
@ -3362,7 +3362,6 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
|
||||||
{
|
{
|
||||||
unsigned int i, last_file_ix;
|
unsigned int i, last_file_ix;
|
||||||
FILE *resolution;
|
FILE *resolution;
|
||||||
struct cgraph_node *node;
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
struct lto_file_decl_data **decl_data;
|
struct lto_file_decl_data **decl_data;
|
||||||
void **res;
|
void **res;
|
||||||
|
|
@ -3544,14 +3543,7 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
|
||||||
}
|
}
|
||||||
lto_symtab_merge_symbols ();
|
lto_symtab_merge_symbols ();
|
||||||
ggc_collect ();
|
ggc_collect ();
|
||||||
|
cgraph_state = CGRAPH_STATE_IPA_SSA;
|
||||||
/* FIXME: ipa_transforms_to_apply holds list of passes that have optimization
|
|
||||||
summaries computed and needs to apply changes. At the moment WHOPR only
|
|
||||||
supports inlining, so we can push it here by hand. In future we need to stream
|
|
||||||
this field into ltrans compilation. */
|
|
||||||
if (flag_ltrans)
|
|
||||||
FOR_EACH_DEFINED_FUNCTION (node)
|
|
||||||
node->ipa_transforms_to_apply.safe_push ((ipa_opt_pass)&pass_ipa_inline);
|
|
||||||
|
|
||||||
timevar_pop (TV_IPA_LTO_CGRAPH_MERGE);
|
timevar_pop (TV_IPA_LTO_CGRAPH_MERGE);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue