Test for stack alignment.
[glibc.git] / linuxthreads / sysdeps / i386 / Makefile
blob45183d1cd38e6a54eccd5b553919ba121049b34f
1 ifeq ($(subdir),linuxthreads)
2 # On i686 we must avoid generating the trampoline functions generated
3 # to get the GOT pointer.
4 CFLAGS-pt-initfini.s += -march=i386 -mcpu=i386
6 # Most files must not be compiled without frame pointer since we need
7 # the frame base address which is stored in %ebp unless the frame pointer
8 # is optimized out.
9 CFLAGS-cancel.c += -fno-omit-frame-pointer -mpreferred-stack-boundary=4
10 CFLAGS-condvar.c += -fno-omit-frame-pointer
11 CFLAGS-join.c += -fno-omit-frame-pointer
12 CFLAGS-manager.c += -fno-omit-frame-pointer -mpreferred-stack-boundary=4
13 CFLAGS-oldsemaphore.c += -fno-omit-frame-pointer
14 CFLAGS-pthread.c += -fno-omit-frame-pointer -mpreferred-stack-boundary=4
15 CFLAGS-ptlongjmp.c += -fno-omit-frame-pointer
16 CFLAGS-semaphore.c += -fno-omit-frame-pointer
17 CFLAGS-sighandler.c += -fno-omit-frame-pointer -mpreferred-stack-boundary=4
18 endif
20 ifeq ($(subdir),csu)
21 gen-as-const-headers += tcb-offsets.sym
22 endif