]> git.ipfire.org Git - thirdparty/gcc.git/commit
* doc/extend.texi: (attribute leaf): Document.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Sep 2010 19:14:51 +0000 (19:14 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Sep 2010 19:14:51 +0000 (19:14 +0000)
commit7bd95dfd984faaeb4d64ee3f044de98c10cba066
tree3586ff30f00807c4e59b1bf02ac5e21a1cdad147
parent01c8b828d8905a7565b1cc7803f0ef960a0b4f95
* doc/extend.texi: (attribute leaf): Document.
* tree.c (local_define_builtin): Handle ECF_LEAF.
(build_common_builtin_nodes): Set ECF_LEAF where needed.
* tree.h (ECF_LEAF): New.
* ipa-reference.c (propagate_bits): For leaf calls propagate ever overwrittable
and unavailable functions.
(ipa_init): Put all_module_statics into optimization_summary_obstack.
(copy_global_bitmap): Do not copy all_module_statics.
(read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
(propagate): Handle overwritable and unavailable leaf functions;
initialize global info for overwritable and unavailable leaf functions;
do not free all module statics.
(ipa_reference_get_not_read_global, ipa_reference_get_not_written_global):
leaf calls don't clobber local statics.
* calls.c (flags_from_decl_or_type): Handle leaf.
* tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
abnormal gotos.

* c-common.c (handle_leaf_attribute): New function.
(struct attribute_spec c_common_att): Add leaf.

* gcc.dg/tree-ssa/leaf.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164606 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/calls.c
gcc/doc/extend.texi
gcc/ipa-reference.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/leaf.c [new file with mode: 0644]
gcc/tree-cfg.c
gcc/tree.c
gcc/tree.h