I've made an enhancement for sys-libs/zlib-1.2.1-r2, so one can use the asm optimisations in the contrib directory for i586 and i686.
ATTENTION: NEW USE-FLAG -> 'asm' (Using asm optimisations where available)
could be used also elsewhere in future for this purpose.
Steps to Reproduce:
Created attachment 36153 [details]
New zlib-1.2.1-r2 ebuild
Created attachment 36154 [details, diff]
diff only, use it against original zlib-1.2.1-r2.ebuild
Created attachment 36155 [details, diff]
Patch for Makefile.in. Put it into $FILESDIR.
could be probably merged with zlib-1.2.1-build-fPIC.patch
do these optimizations still outperform modern GCCs?
don't know, never tested. On the other hand, my ebuild patch is somewhat outdated. I suggest to just close that bug as WONTFIX.
btw: it would be cool to strip "-ftree-vectorize" from CFLAGS for zlib, since it breaks many programs, incl. most GTK-apps. I don't know why, since many other apps just run fine with zlib compiled with -ftree-vectorize. But as soon as you compile zlib again w/o that option, that broken apps are instantly working.
the tree-vectorize depends on your gcc ;-).
hmmm, I had the problem with 4.1.x (not tested anymore for some weeks). Is it fixed now?
i didn't have much in the way of GTK stuff to test with, but I haven't specifically seen problems - maybe open a seperate bug for tree-vectorize.