Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Any differences between GCC3.4.4 & GCC4.x.x???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
southpaw
Guru
Guru


Joined: 11 Mar 2005
Posts: 375
Location: "Americas Toilet"(So.FL.)

PostPosted: Sun Sep 18, 2005 5:21 pm    Post subject: Any differences between GCC3.4.4 & GCC4.x.x??? Reply with quote

In other words, is there any real performance gains when using GCC4.x.x as opposed to using GCC3.4.4???

Also, how come the on GCC website 4.x.x is labled as stable when in Gentoo 3.4.4 is'nt even considered stable let alone 4.x.x???

Just thought I would ask since I could'nt find the answer on the forums 8) ...
_________________
Legalize It
Back to top
View user's profile Send private message
eelke
Guru
Guru


Joined: 17 May 2004
Posts: 406
Location: Earth, Netherlands, Friesland

PostPosted: Sun Sep 18, 2005 6:10 pm    Post subject: Reply with quote

Quote:
In other words, is there any real performance gains when using GCC4.x.x as opposed to using GCC3.4.4???


No in some cases you even loose performance. Performance improvements are expected in later releases from the 4.x.y series.

Quote:
Also, how come the on GCC website 4.x.x is labled as stable when in Gentoo 3.4.4 is'nt even considered stable let alone 4.x.x???


This probably has to do with the fact that GCC 3.x.y had some deviations from the ANSI standard which were fixed in 4.x.y now if you have a package installed on your system which relies on one of these deviations it might fail to compile with GCC 4. I expect GCC 4 will be marked stable as soon as all (or most) packages have been verified to work correctly when using GCC 4.
Back to top
View user's profile Send private message
PrakashP
Veteran
Veteran


Joined: 27 Oct 2003
Posts: 1249
Location: C.C.A.A., Germania

PostPosted: Sun Sep 18, 2005 7:39 pm    Post subject: Reply with quote

Using builtins for SIMD code, you'll have big gains, as

a) gcc4 creates correct code while gcc3.4 does not (try Vorbis + Lancer/Archer patch...)
b) gcc4 is up to 10% faster in du to superior scheduling of SIMD code
Back to top
View user's profile Send private message
irondog
l33t
l33t


Joined: 07 Jul 2003
Posts: 715
Location: Voor mijn TV. Achter mijn pc.

PostPosted: Sun Sep 18, 2005 8:06 pm    Post subject: Reply with quote

As gentoo is a compile-everything-distro a well tested compiler is more important than the latest 'stable'. It will take quite some time for gcc4 to become main compiler on gentoo. Meanwhile, nobody will prevent you from using it.
_________________
Alle dingen moeten onzin zijn.
Back to top
View user's profile Send private message
gralves
Guru
Guru


Joined: 20 May 2003
Posts: 389
Location: Sao Paulo, Brazil

PostPosted: Wed Sep 21, 2005 12:21 am    Post subject: Reply with quote

Where should I put bugs regarding an ebuild not working with gcc 4.0?
Back to top
View user's profile Send private message
sn4ip3r
Guru
Guru


Joined: 14 Dec 2002
Posts: 325
Location: Tallinn, Estonia

PostPosted: Wed Sep 21, 2005 12:49 am    Post subject: Reply with quote

gralves wrote:
Where should I put bugs regarding an ebuild not working with gcc 4.0?

https://bugs.gentoo.org ,4.0 itself is not in the stable branch, but that does not mean that bugs related to it may not be fixed.

[edit].. On the other hand.. I could be wrong. Maybe it would be smart to not post a bug unless you have a patch to fix it aswell...
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Fri Sep 23, 2005 7:57 am    Post subject: Reply with quote

sn4ip3r wrote:
gralves wrote:
Where should I put bugs regarding an ebuild not working with gcc 4.0?

https://bugs.gentoo.org ,4.0 itself is not in the stable branch, but that does not mean that bugs related to it may not be fixed.

[edit].. On the other hand.. I could be wrong. Maybe it would be smart to not post a bug unless you have a patch to fix it aswell...


Exaclty, only open a bug if you have a patch to fix it. Otherwise just post it in the gcc4 thread in the "portage and programming" forum.

You can get patches from Fedora, Mandriva and Suse since they are all built with gcc4.
Back to top
View user's profile Send private message
a13x
Apprentice
Apprentice


Joined: 05 Jan 2005
Posts: 215

PostPosted: Fri Sep 23, 2005 6:12 pm    Post subject: Reply with quote

Code:
Also, how come the on GCC website 4.x.x is labled as stable when in Gentoo 3.4.4 is'nt even considered stable let alone 4.x.x???



GCC 3.4.4 NOT stable ??? lool. I've been using it for months compiling tons of stuff without problems related to it. It's as stable as a rock IMHO.
Back to top
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Fri Sep 23, 2005 7:31 pm    Post subject: Reply with quote

Has anyone had lucky compiling a system with 4.0.1 or 4.0.2beta?
_________________
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Back to top
View user's profile Send private message
ag_x
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2004
Posts: 142
Location: Self Sarkarm.

PostPosted: Sat Sep 24, 2005 11:33 am    Post subject: Reply with quote

vipernicus wrote:
Has anyone had lucky compiling a system with 4.0.1 or 4.0.2beta?

I am using 4.0.1 for almost 2 months now,in my LFS box (Linuxfromscratch).

Looking in my logs,i can see 210 packages builted with 4.0.1,and i can't remember a single failure right now.
In fact since a month,4.0.1 is the default compiler in their (LFS/BLFS) development releases.
Back to top
View user's profile Send private message
southpaw
Guru
Guru


Joined: 11 Mar 2005
Posts: 375
Location: "Americas Toilet"(So.FL.)

PostPosted: Sat Sep 24, 2005 1:50 pm    Post subject: Reply with quote

What filesystem are you guys using?
_________________
Legalize It
Back to top
View user's profile Send private message
gralves
Guru
Guru


Joined: 20 May 2003
Posts: 389
Location: Sao Paulo, Brazil

PostPosted: Sat Sep 24, 2005 4:06 pm    Post subject: Reply with quote

vipernicus wrote:
Has anyone had lucky compiling a system with 4.0.1 or 4.0.2beta?


I recompiled my entire system w/ gcc4.0.2beta.

southpaw wrote:

What filesystem are you guys using?


reiserfs 3.6 + ext2 (for /boot)
Back to top
View user's profile Send private message
gpierce
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 111

PostPosted: Thu Sep 29, 2005 10:51 pm    Post subject: Reply with quote

Quote:
I recompiled my entire system w/ gcc4.0.2beta.


Gralves,

This seems very courageous. Where did you get the ebuild? Did you create one for yourself?

Greg
Back to top
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Thu Sep 29, 2005 11:06 pm    Post subject: Reply with quote

it's in portage...

Just unmask it:

echo sys-devel/gcc >> /etc/portage/package.unmask
_________________
If you can't dazzle them with brilliance, baffle them with bullshit.
Back to top
View user's profile Send private message
gpierce
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 111

PostPosted: Thu Sep 29, 2005 11:18 pm    Post subject: Reply with quote

I still get an error.

Code:
These are the packages that I would merge, in order:

Calculating dependencies
!!! All ebuilds that could satisfy "=gcc-4.0.2" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/gcc-4.0.2 (masked by: -* keyword)


The -* keyword according to the handbook means that there are no packages for my architecture, but I am just running a pretty generic x86 system: Dell Dimension 8100 with 1.5 GHz pentium 4 and 1GB RAM.

I'm puzzled.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Thu Sep 29, 2005 11:54 pm    Post subject: Reply with quote

Code:

echo sys-devel/gcc >> /etc/portage/package.unmask
echo sys-devel/gcc -*>> /etc/portage/package.keywords
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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