aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-04-17 19:00:48 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2011-04-17 17:00:48 +0000
commit10158cd3db8e8a64c39661418ec6ac1a57cdb092 (patch)
tree7a5af044cde1ffece2aea410a039ae86f842214d
parent2e9bb6ba99ec7db9f88a44dfec42c84ec1c7ea30 (diff)
downloadgcc-10158cd3db8e8a64c39661418ec6ac1a57cdb092.zip
gcc-10158cd3db8e8a64c39661418ec6ac1a57cdb092.tar.gz
gcc-10158cd3db8e8a64c39661418ec6ac1a57cdb092.tar.bz2
cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
* cgrpah.h (struct cgraph_node): Remove finalized_by_frontend. * cgrpahunit.c (cgraph_finalize_function): Do not set finalized_by_frontend. * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream finalized_by_frontend. From-SVN: r172614
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/cgraph.h2
-rw-r--r--gcc/cgraphunit.c1
-rw-r--r--gcc/lto-cgraph.c2
4 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f8287a8..b6d583b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
2011-04-17 Jan Hubicka <jh@suse.cz>
+ * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
+ * cgrpahunit.c (cgraph_finalize_function): Do not set finalized_by_frontend.
+ * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
+ finalized_by_frontend.
+
+2011-04-17 Jan Hubicka <jh@suse.cz>
+
* cgraph.c (cgraph_clone_node): Do not handle vtable_method
* cgraph.h (struct cgraph_local_info): Drop vtable_method.
* cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 69fd19a..e3a3b58 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -239,8 +239,6 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.previous"))) cgraph_node {
unsigned process : 1;
/* Set for aliases once they got through assemble_alias. */
unsigned alias : 1;
- /* Set for nodes that was constructed and finalized by frontend. */
- unsigned finalized_by_frontend : 1;
/* Set for alias and thunk nodes, same_body points to the node they are alias
of and they are linked through the next/previous pointers. */
unsigned same_body_alias : 1;
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index adfb0d2..3dbfc2b 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -352,7 +352,6 @@ cgraph_finalize_function (tree decl, bool nested)
notice_global_symbol (decl);
node->local.finalized = true;
node->lowered = DECL_STRUCT_FUNCTION (decl)->cfg != NULL;
- node->finalized_by_frontend = true;
if (cgraph_decide_is_function_needed (node, decl))
cgraph_mark_needed_node (node);
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c
index c8b0797..f560357 100644
--- a/gcc/lto-cgraph.c
+++ b/gcc/lto-cgraph.c
@@ -502,7 +502,6 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node,
bp_pack_value (&bp, node->lowered, 1);
bp_pack_value (&bp, in_other_partition, 1);
bp_pack_value (&bp, node->alias, 1);
- bp_pack_value (&bp, node->finalized_by_frontend, 1);
bp_pack_value (&bp, node->frequency, 2);
bp_pack_value (&bp, node->only_called_at_startup, 1);
bp_pack_value (&bp, node->only_called_at_exit, 1);
@@ -948,7 +947,6 @@ input_overwrite_node (struct lto_file_decl_data *file_data,
TREE_STATIC (node->decl) = 0;
}
node->alias = bp_unpack_value (bp, 1);
- node->finalized_by_frontend = bp_unpack_value (bp, 1);
node->frequency = (enum node_frequency)bp_unpack_value (bp, 2);
node->only_called_at_startup = bp_unpack_value (bp, 1);
node->only_called_at_exit = bp_unpack_value (bp, 1);