1 |
Hi all |
2 |
|
3 |
Some time ago the freehacker.org gcc flags where been posted in topic and assumed to |
4 |
be safe tu use. I have a gentoo distro all compiled for G3 powerBook instruction flag |
5 |
as it follow: |
6 |
|
7 |
750 aka as G3 (PowerPC) |
8 |
CHOST="powerpc-unknown-linux-gnu" |
9 |
CFLAGS="-mcpu=750 -O3 -pipe -fsigned-char -mpowerpc-gfxopt" |
10 |
CXXFLAGS="-mcpu=750 -O3 -pipe -fsigned-char -mpowerpc-gfxopt" |
11 |
|
12 |
in the apple support there is no doubt about the processsor type, but the 'cat /dev/cpuinfo' |
13 |
is not straight simple: |
14 |
|
15 |
cpu : 750FX |
16 |
temperature : 31-33 C (uncalibrated) |
17 |
clock : 700MHz |
18 |
revision : 2.2 (pvr 7000 0202) |
19 |
bogomips : 1389.36 |
20 |
machine : PowerBook4,3 <<<<<<<< here and |
21 |
motherboard : PowerBook4,3 MacRISC2 MacRISC Power Macintosh <<<<<<<< here .. |
22 |
board revision : 00000000 |
23 |
detected as : 257 (iBook 2 rev. 2) |
24 |
pmac flags : 0000000b |
25 |
L2 cache : 512K unified |
26 |
memory : 640MB |
27 |
pmac-generation : NewWorld |
28 |
|
29 |
|
30 |
The issue is: |
31 |
|
32 |
The system is working great with this for a long time now! but some programs (FEW ONES) |
33 |
give the 'unrecognized -03' WARNING during the build process... |
34 |
|
35 |
Any chances that the strings above should be diferent? |
36 |
The G4 use -02 as shown from the same source document: |
37 |
|
38 |
|
39 |
[quote:] |
40 |
|
41 |
Note: do not use -march= |
42 |
Note: -O3 is unstable on G4 |
43 |
|
44 |
7400, aka G4 (PowerPC) |
45 |
CHOST="powerpc-unknown-linux-gnu" |
46 |
CFLAGS="-mcpu=7400 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt" |
47 |
CXXFLAGS="-mcpu=7400 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt" |
48 |
|
49 |
|
50 |
7450, aka G4 second generation (PowerPC) |
51 |
CHOST="powerpc-unknown-linux-gnu" |
52 |
CFLAGS="-mcpu=7450 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt" |
53 |
CXXFLAGS="-mcpu=7450 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt" |
54 |
|
55 |
[end quote] |
56 |
|
57 |
etc ... |