This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Pointer addition/subtraction tree node
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Alexander Lamaison" <awl03 at doc dot ic dot ac dot uk>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 18 Mar 2007 17:47:07 -0700
- Subject: Re: Pointer addition/subtraction tree node
- References: <001d01c769be$c2cd0fb0$48672f10$@ic.ac.uk>
On 3/18/07, Alexander Lamaison <awl03@doc.ic.ac.uk> wrote:
As part of adding a new pass to GCC I am intercepting addition to and
subtraction from pointers. These are represented by PLUS_EXPR and
MINUS_EXPR tree nodes. I need to be able to find out which of the node's
two operands is the actual pointer and which is the integer that has been
added to it.
Is there another way to find out which is which?
Not right now, I have been working on a new representation of pointer
arithmetic for the tree level. The basic implementation is already
done, see the pointer_plus branch.
Thanks,
Andrew Pinski