Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
GNU is Not Unix

GCC 3.0.4 is Out 54

Isle writes: "GCC 3.0.4 has finally been released. As those who has tried the prereleases will know this version finally compiles a working version of aRts and thus compiles the entire KDE-suite. With the Linux kernel compiling already with the 3.0.3 version, gcc 3.0 now compiles all major projects I know of. Is it finally time to dump that good old 2.95?"
This discussion has been archived. No new comments can be posted.

GCC 3.0.4 is Out

Comments Filter:
  • C++ too slow (Score:2, Interesting)

    by Tersevs ( 168108 )
    It is even slower at compiling C++ than the old one.
    When will they implement precompiled headers.
    Oh why, why. why havnt they done it already!
    Or should i just give up Qt and move to GTK+?
    • Re:C++ too slow (Score:3, Insightful)

      by __past__ ( 542467 )
      How would using GTK+ make GCC use precompiled headers?

      A more interesting question seems to be: Do the binaries run faster? Some people happen to run their apps more often than they compile them...

      • GTK+ can be used in C that doesnt have support for templates.

        I still believe that there is a limit of what compilation speed it acceptable. Have you compared different compilers? Yes, running speed is important too, but not at any price.

        I find myself developing the software under Visual Studio and make sure that the program compiles and works there before moving to Linux and compiling the code. Id prefer to develop the stuff under Linux completly, but the time between typing make and having a binary just takes too darn long.
        Sure i can have a cup of coffee during the compilations, but that sums upp to an awful lot of coffee...

        By the way:
        NUMBER_OF_USERS * BINARY_RUNNING_TIME_GAIN - NUMBER_OF_DEVELOPERS * NUMBER_OF_COMPILES * COMPILATION_SPEED_GAIN = A_NUMBER_THAT_I_DONT_CARE_ABOUT_IF_IT_IS_POSITIVE_ OR_NOT
    • I don't know of any C++ compiler that supports precompiled templates using the export keyword (I assume this is what you meant.) It is a difficult issue, I'm sure, but if you where to come up with a solution, the GCC developers would probably include it.
    • Re:C++ too slow (Score:3, Insightful)

      by neurojab ( 15737 )
      There's one line in my environment setup in windows that makes it possible for me to compile my projects in the shortest possible time... DISABLE_PCH=T

      Why do you want precompiled headers? Sure you might get a couple of faster compiles... when you're not scratching your head trying to figure out why PCH is failing.

      GCC adding this feature would only cause me to spend more time compiling programs than I already do... unless they come up with a smarter implementation than MSVC.

    • by devphil ( 51341 ) on Sunday February 24, 2002 @11:42PM (#3063412) Homepage
      It is even slower at compiling C++ than the old one.

      That's because C++ got bigger since the old one.

      When will they implement precompiled headers.

      A precompiled headers branch was created some time ago. Feel free to try using it. It's been implemented by two different commercial groups already; they're just merging in one of those solutions.

      Perhaps you think implementing precompiled headers is easy? I invite you to try.

      Oh why, why. why havnt they done it already!

      If are are dissatisfied with the compiler, and unwilling to contribute your own time to make it better, you should definitely demand a refund of the money you paid for it.

  • by __past__ ( 542467 ) on Saturday February 23, 2002 @09:46AM (#3057004)
    One "bug" I would really like to see fixed in GCC is the bogus "Linux and the GNU project" [gnu.org] section in the info manual. Heck, it's supposed to be a compiler documentation, not a general "The world according to the FSF" rant.

    What's next, the Emacs scratch buffer explaining why Free Software is better than Open Source? ls(1) warning about Non-GNU licensed binaries?

    • Re:Info (Score:5, Funny)

      by Yarn ( 75 ) on Saturday February 23, 2002 @01:26PM (#3057627) Homepage
      I would be quite happy if the entire 'info' system dissapeared off the face of my installation, permanently.

      It's a pita to use/write/index

      man forever!
      • Re:Info (Score:3, Informative)

        by PD ( 9577 )
        I use the --subnodes option and pipe through less to get a more usable printout. The info program has a really crappy interface.

        like this:

        info --subnodes bison | more

      • For using it, "pinfo" is really nice - just like lynx. IIRC, the KDE help browser can view info pages, & there is a tcl/tk frontend as well.
    • Its _just_ documentation, it's not like it tells you FSF > Open Source every time you compile something. I think you're taking this a little out of proportion, but hey, if you don't like it, you dont _have_ to use it, I suppose.

    • ...but RMS won't let us.

      There are days when I dream about another GCC fork.

  • glibc 2.2.5 (Score:3, Informative)

    by Skjellifetti ( 561341 ) on Saturday February 23, 2002 @01:16PM (#3057577) Journal
    Is also out now and according to the changelog [gnu.org], it finally works with gcc 3.
  • KDE speedup ? (Score:4, Informative)

    by crsm ( 21260 ) on Saturday February 23, 2002 @01:28PM (#3057639)
    A new 2.2.5 version of glibc is also out and this is perhaps even better news for KDE users. According to the glibc [gnu.org] changelog:
    • optimizations in the dynamic linker. binaries created by recent binutils versions start up quicker due to reduced time spend on relocations.
    If I am reading this correctly, this is the much talked-about fix for the long startup times of KDE programs.

    Yay :-)
  • Does anyone know (Score:2, Interesting)

    by sinserve ( 455889 )
    How much of ISO C++ is supported by the GCC compiler?
    Not just the intel backen, but all the other popular ones (Sparc, PPC, etc.)

    The only document I saw, is the BOOST library compile logs [boost.org] [note, boost.org is down at the moment, try a google cache.]

    I know GCC beats the pants out of VisualC++ interms
    of standard compliance, but how much better is it?

    --
    • Re:Does anyone know (Score:2, Informative)

      by Anonymous Coward
      There are a couple C++ features that nobody implements because they're too esoteric to put people on. There are a few C++ features that nobody implements because they're too hard to get into the compiler. Most compilers do the core set of features pretty well at this point. It's to the point where 95% of the spec and 99.99% of the spec that people actually use works just about anywhere.

      Later versions of VS C have been getting more standards compliant for these core features. Check the documentation as VS C defaults to maintining backward compatibility (like K&R block variable scoping) over standards compliance in some respects. GCC has a few of the lesser used features that VS C does not. It shouldn't matter what backend you're compiling towards for supporting these features in GCC. VS C still does not do good templates although nobody does even great templates.

      However, GCC thought it would be wonderful to add new features to C++ and so there are a bunch of programs locked into using GCC because they use GCC proprietary extensions. In that sense, I'd say GCC is much less standards compliant than VS C. If you are careful about avoiding the GCC extensions (or just disable them :), then it's probably a bit better than VS C but nothing out there is going to be much better.

      By the way, you shouldn't try and use things like BOOST as a metric. As they say on their page:

      "Warning: These tables are not a good indication of a particular compiler's compliance with the C++ Standard."

      It's because a lot of code has either platform workarounds that hide bugs or proprietary extensions (like GCC's) that cause bugs on certain compilers.
    • Re:Does anyone know (Score:1, Interesting)

      by Anonymous Coward
      I'd like to know whether the Loki library compiles. Ie., can you do all the fancy tricks Andrei Alexandrescu described in Modern C++ design (policy-based programming, etc)?

      VC++ 6 choked in Chapter 1 of that book. MS claims the new version will compile it, though.

      • Yes, Andrei even used GCC 2.95.3 with it, so its been working for quite some time. 3.0.4 works fine too.

        The major improvement over the 2.95.x series (IMHO) are in the STL library thats been included in 3.0.x.

  • Even Bigger news than gcc 3.0.4 released, is that it was in slackware-current less than 6 hours after this news hitting slashdot. I think that's the fastest I've ever seen Pat add something bleeding egde to -current. Maybe we'll have activity before the 1 year aniversry of 8.0 afterall?

"Here's something to think about: How come you never see a headline like `Psychic Wins Lottery.'" -- Comedian Jay Leno

Working...