[PATCH, RFC v2 5/8] libm: add attribute weak for __ieee754_sqrtf

Alexey Lapshin <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
newlib:
        * libm/math/ef_sqrt.c: add attribute weak for __ieee754_sqrtf because
        it could have implementation from libgcc
---
 newlib/libm/math/ef_sqrt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/newlib/libm/math/ef_sqrt.c b/newlib/libm/math/ef_sqrt.c
index 80e7f360e..7589bc6c1 100644
--- a/newlib/libm/math/ef_sqrt.c
+++ b/newlib/libm/math/ef_sqrt.c
@@ -21,6 +21,7 @@ static	const float	one	= 1.0, tiny=1.0e-30;
 static	float	one	= 1.0, tiny=1.0e-30;
 #endif
 
+__attribute__((weak)) /* may have implementation in libgcc */
 #ifdef __STDC__
 	float __ieee754_sqrtf(float x)
 #else
-- 
2.34.1
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.