[PATCH] Don't use .gnu.linkonce with COMDAT

Mark Mitchell mark@codesourcery.com
Mon May 9 00:10:00 GMT 2005


Richard Sandiford wrote:

> An even simpler way of writing this is:
> 
>     if (DECL_ONE_ONLY (decl) && HAVE_COMDAT_GROUP)
>       {
>         const char *rname = ACONCAT ((".rodata", name + 5, NULL));
>         named_section_real (rname, SECTION_LINKONCE, decl);
>         return;
>       }

Yes, that's very nice.  I didn't know about ACONCAT.  Julian, making 
that change is pre-approved.

Thanks,

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Gcc-patches mailing list