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: Use ENCODE_SECTION_INFO and friends on Darwin


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.


r~


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