This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about gen_rtx_VAR_LOCATION
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Jie Zhang <jie at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 26 Mar 2010 16:36:20 +0100
- Subject: Re: Question about gen_rtx_VAR_LOCATION
- References: <4BACD25C.9010309@codesourcery.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Mar 26, 2010 at 11:27:24PM +0800, Jie Zhang wrote:
> There are two calls of gen_rtx_VAR_LOCATION in cfgexpand.c. Both calls
> cast a tree to rtx as the third argument. Why a tree is used in RTL
> expression? Will it be transformed into RTL later or all RTL passes
> should recognize it's a tree and just ignore it? Thanks.
Yes, it is just temporary. The tree survives there just from
the calls from within expand_gimple_basic_block until the immediately
following expand_debug_locations call.
Jakub