Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6368 - make.conf optimization flag
Summary: make.conf optimization flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High minor (vote)
Assignee: Mark Guertin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-12 11:36 UTC by Guillaume
Modified: 2006-02-04 06:03 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 Guillaume 2002-08-12 11:36:31 UTC
Hi,

in make.conf for optimizing for G4 cpus, you can use the flag -mcpu=7400, for
recent G3 cpus, -mcpu=750 is also fine. You can find out by doing a 'cat
/proc/cpuinfo'.

I'm using:
CFLAGS=" -O2 -pipe -mcpu=750 -mmultiple -mstring "

And my cpuinfo is saying:
cpu             : 750CX
temperature     : 12 C (uncalibrated)
clock           : 499MHz
revision        : 34.21 (pvr 0008 2215)
bogomips        : 996.14
machine         : PowerBook4,1
motherboard     : PowerBook4,1 MacRISC2 MacRISC Power Macintosh
detected as     : 257 (iBook 2)
pmac flags      : 00000003
L2 cache        : 256K unified
memory          : 384MB
pmac-generation : NewWorld
(it's an ibook2 with a G3 processor)

Take a look at http://gcc.gnu.org/onlinedocs/gcc/RS-6000-and-PowerPC-Options.html.

Best regards,
    Guillaume
Comment 1 Mark Guertin 2002-08-12 13:53:54 UTC
CFLAGS=" -O2 -pipe -mcpu=750 -mmultiple -mstring " is fine for gcc 2.95.x, but
in fact breaks many things in gcc 3.2

There are new flags setup on the latest ISO's that reflect this stuff, please
check them out, they will also be added to an upcoming portage release (which
includes make.conf files)