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. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. Running Fedora 20 On Intel's Core i7 Haswell-E Platform
  2. A Tour Of The New Phoronix Office
  3. 7-Way Linux Desktop Gaming Comparison On Ubuntu 14.10
  4. Intel P-State vs. CPUFreq Benchmarks On The i7-5960X
Latest Linux News
  1. Counter-Strike: Global Offensive Starts Rolling Out To Linux Users
  2. Trying Out The OpenSUSE 13.2 Beta: The Installer Is Still Lacking
  3. The Gestures Support Of GNOME 3.14
  4. Linux 3.17 Has Basic Support For The Xbox One Controller
  5. openSUSE 13.2 Beta Still Using Btrfs By Default, & KDE Plasma 5 For Testing
  6. GTK+ 3.14 Brings Much Better Wayland Support, Multi-Touch, New Theme
  7. DisplayPort Comes To USB's Type-C Connector
  8. NSS Updated On Ubuntu 12.04/14.04 To Allow Netflix Support
  9. Linux 3.17-rc6 Released; Linux 3.17 Final Might Come In One Week
  10. X.Org Server 1.16.1 Released
Latest Forum Discussions
  1. Uselessd: A Stripped Down Version Of Systemd
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. State of Nouveau now and in the near future?
  4. Wasteland 2 Officially Launched Today, Including For Linux Gamers
  5. NVIDIA GTX 770/780 -works ?
  6. New stress testing utility for GPU's
  7. How to get Catalyst 14.4 working on Ubuntu 14.04
  8. X.Org Women Outreach Program Only Turns Up Two Applicants So Far