aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2007-11-30 19:16:15 +0000
committerNathan Froyd <froydnj@codesourcery.com>2007-11-30 19:16:15 +0000
commit62f834caf21412b6ffd5aca656157cb45cd8c75a (patch)
treebe8d95fd9a623f1495894235b68d8080c6771e68
parentd4955459b037adb70a40728476605cae0b1f366e (diff)
gcc/
* lto-tree-flags.def (RESULT_DECL): Add gimple_reg_flag. gcc/lto/ * lto.c (lto_materialize_function): Add FIXME. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@130545 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog.lto4
-rw-r--r--gcc/lto-tree-flags.def1
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto.c9
4 files changed, 18 insertions, 0 deletions
diff --git a/gcc/ChangeLog.lto b/gcc/ChangeLog.lto
index f3c8605958d..d9953875e61 100644
--- a/gcc/ChangeLog.lto
+++ b/gcc/ChangeLog.lto
@@ -1,3 +1,7 @@
+2007-11-30 Nathan Froyd <froydnj@codesourcery.com>
+
+ * lto-tree-flags.def (RESULT_DECL): Add gimple_reg_flag.
+
2007-11-29 Kenneth Zadeck <zadeck@naturalbridge.com>
* lto-function-out.c (output_expr_operand): Fix STRING_CST to
diff --git a/gcc/lto-tree-flags.def b/gcc/lto-tree-flags.def
index 5bf3a9fe046..b755e0ddb06 100644
--- a/gcc/lto-tree-flags.def
+++ b/gcc/lto-tree-flags.def
@@ -586,6 +586,7 @@
END_EXPR_CASE (REFERENCE_TYPE)
START_EXPR_CASE (RESULT_DECL)
+ ADD_DECL_FLAG (gimple_reg_flag)
END_EXPR_CASE (RESULT_DECL)
START_EXPR_CASE (RESX_EXPR)
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index c0c31b71d62..43effd7a743 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-30 Nathan Froyd <froydnj@codesourcery.com>
+
+ * lto.c (lto_materialize_function): Add FIXME.
+
2007-11-29 Nathan Froyd <froydnj@codesourcery.com>
* lto-lang.c (enum built_in_attribute): New enum.
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index aff75a70b7d..a93d806d3c4 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -2417,6 +2417,15 @@ lto_materialize_function (lto_info_fd *fd,
if (body)
{
/* cgraph expects this to be called once for each function. */
+ /* FIXME: eventually, reading LTO files should rebuild SSA
+ perfectly so that things like the extra referenced_vars pass
+ and rebuild_ssa_for_lto can go away. Before that happens, this
+ call needs to be moved earlier in the materialization
+ process--probably to lto-read.c:input_cfg or before. We could
+ move it there now, but the current state means that we would do
+ useless work while reading in LTO files--building SSA operands
+ once while reading and then rebuilding again during
+ rebuild_ssa_for_lto. */
init_ssa_operands ();
cgraph_finalize_function (decl, /*nested=*/false);