* function.h (struct function): Add cannot_be_copied_reason,
commitd747fdfb151cf2d935ff3916c67919ae9cc58722
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Jun 2009 18:23:32 +0000 (26 18:23 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Jun 2009 18:23:32 +0000 (26 18:23 +0000)
tree6390d7426655b799c3e583c3c54f543275010601
parentf9fa0459195973440fbd7c4de17ad64140b9ea68
* function.h (struct function): Add cannot_be_copied_reason,
and cannot_be_copied_set.
* tree-inline.c (has_label_address_in_static_1): Rename from
inline_forbidden_p_2; don't set inline_forbidden_reason here.
(cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
don't set inline_forbidden_reason.
(copy_forbidden): New function, split out of inline_forbidden_p.
(inline_forbidden_p_stmt): Don't check for nonlocal labels here.
(inline_forbidden_p): Use copy_forbidden.
(tree_versionable_function_p): Likewise.
(inlinable_function_p): Merge into tree_inlinable_function_p.
(tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
* ipa-cp.c (ipcp_versionable_function_p): New function.
(ipcp_cloning_candidate_p): Use it.
(ipcp_node_modifiable_p): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148981 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/function.h
gcc/ipa-cp.c
gcc/tree-inline.c