Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
G5 CFlags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
xylo36
n00b
n00b


Joined: 27 Apr 2010
Posts: 5

PostPosted: Tue May 11, 2010 1:10 am    Post subject: G5 CFlags Reply with quote

Can I use -march=native or should I use the following:

CHOST="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=970"
CXXFLAGS="${CFLAGS}"

I took the above from the safe cflags wiki and am just wondering if those are still the best settings.
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Thu May 13, 2010 11:45 am    Post subject: Reply with quote

i dont know how it is with the G5 but using -mcpu=native apparently made no difference if icompared with the output from -mcpu=G4 in my powerbook.

EDIT : sorry, of course i meant -mcpu and not -march, im not even sure if native is supposed to work without march.

cheers


Last edited by gringo on Fri May 14, 2010 12:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
bmaass
n00b
n00b


Joined: 15 Mar 2008
Posts: 25

PostPosted: Fri May 14, 2010 12:20 pm    Post subject: Re: G5 CFlags Reply with quote

I'm using the following:

CFLAGS="-mcpu=970 -mtune=970 -maltivec -mabi=altivec -fno-strict-aliasing -O2 -pipe"
Back to top
View user's profile Send private message
xylo36
n00b
n00b


Joined: 27 Apr 2010
Posts: 5

PostPosted: Fri May 14, 2010 6:56 pm    Post subject: Reply with quote

Have you had any problems with those bmaas? I would like the system to be as stable as possible.

Also, are the altivec settings not included with cpu 970 setting?
Back to top
View user's profile Send private message
bmaass
n00b
n00b


Joined: 15 Mar 2008
Posts: 25

PostPosted: Sun May 16, 2010 12:06 pm    Post subject: Reply with quote

No problems. The altivec stuff may be in the 970 flag, I'm not sure. Can't hurt to have it twice.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum