[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Stack alignement with pthreads
To make a long story short, I've got a problem with stack alignment in threads
created by pthread_create() and compiled with gcc, running a recent -curent.
It *seems* that the stack of pthreads is always offset by 4 bytes, thus messing
up the gcc aligment efforts. Below is a short program that illustrates this.
# cat test.c
int test __attribute__((aligned(16)));
pthread_create(&tg, NULL, test, NULL);
# gcc -o test test.c -pthread
Main Index |
Thread Index |