This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Is there really only one symbol_ref object referring to eachsymbolic label?
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 27 Jun 2003 16:16:49 -0400 (EDT)
- Subject: Is there really only one symbol_ref object referring to eachsymbolic label?
Hi,
GCC Internals Manual states that
For any symbolic label, there is only one symbol_ref object
referring to it.
Does this mean x == y iff XSTR (x, 0) == XSTR (y, 0), assuming both x
and y are SYMBOL_REF? If so, looking at gen_rtx_SYMBOL_REF, I think
we can get two different rtx objects just by saying
x = gen_rtx_SYMBOL_REF (Pmode, "hello");
y = gen_rtx_SYMBOL_REF (Pmode, strdup ("hello"));
Or are we not supposed to do this?
Thanks in advance,
Kazu Hirata