GCC 3.1 Released 56
gergnz writes "Just popped into my inbox, GCC 3.1 released. There are many bug fixes over 3.0. "we focused more on quality than new features" Mark Michell. Here are the changes, and you can see a list of ftp servers here. This is the release I have been waiting for. I will now upgrade :-) Well Done to all involved!"
3.1? (Score:4, Funny)
Seriously, though. Hopefully this takes care of all those niggling bugs that made 3.0 unusable. Maybe this will encourage everyone to jump from the 2.x tree finally.
Re:3.1? (Score:1)
Re:3.1? (Score:2)
I think it has, and I think it will. There are a lot of very important bugfixes in this release, especially with respect to the C++ ABI. My bet is that this is going to be a distribution compiler.
Re:3.1? (Score:2)
Re:3.1? (Score:2)
Re:3.1? (Score:1)
Re:GCC (any version) in a nutshell (Score:1, Interesting)
Re:GCC (any version) in a nutshell (Score:2, Interesting)
And if -O2 is not enough, well, that's what gprof and inline assembly is for. GCC's inline assembly feature is unmatched by any compiler I've ever seen (though Borland's register pseudovariable feature comes in handy if used carefully).
Re:GCC (any version) in a nutshell (Score:1)
Most Notable Improvements (Score:4, Informative)
Here's a short run-down of the improvements that really caught my eye this time around.
Everyone knows I'm no fan of the GNU project, but GCC3.1 shows that they have a lot going for them. Very exciting guys, I can't wait to see what 3.2 has in store.
--Dan
Re:Most Notable Improvements - export? (Score:2, Interesting)
I doubt it.
Re:Most Notable Improvements - export? (Score:3, Informative)
Re:Most Notable Improvements - export? (Score:1)
Re:Most Notable Improvements - export? (Score:1, Informative)
Re:Most Notable Improvements - export? (Score:1)
Export helps to reduce header file dependencies, which is a good thing. It also makes it possible to ship template libraries without exposing implementation details as plain text.
Re:Most Notable Improvements (Score:2, Funny)
I can't wait to see what 3.2 has in store.
Probably stable UltraSPARC 64 support! ;-)
Re:Most Notable Improvements- Ada 95 (Score:1)
When.. (Score:2, Interesting)
Re:When.. (Score:1, Informative)
Anybody tried it yet? (Score:1)
Trouble (Score:3, Interesting)
[Well, I won't dwell on my rejected submission for this.]
But my attempt to build gcc 3.1 on sparc-sun-solaris2.8 gave me this problem:
../../gcc-3.1/gcc/p rint-rtl.c -o print-rtl.o
../../gcc-3.1/gcc/print-rtl.c:30:
../../gcc-3.1/gcc/tree.h:3183: stray '\273' in program
../../gcc-3.1/gcc/tree.h:3183: stray '\224' in program
../../gcc-3.1/gcc/tree.h:3183: stray '\315' in program
../../gcc-3.1/gcc/tree.h:3183: stray '\352' in program
../../gcc-3.1/gcc/tree.h:3183: stray '\274' in program
../../gcc-3.1/gcc/tree.h:3183: parse error before '&' token
../../gcc-3.1/gcc/tree.h:3183: stray '\246' in program
../../gcc-3.1/gcc/tree.h:3183: stray '\21' in program
.
.
.
echo timestamp > s-check
stage1/xgcc -Bstage1/
-B/usr/local/sparc-sun-solaris2.8/bin/ -c
-DIN_GCC -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I../../gcc-3.1/gcc
-I../../gcc-3.1/gcc/. -I../../gcc-3.1/gcc/config
-I../../gcc-3.1/gcc/../include
In file included from
[This went on for some while.]
Any ideas?
Re:Trouble (Score:1, Informative)
I've built various versions of gcc-3.0.x and 3.1-xxxxx on SPARC and intel multiprocessor boxen on Solaris 8 and 9.
What C compiler are you using to start the bootstrap build?
I have the Freeware Companion CD installed, so am using gcc-2.95.3.
Here is my configure line:
../gcc-3.1/configure --prefix=/area51/trial/install/gcc-3.1 --with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as --without-gnu-ld --without-gnu-as --enable-shared
Re:Trouble (Score:2)
This is SPARC (v9).
Solaris 8.
My first attempt failed, using gcc 3.0.4 to do the bootstrap build.
My second attempt failed, using Suns WS 6u2.
Thanks for the configure line. I'll also try extracting on a different filesystem as another poster suggested, since the symptoms look suspicious.
Does it compile KDE? (Score:2, Interesting)
I remember being optimistic about 3.0 only to be disapointed that it wouldn't compile kde.
Re:Does it compile KDE? (Score:2, Informative)
Sigh (Score:2)
Yes, GCC 3.1 compiles KDE 3.0 just fine, according to initial prerelease reports. However...
"C++" as you call it, was doing pretty well. Most of the problem was that the KDE library folks expected to be able to break the ODR and have GNU ld magically fix it for them. (Even open source projects have to follow the rules of the programming language in use, sorry...)
Re:Sigh (Score:3, Informative)
ODR is One Definition Rule. It's the clause of the ISO C++ Standard (that's where you'd go to look for it) that says that an entity used in a program must be defined exactly once.
Some of the KDE libs apparently were trying to define things more than once, and have the linker merge them. Which falls outside the realm of C++, and is actually done for some behind-the-scenes things, but not normally, and not by default.
Anyhow, there was a long thread on the gcc list, where the remaining multiple inheritence issues were dealt with, and the ODR problems explained to the good KDE folks. So all should be well there.
Slow startup times remain; that's a different problem.
Re:Sigh (Score:2)
Well, yeah, but it only works when you tell the compiler and linker what you're doing. The '#pragma telepathy' extension still hasn't been checked in to the main GCC source tree. :-)
Under Solaris, I do similar things with the uber-kickass watchmalloc library.
Re:Does it compile KDE? (Score:2)
How is the C++ support now? I've been sticking with 2.95.x since 3.0 wasn't able to compile kde (i think it was the sound system it couldn't compile although I could be wrong).
I think you're very wrong -- I have compiled KDE3 from CVS with GCC3.0 many times without a problem.
I Hope.... (Score:1)
Re:I Hope.... (Score:1)
Prelinking? (Score:1)
GCC and Linux Kernel (Score:1)
Re:GCC and Linux Kernel (Score:2)
Does GCC 3.1 build the Linux kernel correctly now? I had problem with the GCC 3.0.x versions and some 2.4 kernel modules.
Which modules? I've been compiling 2.4.18 with ipsec and the bleeding edge ACPI stuff for quite a while now. Nothing weird yet...
8-bit register use on x86 ? (Score:1, Interesting)