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

Bug 46611

Summary: sun-j2sdk-1.4.2 build properly with -O2 -march=athlon-xp
Product: Gentoo Linux Reporter: Marcin Wojtczuk <fastviper>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to build JVM with -O2 -march=athlon-xp

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.