Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
-ftree-vectorize and gcc 4 stable on a G4?
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
leviathan4444
n00b
n00b


Joined: 08 Oct 2006
Posts: 13
Location: Champaign, IL

PostPosted: Sun Oct 08, 2006 10:24 pm    Post subject: -ftree-vectorize and gcc 4 stable on a G4? Reply with quote

Hi everyone,

This is my 1st time posting on the gentoo forums. I have been using gentoo for a while now on the servers that I setup at work, and I'm am going to setup a new gentoo server to use at home. My system will be an older PowerMac 9600 with a Sonnet G4 450Mhz Crescendo upgrade. I would like to utilize altivec as much as possible on the system, and thus have been very intersted in the -ftree-vectorize option on the G4. My question is this:
Is the coded produced by gcc 4.1+ with the -ftree-vectorize option stable?
I'm thinking of compiling my entire system with the flag on (including the kernel, and the loop-aes module.) I would probably use something quite close to the following string for my optimization options: -O2 -mcpu=7450 (or whichever specifc G4 cpu I have) -malitivec -mabi=altivec -ftree-vectorize
I'm going to be using the system to archive data on a RAID array, so I do need the kernel and loop-aes to be stable along with most of the other code. Can I safely use these flags?
Any insight you folks can offer would be greatly appreciated.
Thanks so much,
Curt
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon Oct 09, 2006 7:30 am    Post subject: Reply with quote

I use it on my G4 no problem except Openoffice.org for which I remove
all flags. If you use -mcpu=7450 if you want to add -mtune=7450 as
well. There was a discussion about it a few weeks ago.
My current CFLAGS are:
Code:
CFLAGS="-O2 -mcpu=7450 -mtune=7450 -pipe -maltivec -mabi=altivec -frename-registers -fivopts -ftree-vectorize -fno-strict-aliasing"
Back to top
View user's profile Send private message
leviathan4444
n00b
n00b


Joined: 08 Oct 2006
Posts: 13
Location: Champaign, IL

PostPosted: Tue Oct 10, 2006 4:33 am    Post subject: Thanks :) Reply with quote

Thanks for the reply. I will be trying it when I do my install. I will post the results when I have them.
Curt
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