aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-10-16 18:59:07 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-10-16 16:59:07 +0000
commit844db5d09eb972e4f9188b77854d76ce345ca9ee (patch)
tree729e8daec41bc5163de53301f1aa679b1c2fadf7 /gcc/cgraph.h
parent6eb6875d7ec398935d3ae76f805e33db0c3773dd (diff)
downloadgcc-844db5d09eb972e4f9188b77854d76ce345ca9ee.zip
gcc-844db5d09eb972e4f9188b77854d76ce345ca9ee.tar.gz
gcc-844db5d09eb972e4f9188b77854d76ce345ca9ee.tar.bz2
cgraph.c (dump_cgraph_node): Dump same_comdat_group, only_called_at_startup and only_called_at_exit.
* cgraph.c (dump_cgraph_node): Dump same_comdat_group, only_called_at_startup and only_called_at_exit. (cgraph_propagate_frequency): Compute only_called_at_startup and only_called_at_exit. * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and only_called_at_exit. * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new flags. * predict.c (compute_function_frequency): Initialize the new flags. From-SVN: r165560
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index d7ca67c..ea95f70 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -298,6 +298,10 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.previous"))) cgraph_node {
/* How commonly executed the node is. Initialized during branch
probabilities pass. */
ENUM_BITFIELD (node_frequency) frequency : 2;
+ /* True when function can only be called at startup (from static ctor). */
+ unsigned only_called_at_startup : 1;
+ /* True when function can only be called at startup (from static dtor). */
+ unsigned only_called_at_exit : 1;
};
typedef struct cgraph_node *cgraph_node_ptr;