This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c/7464: weak symbols alias definitions are broken in 3.1.1 (weak alias regression from 2.95)
- From: Richard Henderson <rth at redhat dot com>
- To: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- Cc: gcc at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Fri, 25 Oct 2002 11:24:00 -0700
- Subject: Re: c/7464: weak symbols alias definitions are broken in 3.1.1 (weak alias regression from 2.95)
- References: <Pine.LNX.4.44.0210250857490.12569-100000@gandalf.ticam.utexas.edu>
On Fri, Oct 25, 2002 at 09:08:25AM -0500, Wolfgang Bangerth wrote:
> This is one more regression from 2.95 with respect to weak and alias
> attributes:
> --------------------------------------------------
> extern int i __attribute__ ((alias ("__i")));
> extern int i __attribute__ ((weak, alias ("__i")));
> --------------------------------------------------
This test case is broken. Despite the use of "extern",
the use of "alias" means that this is a definition.
So having two of them violates the ODR, and is indeed an error.
r~