Announcement

Collapse
No announcement yet.

GCC 4.8 Aims To Switch To C++ Mode By Default

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GCC 4.8 Aims To Switch To C++ Mode By Default

    Phoronix: GCC 4.8 Aims To Switch To C++ Mode By Default

    Google has proposed the switch to C++ by default for the GNU Compiler Collection happens for the current in-development GCC 4.8 release...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    As long as they don't set -Werror by default. I can't tell you how many codebases I have to compile on a regular basis, which work fine in practice, but have all kinds of warnings that I can't be arsed to fix (and neither can the upstream maintainers, apparently). It's gone so far that it's somewhat of a badge of honor among FOSS developers to throw as many warnings as you can while still producing well-working code.

    Newer versions of gcc have had issues where trying to compile older codebases results in errors that can be silenced with -fpermissive. Yes, yes, I know; undefined behavior sucks and all that. But if it works, I just want you to STFU and build my program - raagh! I don't have time to make everything 100% correct per the language spec. I'm not a language lawyer; I'm a practical programmer. Shut up and give me a binary. If my undefined behavior leads to problems, I'll see them, and I'll fix it. Nyeh.

    Comment


    • #3
      That's a great strategy when you're going to leave the business in three years and move to Fiji. Then it's not your ass on the line when things blow up later in production.

      Just remember to send a postcard to the then-current team saying how much you love the margaritas.

      Comment


      • #4
        Originally posted by allquixotic View Post
        It's gone so far that it's somewhat of a badge of honor among FOSS developers to throw as many warnings as you can while still producing well-working code.
        I know you're joking, but I think that in practice, most of the warnings come from GCC's increasing strictness - code compiles cleanly on one version of GCC, spits out warnings on the next version, and starts throwing compile errors on the version after that. It might have been bad code to start with, but it was bad code that the compiler used to accept without a fuss.

        From that point of view, increasing numbers of warnings are a *good* thing.

        Comment

        Working...
        X