This is the mail archive of the gcc-patches@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]

Re: String pools versus ENCODE_SECTION_INFO


On Mon, Dec 25, 2000 at 06:41:35PM -0200, Alexandre Oliva wrote:
> If ENCODE_SECTION_INFO modifies the label in a string constant, the
> hash table won't find a match.  Here's a patch that corrects this, by
> arranging that we always use the string of the symbol_ref, which is
> the only thing available when marking the constants.  Ok to install?

I don't much like how confusing this gets.  Does something like

  if (! found)
    {
      ENCODE_SECTION_INFO (exp);
      desc->label = XSTR (XEXP (desc->rtl, 0), 0);
    }

work?


r~

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