This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Attribute noclone
Hi,
On Fri, Jul 17, 2009 at 01:07:58PM -0700, Chris Lattner wrote:
>
> On Jul 17, 2009, at 12:30 PM, Martin Jambor wrote:
>
>> Hi,
>>
>> since the attribute noinline does not prevent ipa-cp cloning from
>> taking place, there has been a need to provide a new attribute to
>> do just that. The following patch introduces it, adds a testcase
>> to verify it works, amends a testcase which will need it in the
>> future and documents it.
>
> Doesn't attribute(used) work for this?
>
No, it doesn't. I was surprised I did not get an "attribute unused"
warning when I tried it, though. But even if it worked on functions
and did what it is supposed to do - to make sure the function survives
- there might be still a number of its copies created too.
Martin