This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: #pragma weak is broken in 3.1, partail fix
- From: Richard Henderson <rth at redhat dot com>
- To: Marc Espie <espie at nerim dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 21 May 2002 11:31:49 -0700
- Subject: Re: #pragma weak is broken in 3.1, partail fix
- References: <20020521165708.A6328@tetto.liafa.jussieu.fr>
On Tue, May 21, 2002 at 04:57:08PM +0200, Marc Espie wrote:
> Both the following snippets show the same problem:
> void f();
> #pragma weak f=_f
This one should work,
> void f() __attribute__ ((weak, alias("_f")));
> #pragma weak f=_f
This one defines the weak alias twice, and is in error.
A declaration with an alias attribute is a definition,
not a declaration.
r~