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

Bug 407225

Summary: Gentoo Prefix Bootstrap Process for Mac OS X recommends inoptimal -march setting
Product: Gentoo/Alt Reporter: Richard Yao (RETIRED) <ryao>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---

Description Richard Yao (RETIRED) gentoo-dev 2012-03-07 06:19:29 UTC
sys-devel/gcc-apple supports -march=core2, but the Gentoo Prefix Bootstrap Process for Mac OS X recommends -march=nocona. It should be revised to say -march=core2.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-03-07 14:48:30 UTC
You are correct, and made an excellent point in itself. One setting does not fit all hosts. nocona is the lowest common denominator. The bootstrap guide does not claim to be perfect and must accommodate many host types.
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-03-07 17:56:15 UTC
(In reply to comment #1)
> You are correct, and made an excellent point in itself. One setting does not
> fit all hosts. nocona is the lowest common denominator. The bootstrap guide
> does not claim to be perfect and must accommodate many host types.

The actual text says:

Note: You have to replace <my-cpu-flags> with something that matches your CPU. Intel-based Mac users (e.g. MacBook, CoreDuo) should at least have -march=prescott here to avoid compilation errors due to SSE instructions not being enabled. Core2Duo users can use -march=nocona. PPC users can use their CPU's alias to enable CPU specific tuning, e.g. -mcpu=G5 -mtune=G5.

There is no reason to tell Core2Duo users to use -march=nocona when they can use -march=core2. I am reopening this.
Comment 3 Fabian Groffen gentoo-dev 2012-03-24 15:47:02 UTC
fixed now