glibc:azanella/clang

Last commit made on 2024-04-18
Get this branch:
git clone -b azanella/clang https://git.launchpad.net/glibc

Branch merges

Branch information

Name:
azanella/clang
Repository:
lp:glibc

Recent commits

dd727ee... by Adhemerval Zanella

x86: Fix bsearch for compiler that do not define __USE_EXTERN_INLINES

The bsearch is called early during process initialization on Intel
platform, before TCB has been set up; and if compiler does not
enable __extern_inline it might call the symbol which might use an
invalid thread-pointer.

Expand the bsearch implementation from stdlib-bsearch.h with a
different name.

Checked on x86_64-linux-gnu with Intel chip.

5a3b750... by Adhemerval Zanella

x86_64: update libm test ulps

By using clang standard libraries instead of libgcc.

534b629... by Adhemerval Zanella

x86_64: Provide __sfp_handle_exceptions if compiler does not

8565bb7... by Adhemerval Zanella

Build glibc with -ftrapping-math

GCC enables it by default, clang in the other hand sets -fno-trapping-math.
This is required to fix some math and stdlib tests that explicit raises
floating point exceptions (i.e. stdlib/tst-strtod-round on aarch64).

c72809e... by Adhemerval Zanella

x86_64: Fix mark-plt configure test

db7a80b... by Adhemerval Zanella

Enable --enable-fortify-source with clang

b80b361... by Adhemerval Zanella

bench-malloc-thread: Add libm for powf

The bench-malloc-thread.c:63 does use powf and compiler might not
optimzie it away.

6677c61... by Adhemerval Zanella

benchtests: Remove clang warnings

clangs warns of the implicit cast of RAND_MAX to float:

  error: implicit conversion from 'int' to 'float' changes value from
  2147483647 to 2147483648 [-Werror,-Wimplicit-const-int-float-conversion]

So make it explicit.

230d65f... by Adhemerval Zanella

benchtests: Use __f128 on ilogbf128-inputs constants

b1be860... by Adhemerval Zanella

benchtests: Add attribute_optimize

Similar to tst-printf-bz18872.sh, add the attribute_optimize to avoid
build failures with compilers that do not support "GCC optimize" pragma.