This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ping] Fix error recovery issue with alias
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: ebotcazou at adacore dot com, dominiq at lps dot ens dot fr
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Aug 2013 14:15:44 +0200
- Subject: Re: [ping] Fix error recovery issue with alias
- References: <20130818172108 dot 676293BE1E at mailhost dot lps dot ens dot fr> <201308182047 dot 52368 dot ebotcazou at adacore dot com>
> Can you try and add
>
> pragma Weak_External (Var);
>
>on line 8 and see whether it passes? If so, you can commit the patchlet.
The test still fails with the following change:
--- /opt/gcc/_clean/gcc/testsuite/gnat.dg/specs/linker_alias.ads 2013-08-18 17:39:22.000000000 +0200
+++ /opt/gcc/work/gcc/testsuite/gnat.dg/specs/linker_alias.ads 2013-08-19 08:52:35.000000000 +0200
@@ -5,5 +5,6 @@ package Linker_Alias is
Var : Integer; -- { dg-error "aliased to undefined symbol" }
pragma Export (C, Var, "my_var");
pragma Linker_Alias (Var, "var2");
+ pragma Weak_External (Var);
end Linker_Alias;
Dominique