[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc
Subject:    Re: __function_size builtin
From:       "Paulo J. Matos" <pocmatos () gmail ! com>
Date:       2011-06-23 8:41:46
Message-ID: ituu8a$333$1 () dough ! gmane ! org
[Download RAW message or body]

On 22/06/11 23:25, Ian Lance Taylor wrote:
> "Paulo J. Matos"<pocmatos@gmail.com>  writes:
>
>> On 22/06/11 17:34, Paulo J. Matos wrote:
>>> I thought this was the same as using __attribute__((used)) on a function
>>> declaration (which works).
>>>
>>
>> DECL_PRESERVE_P(node) = 1;
>>
>> seems to be what I wanted. :)
>
> I always wondered what that was for.
>


Now we know... however the funny thing is that you would expect 
__attribute__((used)) to set TREE_USED(node), however, 
__attribute__((used)) sets the preserve flag.

This did confuse me yesterday! :)

Fortunately it is now solved. Thanks for you help!

> Ian
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic