glibc/sysdeps
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
..
aarch64 math: Remove float_t and double_t [BZ #33563] 2025-11-12 19:33:23 +00:00
alpha Revert __HAVE_64B_ATOMICS configure check 2025-11-14 14:05:20 -03:00
arc nptl: Remove ATOMIC_EXCHANGE_USES_CAS usage 2025-11-04 04:14:01 -03:00
arm nptl: Remove ATOMIC_EXCHANGE_USES_CAS usage 2025-11-04 04:14:01 -03:00
csky nptl: Remove ATOMIC_EXCHANGE_USES_CAS usage 2025-11-04 04:14:01 -03:00
generic math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
gnu
hppa stdlib: Remove mp_clz_tab.c 2025-11-10 08:57:52 -03:00
htl htl: move pthread_create to into libc 2025-11-17 00:38:37 +00:00
hurd
i386 x86: Adapt "%v" usage on clang to emit VEX enconding 2025-11-10 08:58:06 -03:00
ieee754 math: Handle fabsf128 !__USE_EXTERN_INLINES 2025-11-17 11:17:07 -03:00
loongarch loongarch: Remove TLS_TCB_ALIGN 2025-11-16 11:27:47 +01:00
m68k math: Remove the SVID error handling from atan2f 2025-11-05 07:15:52 -03:00
mach htl: move pthread_create to into libc 2025-11-17 00:38:37 +00:00
microblaze nptl: Remove ATOMIC_EXCHANGE_USES_CAS usage 2025-11-04 04:14:01 -03:00
mips math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
nptl Revert __HAVE_64B_ATOMICS configure check 2025-11-14 14:05:20 -03:00
or1k Remove TLS_TCB_ALIGN and TLS_INIT_TCB_ALIGN 2025-11-15 22:01:07 +01:00
posix
powerpc math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
pthread
riscv Revert __HAVE_64B_ATOMICS configure check 2025-11-14 14:05:20 -03:00
s390 nptl: Remove ATOMIC_EXCHANGE_USES_CAS usage 2025-11-04 04:14:01 -03:00
sh nptl: Remove ATOMIC_EXCHANGE_USES_CAS usage 2025-11-04 04:14:01 -03:00
sparc Revert __HAVE_64B_ATOMICS configure check 2025-11-14 14:05:20 -03:00
unix math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
wordsize-32
wordsize-64
x86 Revert __HAVE_64B_ATOMICS configure check 2025-11-14 14:05:20 -03:00
x86_64 x86: Fix strstr ifunc on clang 2025-11-17 11:17:07 -03:00