]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-inline.c
extend.texi (Labels as Values): Document need for noclone.
authorMartin Jambor <mjambor@suse.cz>
Sat, 25 Jul 2009 18:09:42 +0000 (20:09 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Sat, 25 Jul 2009 18:09:42 +0000 (20:09 +0200)
commit86631ea3dd78a0077a6f96061affe89d5e38220f
tree3c96ae42a6ff9f1334a7b02a1bd9e7eff55129ad
parent2a9de349388c25eb2d8df725d5eace68c6c2c81d
extend.texi (Labels as Values): Document need for noclone.

2009-07-25  Martin Jambor  <mjambor@suse.cz>

* doc/extend.texi (Labels as Values): Document need for noclone.
(Function Attributes): Document noclone attribute.
* c-common.c (c_common_attribute_table): New element for noclone.
(handle_noclone_attribute): New function. Forward-declare.
* tree-inline.c (tree_versionable_function_p): Check for noclone
attribute.

* testsuite/gcc.c-torture/execute/pr17377.c: Add noclone attribute to
function y.
* testsuite/gcc.dg/ipa/noclone-1.c: New test.

From-SVN: r150086
gcc/ChangeLog
gcc/c-common.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr17377.c
gcc/testsuite/gcc.dg/ipa/noclone-1.c [new file with mode: 0644]
gcc/tree-inline.c