Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46611 - sun-j2sdk-1.4.2 build properly with -O2 -march=athlon-xp
Summary: sun-j2sdk-1.4.2 build properly with -O2 -march=athlon-xp
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-02 08:09 UTC by Marcin Wojtczuk
Modified: 2004-10-05 11:36 UTC (History)
0 users

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


Attachments
Patch to build JVM with -O2 -march=athlon-xp (j2sdk-1.4.2-CFLAGS_O2_athlon_xp.patch,528 bytes, patch)
2004-04-02 08:12 UTC, Marcin Wojtczuk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Wojtczuk 2004-04-02 08:09:58 UTC
It is possible to build those parts of JVM that Sun optimizes with -O3 as -O2 -march=arhlon-xp. I've tested this. This needs a simple patch or sed/awk script for more elegant solution.

Reproducible: Always
Steps to Reproduce:
Comment 1 Marcin Wojtczuk 2004-04-02 08:12:30 UTC
Created attachment 28580 [details, diff]
Patch to build JVM with -O2 -march=athlon-xp

I've tested this patch, also tested JVM build with it. Simply works (for me).
Please consider writting some kind of script to allow at least -march setting
for this ebuild. The most interesting option would be -Os of course ;-)
Comment 2 Simon Strandman 2004-07-31 06:05:26 UTC
Why not do it with sed:

cp hotspot/build/linux/makefiles/gcc.make hotspot/build/linux/makefiles/gcc.make.orig
sed "s#-O3#$CFLAGS#" hotspot/build/linux/makefiles/gcc.make.orig > hotspot/build/linux/makefiles/gcc.make
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-05 11:36:50 UTC
The package is very fragile as it is.