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]
Other format: [Raw text]

Re: [patch] Fix error recovery issue with alias


On Tue, Jun 25, 2013 at 9:23 AM, Eric Botcazou <ebotcazou@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  <ebotcazou@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  <ebotcazou@adacore.com>
>
>         * gnat.dg/specs/linker_alias.ads: New test.
>
>
> --
> Eric Botcazou


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