1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

GCC 4.8 To Improve Diagnostics Abilities

Compiler

Published on 11 July 2012 09:32 AM EDT
Written by Michael Larabel in Compiler
3 Comments

In a battle against LLVM/Clang, GCC 4.8 will improve the code diagnostics support to better assist developers in debugging code errors/warnings in a user-friendly manner.

One of the long-advertised features of LLVM's Clang C/Objective-C/C++ compiler has been that it offers more user-friendly diagnostics than the GNU Compiler Collection. Historically this has been true, especially against GCC 4.2 -- the last GPLv2 compiler release. However, GCC developers have been working to improve this situation. With GCC 4.8, it looks like more of this work will come to fruition.

On the LLVM web-site there's long been the Clang Expressive Diagnostics page to show off that Clang's error reporting/diagnostics are superior to GCC. "In addition to being fast and functional, we aim to make Clang extremely user friendly. As far as a command-line compiler goes, this basically boils down to making the diagnostics (error and warning messages) generated by the compiler be as useful as possible. There are several ways that we do this. This section talks about the experience provided by the command line compiler, contrasting Clang output to GCC 4.2's output in several examples."

Now on the GCC side they have been working on a Clang Diagnostics Comparison Wiki page. This comparison page was brought up yesterday at DebConf Managua when talking about building Debian packages with LLVM/Clang, but those details will be saved for another Phoronix article.

The GCC Clang Diagnostics Comparison is now about showing off where the latest GCC code is ahead of Clang. "It is often repeated that the Clang compiler produces far superior diagnostics to GCC. For example the Expressive Diagnostics page shows examples where Clang's diagnostics were indeed superior to GCC 4.2. However, that version of GCC is a few years old, and GCC has improved considerably since then. This page revisits the examples using recent versions of GCC and add further interesting examples."

Among the advertised features is GCC 4.8 introducing support for printed column numbers, caret diagnostics instead of pretty print expressions, typedef preservation, selective unwrapping, automatic macro expansion, quality of implementation and attention to detail, recursive template instantiations, and C++ template errors. There's also a Red Hat page promoting GCC diagnostics.

While the GCC improvements are nice, it will still be a number of months before GCC 4.8 is officially released. At that point, GCC 4.8 will be competing against LLVM/Clang 3.2 with LLVM/Clang 3.3 likely being mid-way in development.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. AMD R600g/RadeonSI Performance On Linux 3.16 With Mesa 10.3-devel
  2. Intel Pentium G3258 On Linux
  3. SilverStone Precision PS10
  4. ASRock Z97 Extreme6
Latest Linux Articles
  1. KVM Benchmarks On Ubuntu 14.10
  2. X.Org Server 1.16 Officially Released With Terrific Features
  3. Ubuntu With Linux 3.16 Smashes OS X 10.9.4 On The MacBook Air
  4. Preview: Benchmarking CentOS 7.0 & Scientific Linux 7.0
Latest Linux News
  1. Unigine Develops City Traffic System, A Driving Simulator
  2. Intel 3.0 X.Org Driver Still Baking, New Development Release
  3. Eric Anholt Makes Progress With Broadcom VC4 Graphics Driver
  4. Intel Is Getting Very Close To OpenGL 4.0/4.1/4.2 Mesa Support
  5. Valve Is Still Hiring For SteamOS, Linux Work
  6. Users Warned About Possible Regressions With DRI3
  7. GNOME Shell Gets Wayland HiDPI Fonts, Mutter Gets Touch Gestures
  8. BPTC Texture Compression Comes To Nouveau After Intel's Work
  9. Development Continues For Supporting EXT4 On NVDIMMs
  10. Libinput 0.5 Improves Pointer Acceleration, Adds A Configuration API
Latest Forum Discussions
  1. Radeon related kernel bug??
  2. AMD Publishes Open-Source Linux HSA Kernel Driver
  3. Next-Gen OpenGL To Be Announced Next Month
  4. Open-Source Radeon Performance Boosted By Linux 3.16
  5. Remote gui not accessible in Phoronix Test Suite 5.2
  6. AMD "Hawaii" Open-Source GPU Acceleration Still Not Working Right
  7. Updated and Optimized Ubuntu Free Graphics Drivers
  8. In Road To Qt, Audacious Switches From GTK3 Back To GTK2