This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Getting variable attribute from rtx


Dobes <bdobry@udel.edu> writes:

>>> See the SYMBOL_REF_FLAGS stuff in rtl.h and various examples in the
>>> back-ends.
>> Or, better, look for uses of lookup_attribute.
>> 
>
> OK, I've now got it working for globals and static locals by tagging the rtl
> in "encode_section_info" and checking for that tag later.  How can I do the
> same for locals?

Use lookup_attribute.  In fact, use that instead of
encode_section_info.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]