This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Use ENCODE_SECTION_INFO and friends on Darwin
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: Use ENCODE_SECTION_INFO and friends on Darwin
- From: Stan Shebs <shebs at apple dot com>
- Date: Fri, 08 Jun 2001 15:51:27 -0700
- CC: gcc-patches at gcc dot gnu dot org
- References: <3B203ABA.4642D392@apple.com> <20010608153338.B3171@redhat.com>
Richard Henderson wrote:
>
> On Thu, Jun 07, 2001 at 07:38:51PM -0700, Stan Shebs wrote:
> > + (XSTR(sym_ref, 0))[1] = code;
>
> This is incorrect, as
>
> > + XSTR (sym_ref, 0) = ggc_alloc_string (str, newlen);
>
> this records a hashed globally unique string. You may not
> modify the results of ggc_alloc_string.
Thanks for the notes, I'll fix these! (I could have sworn I lifted
this from somebody else's code, but probably miscopied...)
Stan