This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: LHS of assignment
- From: ja2morri at csclub dot uwaterloo dot ca (James A. Morrison)
- To: shreyas krishnan <shreyas76 at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 02 Aug 2005 01:14:22 -0400
- Subject: Re: LHS of assignment
- References: <24389fb305080118281e0a5626@mail.gmail.com>
shreyas krishnan <shreyas76@gmail.com> writes:
> Hi every one,
> Can some one please answer this. How do I get a tree node from
> an exisiting symbol for use in the LHS of a expression ? example a=10;
>
> thanks
> shrey
I don't really know what your asking but in a = <expr> is the the 1st operand
of a MODIFY_EXPR, i.e. TREE_OPERAND (modify_expr, 0).
--
Thanks,
Jim
http://www.csclub.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim