This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]