Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98998 - openssl compilation not optimized on a ppc64
Summary: openssl compilation not optimized on a ppc64
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-14 05:37 UTC by isoh
Modified: 2005-07-14 06:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description isoh 2005-07-14 05:37:18 UTC
openssl compilation seems not to use any "-O*" flag?

openssl test "speed rsa" seems to be about 5 times quicker
after hand editing openssl's file "Configure" and
adding "-O3" flag to "linux-ppc64" line; I used gcc-4.1.0*,
but methink that their is some benefit (3x maybe?) with
gcc-3.4.* too...



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-14 05:44:38 UTC
from the ebuild:
# ppc64's current toolchain sucks at optimization and will break this package
                [[ $(tc-arch) != "ppc64" ]] && NEW_CFLAGS="${NEW_CFLAGS} ${CFLAGS}"

Sometimes it's better to be safe than sorry.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-07-14 05:46:06 UTC
Just FYI, -O3 is totally unsafe and often produces broken code w/ gcc-4.x
Comment 3 isoh 2005-07-14 05:52:15 UTC
> Just FYI, -O3 is totally unsafe and often produces broken code w/ gcc-4.x

Yes, but I think that it is totally unacceptable that there is
no optimization at all for openssl-ppc64. 

I think that "-O2" with gcc-3.4.* should be used at least.

On the other hand, gcc-4.1.* "-O3" works here without props...
Comment 4 isoh 2005-07-14 06:02:08 UTC
> # ppc64's current toolchain sucks at optimization and will break this package

 btw. I'm using openssl-0.9.7e; this "sucking" seems to be case with 0.9.7g/0.9.8 ?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-07-14 06:04:54 UTC
Closing this bug. We won't "optimize" pretty essential packages to break them... 
Comment 6 isoh 2005-07-14 06:20:45 UTC
Is there somewhere any explanation why optimization breaks things apart?