Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58341 - Enhancement for sys-libs/zlib-1.2.1-r2 (adding asm optimisations for x86)
Summary: Enhancement for sys-libs/zlib-1.2.1-r2 (adding asm optimisations for x86)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2004-07-25 16:47 UTC by Stefan Briesenick (RETIRED)
Modified: 2006-10-05 16:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

zlib-1.2.1-r2.ebuild (zlib-1.2.1-r2.ebuild,2.27 KB, text/plain)
2004-07-25 16:49 UTC, Stefan Briesenick (RETIRED)
zlib-1.2.1-r2.ebuild.diff (zlib-1.2.1-r2.ebuild.diff,1.37 KB, patch)
2004-07-25 16:50 UTC, Stefan Briesenick (RETIRED)
Details | Diff
zlib-1.2.1-asm.patch (zlib-1.2.1-asm.patch,700 bytes, patch)
2004-07-25 16:52 UTC, Stefan Briesenick (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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]

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]

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]

Patch for 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.