GCC 3.2.1 Released 56
Szplug writes "GCC 3.2.1 has been released; many C++ bugs, & notably for x86 users, MMX code generation has been fixed. From the notice,
".. the number
of bug fixes is quite large, so it is strongly recommended that users of
earlier GCC 3.x releases upgrade to GCC 3.2.1."
Here are overview and detailed change notices. Download here [gnu mirror site]."
Here are overview and detailed change notices. Download here [gnu mirror site]."
Duplicate links? (Score:1)
The "overview" and "detailed" changes links lead to the same URL, which seems either mistaken or redundant. It might be advisable to either correct whichever doesn't lead to its intended target or, if there is only one relevant changes list, cut it down to just one link.
Re: Duplicate links? (Score:1)
> The "overview" and "detailed" changes links lead to the same URL, which seems either mistaken or redundant.
They figure you'll get the big picture the first time you visit the link, and you'll pick up more details if you go back and read it again.
But is it stable? (Score:5, Insightful)
Unless your a Mac OS X user (Score:4, Informative)
Kernel? (Score:3, Interesting)
Re:Kernel? (Score:2, Insightful)
As for MMX? Hmm, I'm not sure if I would. I'm not sure the kernel would benefit from any compiles like that anyway. Also, given MMX, SSE, etc have all seen compiler issues that have since been fixed in 3.2.1 it might be worth waiting a bit longer until we are sure the code for MMX is safe.
Having said that, day to day (I run 3.2) here is what my default CFLAGS are set to for my Athlon:
CFLAGS=-march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow
I'd never use that lot to compile the kernel though, just whatever optimisations it turns on when you select your target processor.
Re:Kernel? (Score:2)
Re:Kernel? (Score:2, Informative)
I'm running 2.4.19 compiled with gcc 3.1 and I haven't had a problem. What I do have is a 42 day uptime
Same kernel, same compiler (maybe a 3.1-pre though): 85 day uptime. And my notebook's been running 2.4.19 and 2.4.20-pre definately compiled with 3.0.4 with no troubles.
I am pretty sure that all the bad things related to gcc3 were in C++, not C.
Re:Kernel? (Score:1)
Re:Kernel? (Score:1)
-Wall -Wstrict-prototypes -Os -fomit-frame-pointer
so i'm not worri
Re:Kernel? (Score:1)
My understanding was that -mmmx only enable recognition for the builtin mmx functions. It doesn't automatically compile your code with mmx register usage, but it does let you #include , which gives you a C front end the the mmx instructions.
Re:Kernel? (Score:3, Informative)
Of course, you don't need an excuse to make a new kernel. Go nuts. If you pull another 20fps out of UT2003, please tell us about it.
Re:Kernel? (Score:3, Informative)
For what it's worth, I've been using FreeBSD 5.0-CURRENT with gcc 3.[12].x for months now. I've compiled my entire system with -march=athlon. To be fair, it's just my desktop -- not a server.
Re:Kernel? (Score:3, Informative)
I don't know about FreeBSD, but the history of Linux (the kernel) and GCC has too many incidents of a GCC upgrade breaking the kernel, and the GCC hackers and the kernel hackers having a nice flame war over who's at fault. I'd rather let one of them test it out, rather than become a roasted guinea pig.
Old news (Score:2)
I installed this on my Gentoo box two days ago, by typing "emerge -u gcc". Everyone else is hopelessly behind the curve
Re:Old news (Score:2)
Re:Old news (Score:2)
LFS is in the lead, Gentoo is in a distant second, and everyone else is, well, everyone else.
Re:Old news (Score:2)
You've got it wrong, sorry
My current gentoo box is running gcc 3.2.1 and glibc-2.3.1. Everything on my box was compiled with either gcc-3.2 or 3.2.1, including that glibc. I'm not sure exactly when glibc-2.3.1 went into Gentoo, but the current ebuild (-r2, probably the third version) is dated Nov 18th.
Re:Old news (Score:2)
I'm getting so fucking sick and tired of Anonymous Cowards. Every time one of them responds to me they're dead wrong and unaccountable for it.
AC, whoever you are, I'll linux you under the table any day. I was rolling my own boxes without using a distro in 1994. I'm probably FAR more savvy than the average Gentoo-bashed like yourself. Gentoo gives me an excellent level of control for day-to-day use.
If you need to build a 5 meg webserver, or a tiny busybox-based install, or whatever - go do what you need to do, manually, or using LFS, or whatever. But for my main desktop/development machine, Gentoo is my distribution of choice, it kicks all the other's ass handily.
Yes, I take my box by its horns and teach it who's boss on a regular basis, with a soldering iron if need be. Why don't you post with some indentifying moniker and I'll come take your box by the horns too, you peice of shit AC whiner.
Re:Old news (Score:2)
Does that include yours?
Re:Old news (Score:2)
Re:Old news (Score:2)
Re:Old news (Score:1)
[h@dad] upm update && upm update && upm syncbuild
and voilá.
How about the Intel Compiler? (Score:2, Interesting)
From all I've read and the benchmarks I've looked at, ICC (Intel Compiler) is 99% compatible with GCC and code generated is 30%-50% faster.
This difference may be enough to push Linux way past Microsoft if Linux apps run that much faster than Microsoft apps.
It seems like its crazy that the distros (REDHAT, SUSE, etc) don't use ICC as a drop in replacement for 386+ compiling.
For other platforms use GCC, but why should 90% of users be punished for the sake of cross-platform features (sounds like java)?
When will the linux kernel be compatible with ICC and why aren't more using it??
Re:How about the Intel Compiler? (Score:1, Informative)
Re:How about the Intel Compiler? (Score:1)
Re:How about the Intel Compiler? (Score:3, Insightful)
It seems to be [iu.edu]
why aren't more using it??
It's proprietary software. A better question is "Why doesn't Intel dedicate engineers to optimizing gcc's code generation for ia32 and ia64?". This would be a much more useful contribution.
~Phillip
Re:How about the Intel Compiler? (Score:1)
It's proprietary software. A better question is "Why doesn't Intel dedicate engineers to optimizing gcc's code generation for ia32 and ia64?". This would be a much more useful contribution.
Intel wants to sell it's own compiler, so why should they try to optimize gcc and make their own compiler useless?
Re:How about the Intel Compiler? (Score:2)
A: Intel is not a charity. Software Engineers do not optimize compilers for free. Giving away the work of well-paid engineers is not a very intelligent business decision.
Re:How about the Intel Compiler? (Score:2)
Then why does Apple work on optimizing gcc? Because giving away the work of well-paid engineers can be a very intelligent business decision. The deeper response is that ia32 dominates the field, and it's hard to optimize for Intel chips and not AMD, and that Intel makes enough money from its compiler that it offsets the need to have the best compilers for their chips.
Re:How about the Intel Compiler? (Score:2)
Apple does not sell a C compiler. Intel does. Intel's bread and butter is ia32 chips running Microsoft OS's -- contributing to project that would improve a free replacement to Microsoft's OS would be rather dumb.
Would it make sense for Toyota to provide engineering support to Fiat for free?
Re:How about the Intel Compiler? (Score:1)
Re:How about the Intel Compiler? (Score:4, Informative)
Re:How about the Intel Compiler? (Score:1)
Re:How about the Intel Compiler? (Score:1)
References to Intel's early offorts on GCC can be found in the documentation of the PGCC project:
http://www.goof.com/pcg/
In June 1999 the new x86 backend sponsored by Intel was announced on the GCC mailing list:
http://gcc.gnu.org/ml/gcc/1999-06/msg00548
In June 2001, GCC 3.0 which first included the new backend was released:
http://gcc.gnu.org/ml/gcc-announce/200
Marcel
Re:How about the Intel Compiler? (Score:3, Interesting)
Re:How about the Intel Compiler? (Score:2, Interesting)
Marcel
Re:How about the Intel Compiler? (Score:2, Interesting)
No, it must be the case that there isn't enough demand for support to make it economical to make the compiler free and sell support. Intel has to make the compiler itself payware in order to get the most money from it.
Re:How about the Intel Compiler? (Score:1)
On the other hand, it's not just apps and a kernel, it is the whole operating and development environment that make up Gnu. GCC is the cornerstone of Gnu. It would take a lot energy to overcome the inertia and get tens of thousands of programmers to add "#ifdef __ICC__" or whatever the flag is, all over the place. Remember, too, that the distros don't really 'own' the code, in terms of who is in control of the development tree for each project. If RedHat, for example, made tweaks to a program for ICC, then they would have to do it every time that program had a new release.
So what you might would do, is go to each of your favorite projects, find the alterations needed to build with ICC, and send the patch to the responsible individuals. When accepting bug reports, developers give so much more credence to them when the the problem is accompanied by the solution.
I agree with the others who think that the best course would be to get the latest Intel assembly optimizations into GCC. I'm on the GCC mailing list, and those individuals are very interested in doing whatever they can to improve performance on Intel.
Re:How about the Intel Compiler? (Score:1)
> and code generated is 30%-50% faster.
Yeah, right. Only if you compile with gcc -O0
Why is it that people keep bashing gcc's speed? it is a *little bit* slower than icc on x86, I'll give you that, and on some rare applications significantly slower, but on average gcc does a splendid job.
Don't belive me, try it for yourself, or read:
http://www.coyotegulch.com/reviews/intel_comp/i
(I hope they update their review for gcc 3.2.x and icc 7.0)
System include path (Score:2)