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: Using mem_attrs to get the tree of a function being called?


On Tuesday 06 May 2003 12:24, Richard Henderson wrote:
> On Tue, May 06, 2003 at 10:25:33AM +0200, Alexandre Courbot wrote:
> > Or more likely I've missed something. Is there anything wrong
> > in what I do?
>
> No telling.  You didn't show us code.

Sorry. I thought that just telling that I couldn't use a pointer right after 
getting it from SYMBOL_REF_DECL would be enough. But actually, you're right - 
and looking back at my code I realized that I was calling SYMBOL_REF_DECL on 
the MEM rtx of the function - and as you can guess, after getting the adress 
and calling SYMBOL_REF_DECL on it things went far better. I'm sorry for the 
stupid post which could have been avoided - and thanks again for the reply 
which really helps (and make me work on gcc mainline instead of releases ;))

See you,
Alex.


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