OSDN Git Service

2005-07-15 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Jul 2005 09:31:39 +0000 (09:31 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Jul 2005 09:31:39 +0000 (09:31 +0000)
commit0cdd9887f98205f3a478980adaef98002c8f66c0
tree2e0dd485a84563f4c7093a4d5ed09ecd19507784
parent0631cefe0c42ce79ef9e0f56eb2cd2e4863e91fd
2005-07-15  Richard Guenther  <rguenther@suse.de>

* c-common.c (handle_flatten_attribute): New function.
Add flatten function attribute.
* doc/extend.texi: Document flatten function attribute.
* Makefile.in (ipa-inline.o): Depend on hashtab.h.
* ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
New functions.
(cgraph_decide_inlining): Handle functions with flatten
attribute.

* gcc.dg/tree-ssa/flatten-1.c: New testcase.
* gcc.dg/tree-ssa/flatten-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102051 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/Makefile.in
gcc/c-common.c
gcc/doc/extend.texi
gcc/ipa-inline.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/flatten-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/flatten-2.c [new file with mode: 0644]