glibc/sysdeps/ieee754
Adhemerval Zanella 1abdb38135 math: Handle fabsf128 !__USE_EXTERN_INLINES
Work around the clang limitation wrt inline function and attribute
definition, where it does not allow to 'add' new attribute if a
function is already defined:

clang on x86_64 fails to build s_fabsf128.c with:

../sysdeps/ieee754/float128/../ldbl-128/s_fabsl.c:32:1: error: attribute declaration must precede definition [-Werror,-Wignored-attributes]
   32 | libm_alias_ldouble (__fabs, fabs)
      | ^
../sysdeps/generic/libm-alias-ldouble.h:63:38: note: expanded from macro 'libm_alias_ldouble'
   63 | #define libm_alias_ldouble(from, to) libm_alias_ldouble_r (from, to, )
      |                                      ^
../sysdeps/ieee754/float128/float128_private.h:133:43: note: expanded from macro 'libm_alias_ldouble_r'
  133 | #define libm_alias_ldouble_r(from, to, r) libm_alias_float128_r (from, to, r)
      |                                           ^
../sysdeps/ieee754/float128/s_fabsf128.c:5:3: note: expanded from macro 'libm_alias_float128_r'
    5 |   static_weak_alias (from ## f128 ## r, to ## f128 ## r);       \
      |   ^
./../include/libc-symbols.h:166:46: note: expanded from macro 'static_weak_alias'
  166 | #  define static_weak_alias(name, aliasname) weak_alias (name, aliasname)
      |                                              ^
./../include/libc-symbols.h:154:38: note: expanded from macro 'weak_alias'
  154 | # define weak_alias(name, aliasname) _weak_alias (name, aliasname)
      |                                      ^
./../include/libc-symbols.h:156:52: note: expanded from macro '_weak_alias'
  156 |   extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))) \
      |                                                    ^
../include/math.h:134:1: note: previous definition is here
  134 | fabsf128 (_Float128 x)

If compiler does not support __USE_EXTERN_INLINES we need to route
fabsf128 call to an internal symbol.
2025-11-17 11:17:07 -03:00
..
dbl-64 math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
float128 math: Handle fabsf128 !__USE_EXTERN_INLINES 2025-11-17 11:17:07 -03:00
flt-32 math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
ldbl-64-128
ldbl-96 math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
ldbl-128 math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
ldbl-128ibm math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
ldbl-128ibm-compat Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
ldbl-opt Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
soft-fp
Makefile
ieee754.h
k_standard.c
k_standardf.c
k_standardl.c
libm-alias-finite.h
s_lib_version.c
s_matherr.c
s_signgam.c