This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using mem_attrs to get the tree of a function being called?
- From: Alexandre Courbot <Alexandre dot Courbot at lifl dot fr>
- To: Richard Henderson <rth at redhat dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Tue, 6 May 2003 14:37:43 +0200
- Subject: Re: Using mem_attrs to get the tree of a function being called?
- References: <200304301652.08784.Alexandre.Courbot@lifl.fr> <200305061025.33582.Alexandre.Courbot@lifl.fr> <20030506102409.GA7159@redhat.com>
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.