On Tue, Jun 25, 2013 at 9:23 AM, Eric Botcazou <ebotca...@adacore.com> wrote:
> Hi,
>
> this fixes a segfault on a malformed alias declaration, which is correctly
> flagged as an error by handle_alias_pairs:
>
> error: 'Linker_Alias.Var' aliased to undefined symbol 'var2'
>
> but is nevertheless later processed as a valid alias by the cgraph machinery.
>
> Bootstrapped/regtested on x86_64-suse-linux, OK for the mainline?

Ok if it still applies.

Thanks,
Richard.

>
> 2013-06-25  Eric Botcazou  <ebotca...@adacore.com>
>
>         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
>         error message is issued for an alias to an undefined symbol.
>
>
> 2013-06-25  Eric Botcazou  <ebotca...@adacore.com>
>
>         * gnat.dg/specs/linker_alias.ads: New test.
>
>
> --
> Eric Botcazou

Reply via email to