aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-06-20 16:23:15 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2013-06-20 14:23:15 +0000
commit7a89ad000878474ca2eea733bd209cfa8cbf73ce (patch)
tree7d73d63f18320cc3c593b2372cb9cc34ad6a92ab /gcc/lto
parentcda7fd66fde00b160d6ba9b4b626082d09ea5929 (diff)
downloadgcc-7a89ad000878474ca2eea733bd209cfa8cbf73ce.zip
gcc-7a89ad000878474ca2eea733bd209cfa8cbf73ce.tar.gz
gcc-7a89ad000878474ca2eea733bd209cfa8cbf73ce.tar.bz2
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
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto.c10
2 files changed, 5 insertions, 9 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 2723678..c2cbeed 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -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>
* lto-partition.c (add_references_to_partition): Use
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 7ddb84d..c0f9328 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -3362,7 +3362,6 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
{
unsigned int i, last_file_ix;
FILE *resolution;
- struct cgraph_node *node;
int count = 0;
struct lto_file_decl_data **decl_data;
void **res;
@@ -3544,14 +3543,7 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
}
lto_symtab_merge_symbols ();
ggc_collect ();
-
- /* 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);
+ cgraph_state = CGRAPH_STATE_IPA_SSA;
timevar_pop (TV_IPA_LTO_CGRAPH_MERGE);