This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: ATTRIBUTE_WEAK



On Feb 24, 1999, hjl@lucon.org (H.J. Lu) wrote:

> #pragma weak foo
> extern void foo ();

> Can __attribute__ do it?

AFAIK, weak applies only to definitions, not to external references.
What do you mean with a weak external reference, after all?

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil