Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 4.6? march=corei7avx?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kbzium
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2012
Posts: 146

PostPosted: Mon Oct 15, 2012 1:54 pm    Post subject: GCC 4.6? march=corei7avx? Reply with quote

Hello,

Currently I'm using gcc 4.5.4 which doesn't allow me to use some features of i7 sandy bridge (i must set -march=core2... in make.conf). How to migrate to the newest stable version supporting that flag? Is it safe? Should I upgrade something else too?

I tried to emerge -s gcc but it gives no results.
Back to top
View user's profile Send private message
nihil39
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 79
Location: Italy

PostPosted: Mon Oct 15, 2012 5:23 pm    Post subject: Reply with quote

Hi,

first thing first read this.

You will have to unmask an upgraded version of gcc by putting a line like this

Code:
=sys-devel/gcc-4.6.3*


in /etc/portage/package.accept_keywords

I don't know which version you need (I've a core i3 2310M and i'm using gcc-4.6.3), but, as far as I know, using
Code:
-march=native
gives (almost) the best optimization for the machine you're using.

There was an annoying bug with grub-0.x and gcc 4.6.3 but it should have been fixed in the r12 release.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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