diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-02 10:59:00 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-02 10:59:00 +0000 |
commit | 3f82b628e8220aabfcd4e6a96c7eb241302a4561 (patch) | |
tree | 4f4dc9e478b4edd68765ff38a1348129dc516dae /gcc/cgraph.h | |
parent | fc2abfd309eaa3bcc23a9349d870f90ab4818901 (diff) | |
download | gcc-3f82b628e8220aabfcd4e6a96c7eb241302a4561.tar.gz |
* cgraph.c (dump_cgraph_node): Print new flags.
(dump_cgraph_varpool_node): Likewise.
(decide_variable_is_needed): Initialize externally_visible flag.
* cgraph.h (cgraph_local_info): Add externally_visible flag.
(cgraph_varpool_node): Likewise.
(cgraph_function_flags_ready): Declare.
* cgraph.c (cgraph_mark_local_functions): Rename to ...
(cgraph_function_and_variable_visibility) ... this one; handle
externally_visible flags.
(decide_is_function_needed): Set externally_visible flag.
(cgraph_finalize_function): Deal properly with early cleanups.
(cgraph_optimize): Update call of
cgraph_function_and_variable_visibility.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100491 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index a10fcc65d3f..96e382a4a43 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -36,6 +36,9 @@ struct cgraph_local_info GTY(()) and its address is never taken. */ bool local; + /* Set when function is visible by other units. */ + bool externally_visible; + /* Set once it has been finalized so we consider it to be output. */ bool finalized; @@ -177,6 +180,8 @@ struct cgraph_varpool_node GTY(()) bool finalized; /* Set when function is scheduled to be assembled. */ bool output; + /* Set when function is visible by other units. */ + bool externally_visible; /* Set for aliases once they got through assemble_alias. */ bool alias; }; @@ -185,6 +190,7 @@ extern GTY(()) struct cgraph_node *cgraph_nodes; extern GTY(()) int cgraph_n_nodes; extern GTY(()) int cgraph_max_uid; extern bool cgraph_global_info_ready; +extern bool cgraph_function_flags_ready; extern GTY(()) struct cgraph_node *cgraph_nodes_queue; extern GTY(()) struct cgraph_varpool_node *cgraph_varpool_first_unanalyzed_node; |