This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix error recovery issue with alias
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 27 Aug 2013 09:46:10 +0200
- Subject: Re: [patch] Fix error recovery issue with alias
- Authentication-results: sourceware.org; auth=none
- References: <686077088 dot b1Pk30ZbpY at polaris>
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