glibc/sysdeps/i386/i686
H.J. Lu 79aec84102 Properly check stack alignment [BZ #27901]
1. Replace

if ((((uintptr_t) &_d) & (__alignof (double) - 1)) != 0)

which may be optimized out by compiler, with

int
__attribute__ ((weak, noclone, noinline))
is_aligned (void *p, int align)
{
  return (((uintptr_t) p) & (align - 1)) != 0;
}

2. Add TEST_STACK_ALIGN_INIT to TEST_STACK_ALIGN.
3. Add a common TEST_STACK_ALIGN_INIT to check 16-byte stack alignment
for both i386 and x86-64.
4. Update powerpc to use TEST_STACK_ALIGN_INIT.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-05-24 07:42:12 -07:00
..
fpu
multiarch Remove architecture specific sched_cpucount optimizations 2021-05-07 13:35:29 -03:00
nptl
add_n.S
bcopy.S
bzero.S
dl-hash.h
ffs.c
isa.h
Makefile
memcmp.S
memcpy.S
memmove.S
mempcpy.S
memset.S
memusage.h
pthread_spin_trylock.S
strcmp.S