This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ATTRIBUTE_WEAK
- To: smurf at noris dot de (Matthias Urlichs)
- Subject: Re: ATTRIBUTE_WEAK
- From: hjl at lucon dot org (H.J. Lu)
- Date: Wed, 24 Feb 1999 13:41:16 -0800 (PST)
- Cc: law at cygnus dot com, egcs at egcs dot cygnus dot com
>
> Hi,
>
> Bill Currie:
> > Correct me if I'm wrong, but isn't __attribute__ ((weak)) for when you
> > *define* a function, rather than reference it?
>
> "weak" has two meanings.
> (a) don't complain if this gets overridden.
> (b) don't complain if this doesn't exist at all.
>
More accurately:
(b) don't complain and set it to zero if this doesn't exist at all.
--
H.J. Lu (hjl@gnu.org)