workaround gcc got-register-reload performance problems in malloc
authorRich Felker <dalias@aerifal.cx>
Sat, 15 Sep 2012 03:52:51 +0000 (23:52 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 15 Sep 2012 03:52:51 +0000 (23:52 -0400)
commitafd209deb7d3bfc9cc31713e2cb8f22693ca6fae
tree1988e392e57f4598e1a6371ea40162eaf7804f44
parent9f74574fe697f0908d766579e73d94fc621463d4
workaround gcc got-register-reload performance problems in malloc

with this patch, the malloc in libc.so built with -Os is nearly the
same speed as the one built with -O3. thus it solves the performance
regression that resulted from removing the forced -O3 when building
libc.so; now libc.so can be both small and fast.
src/malloc/malloc.c