Re: [PATCH] In _IEEE_LIBM mode, use weak symbols instead of wrapper funcs [v3]

Craig Howland <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On 09/21/2018 04:29 PM, Keith Packard wrote:
> Craig Howland <[email protected]> writes:
>
>> I don't see anything which makes the definition of __strong_reference dependent
>> upon target.  In sys/cdefs.h it is only dependent upon __GNUC__.
> Which makes sense -- there shouldn't be any platform which cannot
> support these strong references; they're just a duplicate symbol
> with the same value and properties. However, it does depend on __GNUC__,
> and one can imagine someone using a compiler other than gcc?
>
It's no difference than a weak alias--it requires object file support.  To quote 
from the GCC manual about a function alias attribute (which is what the macro 
ends up using), "This attribute requires assembler and object file support, and 
may not be available on all targets."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.