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. ASRock X99 Extreme3 Is An Affordable Choice For Linux Users
  2. A Walkthrough Of The New 32 System Open-Source Linux Benchmarking Test Farm
  3. Habey MITX-6771: Mini-ITX Board With Quad-Core J1900 Bay Trail
  4. OCZ Vector 150 SSD On Linux
Latest Linux Articles
  1. 17-Way Linux Graphics Card Comparison With Civilization Beyond Earth
  2. AMD Kaveri: Open-Source Radeon Gallium3D vs. Catalyst 14.12 Omega Driver
  3. 12-Way AMD Catalyst 14.12 vs. NVIDIA 346 Series Linux GPU Comparison
  4. AMD Catalyst 14.12 Omega Driver Brings Mixed Results For Linux Users
Latest Linux News
  1. Live Patching Support Planned For Linux 3.20/4.0 Kernel
  2. Features Of The Linux 3.19 Kernel: Graphics & Disks Rule
  3. Orange Pi Is The Latest Raspberry Pi Inspired ARM Board
  4. An Open-Source Hardware Ambient Light Sensor Is Brought Up
  5. Heterogeneous Memory Management Is Coming Along For The Linux Kernel
  6. NTP Is The Latest Project Struck By Security Issues
  7. LDC 0.15.1 Released For A D Compiler In LLVM
  8. Fedora Doesn't Yet Enable F2FS File-System Support
  9. XZ 5.2 Adds New Multi-Threaded Options
  10. Intel 2.99.917 X.Org Driver Released, 3.0 Release Finally Near
Latest Forum Discussions
  1. Looking for an nVidia GPU, but not sure how well they are supported.
  2. No OpenCL with latest driver updates on Ubuntu?
  3. Need some hand holding with upgrading xserver
  4. Maker3D - create your 3D RPG
  5. FPS capped on Linux (AMD fglrx drivers)
  6. Speeding up systemd networking service
  7. Major Performance Breakthrough Discovered For Intel's Mesa Driver
  8. Are there an app using HSA ?