This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: String pools versus ENCODE_SECTION_INFO
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: String pools versus ENCODE_SECTION_INFO
- From: Richard Henderson <rth at redhat dot com>
- Date: Fri, 29 Dec 2000 00:09:01 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <or66k8z11c.fsf@guarana.lsd.ic.unicamp.br>
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~