This is the mail archive of the gcc@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: #pragma weak is broken in 3.1, partail fix


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~


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