[PATCH] PR18757: Copy attributes to static extern "C" aliases

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Feb 12 18:07:32 PST 2014


On 12 February 2014 20:22, Reid Kleckner <rnk at google.com> wrote:
> I tried to apply this with a test case that doesn't run the optimizer, and
> discovered something scary.  GlobalAlias inherits from GlobalValue and
> therefore has a section, but the LangRef doesn't document this and we don't
> know how to serialize and deserialize it.
>
> So, if we applied this patch, the section on the alias would be dropped if
> we did LTO.  :(

This looks like an effect of pr10367. For now I suggest that we just
enforce that aliases never have section and they implicitly use the
section of what they target.

Cheers,
Rafael



More information about the cfe-commits mailing list