View previous topic :: View next topic |
Author |
Message |
leviathan4444 n00b
Joined: 08 Oct 2006 Posts: 13 Location: Champaign, IL
|
Posted: Sun Oct 08, 2006 10:24 pm Post subject: -ftree-vectorize and gcc 4 stable on a G4? |
|
|
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 |
|
|
fb l33t
Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Mon Oct 09, 2006 7:30 am Post subject: |
|
|
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 |
|
|
leviathan4444 n00b
Joined: 08 Oct 2006 Posts: 13 Location: Champaign, IL
|
Posted: Tue Oct 10, 2006 4:33 am Post subject: Thanks :) |
|
|
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 |
|
|
|