Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 58341

Summary: Enhancement for sys-libs/zlib-1.2.1-r2 (adding asm optimisations for x86)
Product: Gentoo Linux Reporter: Stefan Briesenick (RETIRED) <sbriesen>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: ka0ttic, kfm
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: zlib-1.2.1-r2.ebuild
zlib-1.2.1-r2.ebuild.diff
zlib-1.2.1-asm.patch

Description Stefan Briesenick (RETIRED) gentoo-dev 2004-07-25 16:47:26 UTC
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.


Reproducible: Always
Steps to Reproduce:
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2004-07-25 16:49:34 UTC
Created attachment 36153 [details]
zlib-1.2.1-r2.ebuild

New zlib-1.2.1-r2 ebuild
Comment 2 Stefan Briesenick (RETIRED) gentoo-dev 2004-07-25 16:50:17 UTC
Created attachment 36154 [details, diff]
zlib-1.2.1-r2.ebuild.diff

diff only, use it against original zlib-1.2.1-r2.ebuild
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2004-07-25 16:52:12 UTC
Created attachment 36155 [details, diff]
zlib-1.2.1-asm.patch

Patch for Makefile.in. Put it into $FILESDIR.
could be probably merged with zlib-1.2.1-build-fPIC.patch
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-05 09:28:52 UTC
do these optimizations still outperform modern GCCs?
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2006-10-05 15:15:33 UTC
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.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-05 15:51:39 UTC
thanks, closing.

the tree-vectorize depends on your gcc ;-).
Comment 7 Stefan Briesenick (RETIRED) gentoo-dev 2006-10-05 16:22:34 UTC
hmmm, I had the problem with 4.1.x (not tested anymore for some weeks). Is it fixed now?
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-05 16:44:05 UTC
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.