This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: comparing pointers inside builtins.c
- To: zack at wolery dot cumb dot org
- Subject: Re: comparing pointers inside builtins.c
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Sat, 17 Jun 00 12:09:26 EDT
- Cc: gcc at gcc dot gnu dot org
A number of the builtins - e.g. memcpy, strcmp - could benefit from
knowing whether their pointer arguments are equal: the same constant
or the same variable. Inside builtins.c, we're looking at trees.
What is the appropriate way, given two pointers as trees, to decide
whether we know they point to the same address?
How about operand_equal_p?